Skip to content

Instantly share code, notes, and snippets.

View personnumber3377's full-sized avatar

personnumber3377

View GitHub Profile
@personnumber3377
personnumber3377 / script.sh
Created April 13, 2023 22:26
final final script thing
#!/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 &&
diff --git a/src/tool_main.c b/src/tool_main.c
index 2b7743a7e..8a8ae07a3 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -54,7 +54,7 @@
#include "tool_main.h"
#include "tool_libinfo.h"
#include "tool_stderr.h"
-
+#include "../../AFLplusplus/utils/argv_fuzzing/argv-fuzz-inl.h"
@personnumber3377
personnumber3377 / script.sh
Created April 13, 2023 12:31
Master fuzzing script thing
#!/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
# Prepare fuzzing directories
mkdir fuzz &&
@personnumber3377
personnumber3377 / script.sh
Created April 13, 2023 12:28
Fuzzing script for curl
#!/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
# Prepare fuzzing directories
mkdir fuzz &&
@personnumber3377
personnumber3377 / anotherpatch.diff
Created April 13, 2023 12:26
Fuzzing patch for curl
diff --git a/src/tool_main.c b/src/tool_main.c
index 2274bd0f4..701c178af 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -50,7 +50,7 @@
#include "tool_vms.h"
#include "tool_main.h"
#include "tool_libinfo.h"
-
+#include "../../AFLplusplus/utils/argv_fuzzing/argv-fuzz-inl.h"
@personnumber3377
personnumber3377 / script.sh
Created April 13, 2023 03:27
Another thing
#!/bin/bash
# Running a netcat listener on port tcp port 80 in the background
netcat -l 80 -k -w 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
# Prepare fuzzing directories
mkdir fuzz &&
diff --git a/src/tool_main.c b/src/tool_main.c
index 2274bd0f4..6454f7b35 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -50,7 +50,7 @@
#include "tool_vms.h"
#include "tool_main.h"
#include "tool_libinfo.h"
-
+#include "../../AFLplusplus/utils/argv_fuzzing/argv-fuzz-inl.h"