Created
October 19, 2021 19:49
-
-
Save NSEcho/f42e65fa30e3eb2050ea4dc221428899 to your computer and use it in GitHub Desktop.
Simple radamsa fuzzing template
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 | |
while true; do | |
radamsa sample.xml > input.xml | |
/path/to/binary/you/are/fuzzing ./input.xml | |
if [ $? -gt 0 ]; then | |
crash_filename=$(date +"%F %T") | |
cp input.xml "${crash_filename}.xml" | |
echo "Crash found!" | |
exit | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are fuzzing some command line parameter, change the following:
radamsa sample.xml > input.xml
toecho -n 'input' | radamsa > input.txt
/path/to/binary/you/are/fuzzing ./input.xml
to/path/to/binary/you/are/fuzzing "$(cat input.txt)"
cp input.xml "${crash_filename}.xml"
tocp input.txt "${crash_filename}.txt"