Skip to content

Instantly share code, notes, and snippets.

@livz

livz/run.bat Secret

Created July 21, 2017 16:08
Show Gist options
  • Save livz/b3170940c578ded0e91d45e7cc845274 to your computer and use it in GitHub Desktop.
Save livz/b3170940c578ded0e91d45e7cc845274 to your computer and use it in GitHub Desktop.
Script bug conditions
@echo off
REM Compile test program
cl /nologo /EHsc Bug.c
REM Run the newly compiled binary. Bug not reproducible without this step!
Bug.exe
sleep 5
REM Force rename to a different name
move /y Bug.exe Bug-Secret.exe > nul
REM Run the renamed file a few times
for /l %%x in (1, 1, 1) do (
sleep 15
Bug-Secret.exe
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment