SANITIZE.EXE - Sanitize user input and prevent code injection
Posted: 30 Nov 2016 09:44
So we all know that just about any batch file can become hacked by typing in "&call LeetBatchFileToGiveMeAllTheHackingPower.bat" whenever it prompts you with input.
SANITIZE.EXE fixes this, by doing the following:
1) getting the user input
2) removing all instances of "&" and "%"
3) storing it in a file
Then after that, you can just read the first line from the file and see what you get.
========================
DOWNLOAD IT:
========================
SOURCE CODE:
SANITIZE.EXE fixes this, by doing the following:
1) getting the user input
2) removing all instances of "&" and "%"
3) storing it in a file
Then after that, you can just read the first line from the file and see what you get.
========================
DOWNLOAD IT:
========================
SOURCE CODE: