pwntools
pwntools copied to clipboard
Stop using cmd.exe to keep current directory
Because cmd.exe
can't parse the file path of WSL
, it automatically drop the current directory to /mnt/c/Windows
.
We can call wt.exe
directly to keep the current directory. Because some CTF challenges needs patching run path of the binary to .
, so keeping exactly the current directory is convenient for debugging.