This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python | |
sys.path.insert(0, '/path/to/module/dir') | |
import hexdump | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WhosHouse: | |
a0:a3:e2:f9:a6:45: | |
bssid: a0:a3:e2:f9:a6:45 | |
bytes: 611376 | |
channels: | |
- 1 | |
- 2 | |
- 140 | |
devices: | |
01:00:5e:00:00:fb: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"date": "20181205-231751", | |
"system": { | |
"hostname": "solaris11", | |
"kernel": "SunOS solaris11 5.11 11.3 i86pc i386 i86pc", | |
"OS": "Solaris", | |
"version": "11" | |
}, | |
"stigs": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* libnmap | |
* Copyright(c) 2013-2015 Jason Gerfen <jason.gerfen@gmail.com> | |
* License: MIT | |
*/ | |
var nmap = require('libnmap') | |
, opts = { | |
timeout: 900, // 900s = 10m and increases the reliability of scan results | |
flags: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Bob's environment */ | |
var crypto = require('crypto'); | |
var rsa = require('ursa'); | |
crypto.DEFAULT_ENCODING = 'hex' | |
var dhBob = crypto.getDiffieHellman('modp18') | |
, kBob = dhBob.generateKeys() | |
, keysBob = { | |
pubKey: dhBob.getPublicKey(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default path of UFW parser | |
parse_ufw=/path/to/parse-ufw.awk | |
# Default path of UFW log | |
log_ufw=/var/log/ufw.log | |
# Function for filtering outbound comms | |
function ufw_out | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dmesg | awk '{split($7, arr, "="); if (match(arr[2], /[0-9.]/)){print "\nHOST: " arr[2] " ================\n";system("host " arr[2]);system("whois " arr[2]);system("dig " arr[2]);}}' > log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the encryption algo for gpg | |
algo="aes256" | |
# Define the gpg binary name (Solaris is gpg2) | |
gpg_name="gpg" | |
# Use ${gpg_name} to get full path of GPG | |
gpg=$(which ${gpg_name} 2>/dev/null) | |
# Validate GPG is installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chai = require('chai'), | |
expect = chai.expect, | |
config = require('../config/settings'), | |
app = require('../libs/app'), | |
https = require('https'), | |
test = require('supertest') | |
describe('app.js', function(){ | |
describe('routes', function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
var opts = { | |
host: 'node.dev', | |
port: 3000, | |
key: fs.readFileSync('certificate.key'), | |
cert: fs.readFileSync('certificate.crt'), | |
//ca: [fs.readFileSync('authority.cer')], | |
passphrase: 'password', | |
ciphers: 'ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH', |