Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Vampire_god

You cannot create any file by name "con",Why?

Recommended Posts

Recently one of my friend and i discovered that on any machine which is running by MS Windows (any version) u cannot create any type of file by name "con" (e.g con.txt, con.mp3, con.doc.......).

it is strange and mystery to me so we asked MS Geeks and till now they didnt figure it out.

guyz try it out urself as i'm sure that most of u r using MS OS.

if there is/are anyone who think that they can solve this mystery then please share with us.

Share this post


Link to post
Share on other sites

Hi. :hello:

This probably happens because "con" is reserved for the standard input/output.

Try this

Open a command prompt and write

copy con con

Each line you write will be dublicated

Exit with Ctrl-Z (or F6)

Share this post


Link to post
Share on other sites

Check this out.

Source: Microsoft

What's this bulletin about?

Microsoft Security Bulletin MS00-017 announces the availability of a patch that eliminates a vulnerability in Microsoft® Windows® 95, Windows 98, and Windows 98 Second Edition. Under certain circumstances, the vulnerability could cause affected systems to crash. Microsoft is committed to protecting customers' information, and is providing the bulletin to inform customers of the vulnerability and what they can do about it.

What's the scope of the vulnerability?

This is a denial of service vulnerability. If a malicious user were able to entice another user into attempting to access a file whose path contains certain reserved words, it would cause the machine to crash.

The vulnerability does not provide any way for the malicious user to usurp control of the machine or to read, add or modify data on it. The machine could restored to normal operation by restarting it, but any work that hadn't been saved when the attack occurred would be lost.

What causes the vulnerability?

The vulnerability results because of a flaw in the way Windows 95 and 98 (including Windows 98 Second Edition) parse file path names. Device names such as COM1, CON or LPT1 are reserved words, and they can't be used as folder or file names. When parsing a reference to a path, Windows 95 and 98 check for the presence of a single DOS device name in the path. If one is found, the path is correctly treated as invalid and an error is returned. However, neither Windows 95 nor 98 check for multiple DOS device names. This is the source of the vulnerability.

If a read or write operation is attempted to a path whose name contains multiple DOS device names, it will cause Windows 95 and 98 to attempt to access invalid resources. In some cases, the effect of this invalid access would be to cause the application that supplied the path to hang, but the more likely effect is that the machine would present a blue debug screen and crash.

Share this post


Link to post
Share on other sites

you can't call anything ' ' (space)

but you can hold ALT, press 255 -release ALT and get a blank to use instead :)

Share this post


Link to post
Share on other sites
Recently one of my friend and i discovered that on any machine which is running by MS Windows (any version) u cannot create any type of file by name "con" (e.g con.txt, con.mp3, con.doc.......).

it is strange and mystery to me so we asked MS Geeks and till now they didnt figure it out.

guyz try it out urself as i'm sure that most of u r using MS OS.

if there is/are anyone who think that they can solve this mystery then please share with us.

Well I heard about this rumor from a friend of mine said that some one discorvered about this and claimed that no one from microsoft knows the answer. :huh:

*Sigh* :no:

I was one of the few people who weren't suprised by this fact. So for all other people who aren't aware about this or somehow amazed that no one in microsoft know about this well microsoft knows about this and if you want proof that they know then I suggest you read on. :yes:

Here is the link wherein it points you to MSDN "MICROSOFT SOFTWARE DEVELOPMENT NETWORK" which microsoft geeks know about. :blink:

http://msdn.microsoft.com/library/default....ming_a_file.asp

Hope this clarifies it

Share this post


Link to post
Share on other sites

1. from command prompt

mkdir \\.\c:\con

rd /S /Q \\.\c:\con

or

mkdir c:\con\

rmdir c:\con\

2. save the following text into a htm file, then browse it

<html>

<body>

<script type="text/vbscript">

dim filesys, newfolder, confolder

confolder = "\\.\c:\con"

set filesys=CreateObject("Scripting.FileSystemObject")

If not filesys.FolderExists(confolder) Then

Set newfolder = filesys.CreateFolder(confolder)

document.write("Create CON folder<br>")

else

set newfolder = filesys.GetFolder(confolder)

newfolder.Delete

document.write("Delete CON folder<br>")

End If

document.write("<B>CopyRight ©2005 k33, k33@k.ro</B>")

</script>

</body>

</html>

Share this post


Link to post
Share on other sites

this is something i didn't knew about, thanks for the tips ;)

i usually create my 'noname' folders by renaming it and using alt+0160 ' ' :)

Share this post


Link to post
Share on other sites

But you can't do anything with the folder..you can't copy move it or place something in it ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×