Fix webtest script

This commit is contained in:
pancake 2022-05-08 10:44:53 +02:00
parent b02c652713
commit 224b377aa0
2 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@
setlocal
powershell -ExecutionPolicy bypass^
-Command "& {$process = Start-Process $args[0] $args[1..($args.length-1)] -PassThru; exit $process.id}"^
r2 -N -e http.port=9393 -qq -c=h bins/elf/arg
r2 -N -e asm.cmt.right=false -e http.port=9393 -qq -c=h bins/elf/arg
set child=%errorlevel%
REM curl -s --retry 30 --retry-delay 1 --retry-connrefused http://127.0.0.1:9393/ > nul 2>&1
REM r2 -N -qc 'e asm.cmt.right=false;=0 pd 10' -C http://127.0.0.1:9393/cmd
REM r2 -N -qc '=0 pd 10' -C http://127.0.0.1:9393/cmd
REM r2 -N -c 'b $s;pr~:0..9' -qcq http://127.0.0.1:9393/
curl -s --retry 30 --retry-delay 1 --retry-connrefused http://127.0.0.1:9393/ 2>nul | head -n 11
taskkill /PID %child% /T /F > nul 2>&1

View File

@ -1,8 +1,8 @@
#!/bin/sh
r2 -N -e http.port=9393 -qq -c=h bins/elf/arg > /dev/null 2>&1 &
r2 -e asm.cmt.right=false -N -e http.port=9393 -qq -c=h bins/elf/arg > /dev/null 2>&1 &
CHILD=$!
curl -s --retry 30 --retry-delay 1 --retry-connrefused http://127.0.0.1:9393/ > /dev/null 2>&1
r2 -N -qc 'e asm.cmt.right=false;=0 pd 10' -C http://127.0.0.1:9393/cmd
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