Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blurbdust on github.
  • I am blurbdust (https://keybase.io/blurbdust) on keybase.
  • I have a public key whose fingerprint is 8260 87AF 5C66 53F0 BAAC A1C5 E4CE 747D EA55 8A13

To claim this, I am signing this object:

KERNEL=/home/$USER/linux
RELEASE=stretch
IMAGE=/home/$USER/$RELEASE # match the create-image.sh script if you change the dist
sudo apt-get update && sudo apt-get install build-essential debootstrap qemu-system-x86
git clone https://github.com/torvalds/linux.git $HOME/linux
cd $HOME/linux
use std::env;
fn main() -> std::io::Result<()>{
let together = "Good morning ".to_owned();
print!("{}", together);
match env::var("USER") {
Ok(val) => print!("{}", val),
Err(e) => print!("err: {}", e),
@blurbdust
blurbdust / main.py
Last active February 11, 2019 23:20
CPRE.331 Lab3 Part 1
#!/usr/bin/env python3
import subprocess
rotors = [['VZBRGITYUPSDNHLXAWMJQOFECK'],
['AJDKSIRUXBLHWTMCQGZNPYFVOE'],
['ESOVPZJAYQUIRHXLNFTGKDCMWB']]
original_rotors = rotors
charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@blurbdust
blurbdust / main.py
Last active February 11, 2019 23:21
CPRE.331 Lab 3 Part 2
#!/usr/bin/env python3
class Salsa:
def __init__(self,r):
assert r >= 0
self._r = r # number of rounds
self._mask = 0xffffffff # 32-bit mask
def __call__(self,key=[0]*32,nonce=[0]*8,block_counter=[0]*8):
#print(len(key))
assert len(key) == 32
@blurbdust
blurbdust / main.py
Created February 13, 2019 18:40
CPRE.331.Lab4.Part1
#-*- coding: utf8 -*-
#!/usr/bin/env python3
#Initial permute matrix for the datas
PI = [58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
@blurbdust
blurbdust / test.js
Last active February 15, 2019 22:13
test
document.write("gist blurbdust");
@blurbdust
blurbdust / main.py
Created February 20, 2019 18:29
CPRE.331.Lab5.Part2
from secretsharing import PlaintextToHexSecretSharer
def recover_flag(msgs):
print(PlaintextToHexSecretSharer.recover_secret(msgs))
def print_results():
msgs = []
recover_flag(msgs[::4])
recover_flag(msgs[1::4])
recover_flag(msgs[2::4])
mkdir $1
cd $1
amass -d $1 | tee amass.log
subfinder -d $1 -o subfinder.log -b -w /root/tools/all.txt/all.lower.txt -recursive
#subfinder -d $1 -o subfinder.log
python /root/tools/Sublist3r/sublist3r.py -d $1 -o sublister.log
cat *.log >> subs.txt
sort subs.txt | uniq > subdomains.txt
subjack -w subdomains.txt -t 10 -timeout 30 -o results.txt -ssl -a
tko-subs -domains=subdomains.txt -data=/root/go_work/src/github.com/anshumanbh/tko-subs/providers-data.csv | tee tko-subs.log
@blurbdust
blurbdust / setup.rtl8812au.sh
Last active March 29, 2019 02:05
CPRE 231 Lab 9 Driver Script
#!/bin/bash
apt-get update
apt-get install -y bc build-essential git cmake dkms linux-image-4.19.0-kali4-amd64 linux-headers-4.19.0-kali4-amd64
git clone https://github.com/blurbdust/rtl8812au
cd rtl8812au
./dkms-remove.sh
./dkms-install.sh