Skip to content

Instantly share code, notes, and snippets.

View xen0bit's full-sized avatar

Remy xen0bit

View GitHub Profile
@xen0bit
xen0bit / Dockerfile
Created October 11, 2023 04:19
CVE-2023-38545
FROM debian:latest
RUN apt-get update && apt-get install -y \
git \
build-essential \
wget \
python3
WORKDIR /build
@xen0bit
xen0bit / Dockerfile
Created September 19, 2023 01:40
libwebp dwebp
FROM ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get install -y \
gcc \
git \
make \
pkg-config \
libipt-dev \
@xen0bit
xen0bit / espnow_passive.py
Created September 9, 2023 03:24
Scapy ESPNOW
#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]
package main
import (
"bytes"
"fmt"
"math"
"math/rand"
)
func shannon(input []byte) (entropy float64) {
//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();
@xen0bit
xen0bit / gist:eb86a413eecd528d63f8d8eb24de2548
Created January 3, 2021 18:31
What algorithm is this?
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
@xen0bit
xen0bit / getusers.js
Created November 26, 2020 15:13
batch api endpoint get multiple users
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
@xen0bit
xen0bit / example.js
Created November 26, 2020 15:02
graph api multiple users
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": [{
@xen0bit
xen0bit / gist:510a2b99db194403cfd2cc498e70d472
Last active August 31, 2020 21:08
Openssl Bash Profile Functions
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'
}
/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