Author Topic: How does C;\con\con exploit work?  (Read 1511 times)

udaki

  • Member
  • **
  • Posts: 41
  • Kudos: 0
How does C;\con\con exploit work?
« on: 5 June 2004, 05:58 »
I know it has been fixed but I want to know how it works.I tried to acces the files but it said access denied.What is that file?

solarismka

  • Member
  • **
  • Posts: 598
  • Kudos: 0
How does C;\con\con exploit work?
« Reply #1 on: 5 June 2004, 06:16 »
"Regime Change" starts at home!<p>Islam IS NOT the enemy! Against American Terrorism since Sept/11/2001<p>Jihad:<p>http://www.islamanswers.net/jihad/meaning.htm <p>new SuSE Linux User!<p><p>If your gonna point a finger at someone then at least have the proof to back you up!<p>trolls are idiots that demand attention by posting whatever is opposite to the theme to ruffle feathers to make people upset!<p>Often these same trolls always mention grammar/spelling since they have no intelligence of their own.

udaki

  • Member
  • **
  • Posts: 41
  • Kudos: 0
How does C;\con\con exploit work?
« Reply #2 on: 5 June 2004, 06:28 »
i already know how to use it but how does it actually work?is that like out of memory for windows or what?

anphanax

  • Member
  • **
  • Posts: 197
  • Kudos: 11
    • http://june.tripod.com
How does C;\con\con exploit work?
« Reply #3 on: 5 June 2004, 06:56 »
con, aux, nul, prn, lpt1-3, and com1-3 are device names that are treated as files. They cause problems for applications that try and open them as files.

For instance, in the command prompt (assuming you're not on windows 98 or earlier, which would instead give you the "Cannot run program in MS-DOS mode" error), you can type "write aux" and it MAY crash wordpad.

This is also why you can't have files with these names. (well, you could always edit the disk with a 3rd party tool). I think it's something to do with treating a device as a directory (something messes up internally, bad address returned, program tries to use, exception thrown)

Here's something from cmd.exe:
C:\Documents and Settings\Administrator>cd aux
The parameter is incorrect.

C:\Documents and Settings\Administrator>cd prn
The parameter is incorrect.

C:\Documents and Settings\Administrator>cd con
The system cannot find the path specified.

C:\Documents and Settings\Administrator>cd aux | cd aux
Access is denied.
The parameter is incorrect.

C:\Documents and Settings\Administrator\My Documents\filelib>copy con con

(Hit CTRL+BREAK)
The I/O operation has been aborted because of either a thread exit or an applica
tion request.
        0 file(s) copied.

C:\Documents and Settings\Administrator\My Documents\filelib>

[ June 04, 2004: Message edited by: anphanax ]