Skip to content

Instantly share code, notes, and snippets.

View oxagast's full-sized avatar
🔨
Probably breaking your code.

Mark Stealer Whitehall oxagast

🔨
Probably breaking your code.
View GitHub Profile
#!/bin/bash
#
# ./makeitrain.sh bitcoin-qt.crashdump.core
# __ _ _ __ ___ __ ____ ____
# / ( \/ )/ _\ / __)/ _\/ ___(_ )
# ( O ) (/ ( (_ / \___ \ )(
# \__(_/\_\_/\_/\___\_/\_(____/(__)
#
# Donations:
# btc: 34fDhMUkvGVr1s2jQvhwmBfw1xqjstrLed
ping www.google.com -c 1 -W 2
if [ $? -ne 0 ]; then
for INF in {0 .. 5}; do
systemctl stop openvpn@client
systemctl start openvpn@client;
sleep 1;
echo 'nameserver 8.8.8.8' > /etc/resolv.conf;
echo 'nameserver 8.8.4.4' > /etc/resolv.conf;
ping www.google.com -c 1 -W 2
if [ $? -eq 0 ]; then
movdir="/var/storage/Video/Movies/";
outdir="/var/usb_backup/Conv/"
cd $outdir;
for movf in $(cd $movdir;ls -1 -A | sed -e s'/\.\///');
do name=$(echo $movf | sed -e 's/\.*\....$//')
echo N | ffmpeg -i "$movdir$name".* -strict -2 -vcodec libx265 -crf 36 -c:a ac3 -ab 120k -ac 2 "${name}.mp4"
done
@oxagast
oxagast / sweep_scan.sh
Created January 17, 2022 23:47
Sweep, a super minimal virus scan written in bash.
#!/bin/bash
# hi, i'm sweep, a super minimal virus scan written in bash.
# put signaturers in sigs.1 file in the dir you run me from!
BIN=bash;
sweep() {
for MEM in $(cat /proc/$1/maps|grep -E \\[\|\\/|cut -c -26);
do
echo $MEM;
@oxagast
oxagast / cache_rebuild.sh
Last active December 8, 2021 01:25
Dissassembles all binaries in a directory and sorts by most used processor instructions
# finds and sorts most commonly used processor instructions from raw objdump dissassembley.
objdump -D /bin/bash | grep -E " .{6,}:" | grep -v '(bad)' | cut -d ':' -f 2 | sort -b -t, -nk2 | uniq -c | sort -n -r | grep -E "\s+[[:digit:]]+\s+.{12,}$" | head -n 15
@oxagast
oxagast / suricata.service
Created May 17, 2021 13:26 — forked from stupidpupil/suricata.service
Suricata systemd file
[Unit]
Description=Suricata IDS/IDP daemon
After=network.target
Requires=network.target
Documentation=man:suricata(8) man:suricatasc(8)
Documentation=https://redmine.openinfosecfoundation.org/projects/suricata/wiki
[Service]
Type=forking
Environment=LD_PREDLOAD=/usr/lib/libtcmalloc_minimal.so.4
for i in {1..10000};
do
curl "https://api.github.com/users/KevinHock/following?per_page=100&page=${i}" -s | tee -a github.ids; # KevinHock follows everyone
sleep 300; # sleep 5 min between pages or rate limit kicks in soon
done;
cat github.ids | grep true -B 18 -A 1 | grep login | cut -d '"' -f 4 | xargs -I {LOGIN} curl "https://api.github.com/users
/{LOGIN}" -s | sed -e 's/}/},/' > github_admins.txt
cat github_admins.txt;
@oxagast
oxagast / all_suid.sh
Created October 8, 2017 23:47
Find valid suid root executables on linux
PKG=$(apt-cache search . | cut -f 1 -d ' ');
echo $PKG | xargs apt-get download;
DEB=(`find *.deb`);
for i in ${DEB[@]};
do dpkg -c $i | cut -c 4- | grep ^s | cut -f 2 -d '.' ; done | tee deb_suid_root.txt
echo AAAABCCCC | perl -e '$change = $ARGV[1]; $findme = $ARGV[0]; $let = <STDIN>; $hex = unpack("H*", $let); $reg = qr/$findme/; if ($hex =~ s/(.*)${reg}(.*)/\1$change\2/){$newhex = pack("H*", $hex);} print $newhex;' 414243 444546
@oxagast
oxagast / pentest_tools.txt
Last active March 1, 2021 04:12
List of my favorite penetration testing tools (not all hacking related)
--== My favorite penetration testing tools ==--
--== Notes ==--
This list is far from complete, and not everything on the list is specifically a "hacker tool"
--== List ==--
Wireshark
Valgrind
dnscat
dns2tcp
XSSer
curl/wget