Skip to content

Instantly share code, notes, and snippets.

@blurbdust
blurbdust / modify_routes.py
Created September 12, 2019 17:57
minimum of 15 charcters from kwp
#!/env/user/python3
import sys
def main(infile, outfile, minlength):
#print(minlength)
minlength = int(minlength)
with open(outfile, "w") as out:
with open(infile, "r") as in_:
for line in in_:
line = line.replace("\n", "").replace("\r", "").replace("\t", "").replace(" ", "")
@blurbdust
blurbdust / PKGBUILD
Created April 26, 2019 00:37
Apache Flink PKGBUILD modified from current AUR
# Maintainer: Tao Meng ("mtunique") <oatgnem [at] gmail.com>
pkgname=apache-flink
pkgver=1.8.0
pkgrel=2
pkgdesc="Apache Flink is an open source platform for distributed stream and batch data processing"
arch=("i686" "x86_64")
url="http://flink.apache.org"
license=("APACHE")
depends=('java-environment>=7' 'openssh')
@blurbdust
blurbdust / PKGBUILD
Created April 26, 2019 00:30
Apache Spark PKGBUILD modified from current AUR
# Maintainer: François Garillot ("huitseeker") <francois [at] garillot.net>
# Contributor: Christian Krause ("wookietreiber") <kizkizzbangbang@gmail.com>
pkgname=apache-spark
pkgver=2.4.2
pkgrel=1
pkgdesc="fast and general engine for large-scale data processing"
arch=('any')
url="http://spark.apache.org"
license=('APACHE')
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
804341497441255424
3240985277
491532627
4556567547
4815201574
55217069
1027567260012097537
256491073
17173775
33861425
@blurbdust
blurbdust / covert_tcp.c
Created April 3, 2019 17:57
CPRE.331.covert_tcp.c
/* Covert_TCP 1.0 - Covert channel file transfer for Linux
* Written by Craig H. Rowland (crowland@psionic.com)
* Copyright 1996 Craig H. Rowland (11-15-96)
* NOT FOR COMMERCIAL USE WITHOUT PERMISSION.
*
*
* This program manipulates the TCP/IP header to transfer a file one byte
* at a time to a destination host. This progam can act as a server and a client
* and can be used to conceal transmission of data inside the IP header.
* This is useful for bypassing firewalls from the inside, and for
@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
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 / 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])
@blurbdust
blurbdust / test.js
Last active February 15, 2019 22:13
test
document.write("gist blurbdust");
@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,