The ingenuity of the command line is quite a lot. Here is a sort-out of techniques for creating abnormal directories
_______Last updated 2006-5-21 By est
1. Non-displayable ASCII characters
Remember to add non-displayable ASCII characters like alt+255, alt+160, etc. in the directory name, and it may not be able to be opened in Win9x ~~
2. UNICODE characters
Create a new folder in XP, edit the directory name, right-click, insert a Unicode control character, randomly choose one, and see ~~ A folder with a display length of 0 is created. (If you change the folder icon to transparent again... heh heh)
3. Adding dots
Create: Enter md D:\est..\ in cmd
Access: Run D:\est..\
Confusion: Create D:\est\. In this way, each time you open the D:\a..\ directory, you will automatically enter the D:\a\ directory ~~
Delete: rd D:\est..\
The above is adding two dots, actually you can add three, four...
4. Creating a directory name with spaces
Create: Use md "By est \ ", note: there is a space after est! The principle is to add a \ \ after the abnormal directory name, that is, \ space \.
Access: For the created directory, you can directly access it in explorer, and in cmd, use cd "By est \ "
Delete: rd /s /q "\\.\D:\By est \ ". It is better to add a quote, otherwise you will die very miserably!
5. Retaining device names
Create: md D:\con\ (Note: the \ after it! Can't be less!)
Access: Directly access in XP. But the directory cannot be directly deleted in explorer. In 2k, use run D:\con\. Unknown in 9x ~~ Should be unable to access
Delete: rd /s D:\con\ (If not working, use the above rd /s /q \\.\D:\con\)
Others like aux com1 nul, etc. are similar
Note: This restriction has been removed in Vista.
6. Ultra-long directory names
Actually, there is no technical content, just an ultra-long file name above 255 bytes. Windows cannot access it normally, but Kaba can crash ~~ Sweat ~~
7. Abnormal drive letters (not sure if it's off-topic)
The drive letters here are the familiar C: D: E: that everyone is familiar with, and the familiar command subst. Are you still familiar with the combination of the two? Please see the following example:
subst T: C:\windows Map T: to the C:\windows directory
subst 1: C:\windows See! Use numbers as drive letters!! It is completely legal in NT Cmd!
subst 晕: C:\windows晕~ Use Chinese characters as drive letters~
Complete input:
Then go to "My Computer" to see? There is nothing! According to the test, many software cannot recognize digital/Chinese drive letters, so if the virus is mapped to an abnormal drive letter and run, can the anti-virus software kill it? This is a problem!
8. Dot file names of hidden folders
Everyone knows that in DOS and other OS, . represents the current directory, .. represents the parent directory, so we can use this to create abnormal directories
Create: md "D:\...\"
Access: Run D:\...\
Delete: rd /s "D:\...\"
Actually, adding more dots doesn't matter, but three dots can only be created on non-NTFS partitions! On FAT partitions, folders named . and .. can be created, and they are completely invisible in the resource manager.
The directories created by the above methods are almost impossible to access and delete normally in pure DOS and explorer, so they can be used to enhance the security and robustness of the directory!
All rights reserved. Original post of China DOS Union. Author group: est, Wu Nai He
Please indicate the original author and source when reprinting!
Please post if there are supplements!
P.S. Please ask experts to explain the principles of the above abnormal directories, as well as the application of \\.\D:\, thank you!
[ Last edited by electronixtar on 2006-10-20 at 01:20 ]
_______Last updated 2006-5-21 By est
1. Non-displayable ASCII characters
Remember to add non-displayable ASCII characters like alt+255, alt+160, etc. in the directory name, and it may not be able to be opened in Win9x ~~
2. UNICODE characters
Create a new folder in XP, edit the directory name, right-click, insert a Unicode control character, randomly choose one, and see ~~ A folder with a display length of 0 is created. (If you change the folder icon to transparent again... heh heh)
3. Adding dots
Create: Enter md D:\est..\ in cmd
Access: Run D:\est..\
Confusion: Create D:\est\. In this way, each time you open the D:\a..\ directory, you will automatically enter the D:\a\ directory ~~
Delete: rd D:\est..\
The above is adding two dots, actually you can add three, four...
4. Creating a directory name with spaces
Create: Use md "By est \ ", note: there is a space after est! The principle is to add a \ \ after the abnormal directory name, that is, \ space \.
Access: For the created directory, you can directly access it in explorer, and in cmd, use cd "By est \ "
Delete: rd /s /q "\\.\D:\By est \ ". It is better to add a quote, otherwise you will die very miserably!
5. Retaining device names
Create: md D:\con\ (Note: the \ after it! Can't be less!)
Access: Directly access in XP. But the directory cannot be directly deleted in explorer. In 2k, use run D:\con\. Unknown in 9x ~~ Should be unable to access
Delete: rd /s D:\con\ (If not working, use the above rd /s /q \\.\D:\con\)
Others like aux com1 nul, etc. are similar
Note: This restriction has been removed in Vista.
6. Ultra-long directory names
Actually, there is no technical content, just an ultra-long file name above 255 bytes. Windows cannot access it normally, but Kaba can crash ~~ Sweat ~~
7. Abnormal drive letters (not sure if it's off-topic)
The drive letters here are the familiar C: D: E: that everyone is familiar with, and the familiar command subst. Are you still familiar with the combination of the two? Please see the following example:
subst T: C:\windows Map T: to the C:\windows directory
subst 1: C:\windows See! Use numbers as drive letters!! It is completely legal in NT Cmd!
subst 晕: C:\windows晕~ Use Chinese characters as drive letters~
Complete input:
subst 晕: C:\windows
晕:
dir
notepad 晕:\system.ini
C:
Then go to "My Computer" to see? There is nothing! According to the test, many software cannot recognize digital/Chinese drive letters, so if the virus is mapped to an abnormal drive letter and run, can the anti-virus software kill it? This is a problem!
8. Dot file names of hidden folders
Everyone knows that in DOS and other OS, . represents the current directory, .. represents the parent directory, so we can use this to create abnormal directories
Create: md "D:\...\"
Access: Run D:\...\
Delete: rd /s "D:\...\"
Actually, adding more dots doesn't matter, but three dots can only be created on non-NTFS partitions! On FAT partitions, folders named . and .. can be created, and they are completely invisible in the resource manager.
The directories created by the above methods are almost impossible to access and delete normally in pure DOS and explorer, so they can be used to enhance the security and robustness of the directory!
All rights reserved. Original post of China DOS Union. Author group: est, Wu Nai He
Please indicate the original author and source when reprinting!
Please post if there are supplements!
P.S. Please ask experts to explain the principles of the above abnormal directories, as well as the application of \\.\D:\, thank you!
[ Last edited by electronixtar on 2006-10-20 at 01:20 ]

