Tales of an IT Nobody

devbox:~$ iptables -A OUTPUT -j DROP

Shortcut to a directory with a bat file and a sub directory containing the same name May 31, 2011

Check this out.
Make a directory structure like this:

Dir
Dir/AnotherDir
Dir/anotherdir.bat

Fill the .bat file with something creative… (Non destructive)

Now, make a shortcut from anywhere to Dir/AnotherDir – lemme guess, it tries to name the shortcut after the bat file? Odd! Rename it in the prompt then.

Save your shortcut and try to use it. Lemme guess, executed the bat file?

See below if you’re too lazy to try ;)

No Comments on Shortcut to a directory with a bat file and a sub directory containing the same name
Categories: security windows