pwntools icon indicating copy to clipboard operation
pwntools copied to clipboard

Stop using cmd.exe to keep current directory

Open robbert1978 opened this issue 4 months ago • 1 comments

Because cmd.exe can't parse the file path of WSL, it automatically drop the current directory to /mnt/c/Windows.

Screenshot 2024-10-13 173943

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.

Screenshot 2024-10-13 174014

robbert1978 avatar Oct 13 '24 10:10 robbert1978