Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.74k stars 1.67k forks source link

Lookup using $PATHEXT file extensions in `which` on Windows #2328

Closed peace-maker closed 6 months ago

peace-maker commented 6 months ago

Windows uses some file extensions to determine which file to run when given a non-existing file. Try all file extensions in the $PATHEXT environment variable, which defaults to .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL on Windows 11.

This allows to run process("calc") instead of process("calc.exe").