Skip to content
Snippets Groups Projects
Commit 3c8d3316 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Test both ida and rida for sha256.zafl

parent 39fc980a
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ parse_args() ...@@ -78,7 +78,7 @@ parse_args()
exit 0 exit 0
;; ;;
--ida) --ida)
ida_or_rida_opt=" " ida_or_rida_opt=" -s meds_static=on -s rida=off "
shift shift
;; ;;
--rida) --rida)
...@@ -214,9 +214,6 @@ else ...@@ -214,9 +214,6 @@ else
options=" $options $entry_opt " options=" $options $entry_opt "
fi fi
echo "entry_opt: $entry_opt"
echo "exit_opt: $exit_opt"
if [ ! -z "$exit_opt" ]; then if [ ! -z "$exit_opt" ]; then
options=" $options $exit_opt " options=" $options $exit_opt "
fi fi
......
...@@ -56,19 +56,19 @@ mkdir $session ...@@ -56,19 +56,19 @@ mkdir $session
pushd $session pushd $session
# build ZAFL version of sha256sum executable # build ZAFL version of sha256sum executable
zafl.sh `which sha256sum` sha256sum.zafl --tempdir analysis.sha256sum.zafl zafl.sh `which sha256sum` sha256sum.ida.zafl --tempdir analysis.sha256sum.ida.zafl --ida
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
log_success "build sha256sum.zafl" log_success "build sha256sum.ida.zafl"
else else
log_error "build sha256sum.zafl" log_error "build sha256sum.ida.zafl"
fi fi
grep ATTR analysis.sha256sum.zafl/logs/zafl.log grep ATTR analysis.sha256sum.ida.zafl/logs/zafl.log
log_message "Fuzz for $AFL_TIMEOUT secs" log_message "Fuzz ida.zafl for $AFL_TIMEOUT secs"
fuzz_with_zafl $(realpath ./sha256sum.zafl) fuzz_with_zafl $(realpath ./sha256sum.ida.zafl)
# build ZAFL (no Ida) version of sha256sum executable # build ZAFL (no Ida) version of sha256sum executable
zafl.sh `which sha256sum` sha256sum.rida.zafl --tempdir analysis.sha256sum.rida.zafl zafl.sh `which sha256sum` sha256sum.rida.zafl --tempdir analysis.sha256sum.rida.zafl --rida
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
log_success "build sha256sum.rida.zafl" log_success "build sha256sum.rida.zafl"
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment