mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 20:48:07 +00:00
Create make_dict.sh
This commit is contained in:
committed by
GitHub
parent
f8a5f1cd9e
commit
64293cdc82
19
utils/libtokencap/make_dict.sh
Normal file
19
utils/libtokencap/make_dict.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
LD_PRELOAD_PATH="/path/to/libtokencap.so"
|
||||
AFL_TOKEN_FILE=${PWD}/temp_output.txt
|
||||
AFL_DICT_FILE=$(basename ${target_output})
|
||||
target_bin="/path/to/target/program"
|
||||
target_output="/path/to/target/output"
|
||||
timeout_sec="5"
|
||||
|
||||
{
|
||||
touch $AFL_TOKEN_FILE
|
||||
for i in $(find ${target_output} -type f -name "id*"); do
|
||||
LD_PRELOAD=${LD_PRELOAD_PATH} \
|
||||
timeout -s SIGKILL ${timeout_sec} \
|
||||
${target_bin} ${i}
|
||||
done
|
||||
} >${AFL_TOKEN_FILE}
|
||||
|
||||
sort -u ${AFL_TOKEN_FILE} >${AFL_DICT_FILE}.dict
|
Reference in New Issue
Block a user