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
FROM debian:latest | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
build-essential \ | |
wget \ | |
python3 | |
WORKDIR /build |
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
FROM ubuntu:rolling | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get -y update && apt-get install -y \ | |
gcc \ | |
git \ | |
make \ | |
pkg-config \ | |
libipt-dev \ |
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
#sudo setcap cap_net_raw=eip /bin/python3.10 | |
from scapy.all import * | |
from struct import * | |
def dissect(srcMac, load): | |
categoryCode = unpack('B', load[:1])[0] | |
organizationIdentifier = load[1:4] | |
randomValues = load[4:8] | |
# Vendor Specific | |
vsElementId = unpack('B', load[8:9])[0] |
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 ( | |
"bytes" | |
"fmt" | |
"math" | |
"math/rand" | |
) | |
func shannon(input []byte) (entropy float64) { |
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
//General Program flow. | |
//Replace lines 34/35 with something to log to STDOUT with like "X" for dead and "O" for alive to debug | |
//Shouldn't require any external dependencies | |
//Setup | |
//initGrid(); | |
//drawGrid(); | |
//LOOP | |
// computeCA(); | |
// drawGrid(); |
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
RunSanDiskSecureAccess-Win.exe v1.1.19150 is configured using the password "test123" for the secure file vault. | |
https://www.virustotal.com/gui/file/1822d68ef4f3276b785ee30f65bb3bac36f97685c81cc5b11837a34528c398e2/details | |
A Zero-Byte file (MD5 Sum: d41d8cd98f00b204e9800998ecf8427e) is added to the vault. | |
The resulting encrypted file is: | |
MD5 Sum: e2d484fa4d7f5f457f6571a075a967d4 | |
File: 30 4A 34 C4 D7 DB 20 86 12 01 42 5B 68 18 99 FB A3 D9 52 E6 28 63 89 92 F7 4D 10 E0 24 2A F3 1D | |
Base64: MEo0xNfbIIYSAUJbaBiZ+6PZUuYoY4mS900Q4CQq8x0= | |
File Length: 32 Bytes |
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 options = { | |
authProvider, | |
}; | |
const client = Client.init(options); | |
//Despite "supporting" id's for requests, I seem to remember them being required last time I tried it? | |
//Get the current user, and get the displayName and givenName of a user by their UPN |
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 options = { | |
authProvider, | |
}; | |
const client = Client.init(options); | |
//Despite "supporting" id's for requests, I seem to remember them being required last time I tried it? | |
const batchCreateUsers = { | |
"requests": [{ |
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
getcert() { | |
#Pull and parse certificate | |
echo "Q" | openssl s_client -showcerts -connect "$1":443 | openssl x509 -text | |
} | |
getcertsans() { | |
#getcertsans example.com | |
echo "Q" | openssl s_client -showcerts -connect "$1":443 | openssl x509 -text | grep "DNS:" | sed -e 's/DNS://g' | sed -e 's/, /\n/g' | sed -e 's/ //g' | |
} |
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
/usr/bin/autossh -M 0 -N \ | |
-o "ServerAliveInterval 15" -o "ServerAliveCountMax 3" -o "ConnectTimeout 10" -o "ExitOnForwardFailure yes" \ | |
-i /home/user/.ssh/id_rsa -p 22 user@VPS-IP-Address \ | |
-R 8080:localhost:8080 |
NewerOlder