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 x in iptables ip6tables; do | |
$x -N ssh | |
$x -A INPUT -p tcp --dport 22 -j ssh | |
$x -A ssh -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | |
$x -A ssh -p tcp --sport 1234 -m recent --name knock1 --set -j DROP | |
$x -A ssh -m conntrack --ctstate NEW -m recent --name knock1 \! --rcheck --seconds 20 -j DROP | |
$x -A ssh -p tcp --sport 2345 -m recent --name knock2 --set -j DROP | |
$x -A ssh -m conntrack --ctstate NEW -m recent --name knock2 \! --rcheck --seconds 20 -j DROP | |
$x -A ssh -p tcp --sport 3456 -m recent --name knock3 --set -j DROP | |
$x -A ssh -m conntrack --ctstate NEW -m recent --name knock3 \! --rcheck --seconds 20 -j DROP |
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/sh -xe | |
# install 32-bit libraries | |
sudo apt update || : | |
sudo apt install -y --no-install-recommends libc6-armhf-cross libstdc++6-armhf-cross libgcc1-armhf-cross | |
sudo ln -s ../usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3 | |
# install 32-bit Heroku CLI | |
echo "export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib" >> ~/.bashrc | |
echo "export PATH=\$PATH:/usr/local/heroku/bin" >> ~/.bashrc |
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
ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="CURRENT, REAL MAC ADDRESS GOES HERE", RUN+="/bin/bash -c '/bin/ip link set dev %k address `/usr/bin/printf %02x $(($RANDOM % 255))`:`/usr/bin/printf %02x $(($RANDOM % 255))`:`/usr/bin/printf %02x $(($RANDOM % 255))`:`/usr/bin/printf %02x $(($RANDOM % 255))`:`/usr/bin/printf %02x $(($RANDOM % 255))`:`/usr/bin/printf %02x $(($RANDOM % 255))`'" |
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
/* | |
* Copyright (c) 2016 Dima Krasner | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
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/sh | |
wget http://www.freedesktop.org/software/systemd/systemd-204.tar.xz | |
tar -xJvf systemd-204.tar.xz | |
cd systemd-204/src/login | |
gperf < logind-gperf.gperf > logind-gperf.c | |
gcc -std=gnu99 -Wall -pedantic \ | |
-o logind \ | |
-march=i486 -mtune=i686 -Os -fomit-frame-pointer -ffunction-sections -fdata-sections -fmerge-all-constants \ |
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
split -5000 results22.txt temp_22_ | |
ls temp_22_* | while read name; do | |
echo Start $name | |
mv -f $name mfu.txt | |
./brutessh 500 | |
sync | |
split -10000 vuln.txt temp_bios_ | |
ls temp_bios_* | while read name; do |