Files
radaree2/test/scripts/test-webserver.sh

9 lines
319 B
Bash
Raw Permalink Normal View History

2020-09-23 20:09:21 +08:00
#!/bin/sh
2022-05-08 10:44:53 +02:00
r2 -e asm.cmt.right=false -N -e http.port=9393 -qq -c=h bins/elf/arg > /dev/null 2>&1 &
CHILD=$!
2020-09-26 18:53:24 +08:00
curl -s --retry 30 --retry-delay 1 --retry-connrefused http://127.0.0.1:9393/ > /dev/null 2>&1
2022-05-08 10:44:53 +02:00
r2 -N -qc '=0 pd 10' -C http://127.0.0.1:9393/cmd
r2 -N -c 'b $s;pr~:0..11' -qcq http://127.0.0.1:9393/
kill $CHILD