credits: kevscode (from http://www.rootkit.com)

this is an old technique which exploits microsoft's seldom used idea of customising individual folders in the windows shell.

what you can do:
disguise any folder as:
- the recycle bin
- the control panel
- internet explorer
- my computer
- my documents
- folder settings
- start menu settings
- history
- temp internet files
- briefcase
- network connections
- etc.

basically you can cause any given folder to behave as almost any buit-in explorer extension.

how? simply create a "desktop.ini" file in the folder of choice and set it's classid to the extension you wish to mimic.

you also need to set the folder attributes as system.

sample desktop.ini [from c:\recycled\...]
------------
[.shellclassinfo]
clsid={645ff040-5081-101b-9f08-00aa002f954e}
------------

another one....
------------
[.shellclassinfo]
clsid= {00021401-0000-0000-c000-000000000046}
------------
this guid turns the folder into an 'unknown' file type icon, clicking it does absolutely nothing. right clicking only gives the created date.

check shlguid.h for some other common guids

note: back when i was intially playing with this idea, i stumbled across a windows guid which consistently caused explorer to crash. unfortunately, it's been so long ago that i don't recall the guid. but something to look into further. there may be some vulnerabilities in there.

note: this "hiding" technique does not affect cmd.exe