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
(function (root, factory) { | |
if (typeof define === "function" && define.amd) { | |
// AMD. Register as an anonymous module. | |
define([], factory); | |
} else if (typeof module === "object" && module.exports) { | |
// Node. Does not work with strict CommonJS, but | |
// only CommonJS-like environments that support module.exports, | |
// like Node. | |
module.exports = factory(); | |
} else { |
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
// To do: Make this into a full blown site that monitors the internet for changes in TLS fingerprints | |
package main | |
import ( | |
"crypto/sha256" | |
"crypto/tls" | |
"encoding/hex" | |
"flag" | |
"fmt" |
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
#!/bin/bash | |
# Default protocol is tcp | |
PROTOCOL="tcp" | |
# Usage function to display help | |
usage() { | |
echo "Usage: $0 [--udp|--tcp] --source <source-port> --dest <destination-ip:port>" | |
echo "Example (TCP): $0 --source 80 --dest 172.20.10.2:80" | |
echo "Example (UDP): $0 --udp --source 53 --dest 172.20.10.2:53" |
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
class HTMJ { | |
constructor() { | |
this.init(); | |
} | |
init() { | |
document.addEventListener("DOMContentLoaded", () => { | |
this.parseTemplates(); | |
}); | |
} |
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
package main | |
import ( | |
"bufio" | |
"database/sql" | |
"fmt" | |
"os" | |
"strings" | |
_ "github.com/mattn/go-sqlite3" |
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
#!/bin/bash | |
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/' |
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
function foo() { | |
let fetchCopy = window.fetch; | |
return function() { | |
return fetchCopy('http://example.com'); | |
}; | |
} | |
let boo = foo(); | |
function bar() { |
This file has been truncated, but you can view the full file.
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
137c137 | |
< 9357: (e) => { | |
--- | |
> 9514: (e) => { | |
1096c1096 | |
< (r.text = n(9514)), | |
--- | |
> (r.text = n(1274)), | |
1104c1104 | |
< var i = n(9514); |
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
package main | |
import ( | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" | |
"golang.org/x/crypto/scrypt" | |
) |
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
const crypto = require("crypto"); | |
function B(e) { | |
return e.slice(e.byteOffset, e.byteOffset + e.byteLength); | |
} | |
async function _(e) { | |
const t = await j(e); | |
return G(t); | |
} |
NewerOlder