Created
April 13, 2023 22:26
-
-
Save personnumber3377/f9788a7eab204920dace27eab213b0e8 to your computer and use it in GitHub Desktop.
final final script thing
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 | |
# Running a netcat listener on port tcp port 80 in the background | |
netcat -l 80 -k -w 0 & | |
export ASAN_OPTIONS=abort_on_error=1:symbolize=0:detect_leaks=0 | |
# Prepare iptables entries | |
iptables-legacy -t nat -A OUTPUT -p tcp -j REDIRECT --to-port 80 | |
iptables-legacy -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1 | |
export AFL_AUTORESUME=1 | |
# Prepare fuzzing directories | |
mkdir fuzz && | |
cd fuzz && | |
mkdir in && | |
cp /AFLplusplus/stuff.zip . && | |
unzip stuff.zip && | |
echo -ne 'curl\x00http://127.0.0.1:80' > in/example_command.txt && | |
# Run afl++ fuzzer | |
afl-fuzz -x /AFLplusplus/curl.dict -M master01 -i in/ -o out/ -- curl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment