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
#!/bin/bash | |
# | |
# ./makeitrain.sh bitcoin-qt.crashdump.core | |
# __ _ _ __ ___ __ ____ ____ | |
# / ( \/ )/ _\ / __)/ _\/ ___(_ ) | |
# ( O ) (/ ( (_ / \___ \ )( | |
# \__(_/\_\_/\_/\___\_/\_(____/(__) | |
# | |
# Donations: | |
# btc: 34fDhMUkvGVr1s2jQvhwmBfw1xqjstrLed |
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
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 |
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
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 |
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
#!/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; |
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
# 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 |
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
[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 |
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
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; |
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
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 |
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
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 |
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
--== 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 |