Stop Microsoft

All Things Microsoft => Microsoft Software => Topic started by: Jack2000 on 6 October 2005, 13:41

Title: Strange string in command.com
Post by: Jack2000 on 6 October 2005, 13:41
wow !:eek::eek::eek:
 (http://illhostit.com/thumbnails/6466914342903058/Command.com.jpg) illhostit.com - Command.com.jpg (http://illhostit.com/files/6466914342903058/Command.com.jpg)




this is :
\edit.com command.com

just take a look ....
Title: Re: Strange string in command.com
Post by: Refalm on 6 October 2005, 14:54
On Windows 98, open an HTML file, type this:

"BSOD"
And open the HTML file :)
Title: Re: Strange string in command.com
Post by: Kintaro on 6 October 2005, 16:19
Get a hexeditor you fucking n00b.
Title: Re: Strange string in command.com
Post by: Jack2000 on 6 October 2005, 16:56
You dont need a hex editor to see just that :)


/dev/con

yeah and then they say they do not steal
Title: Re: Strange string in command.com
Post by: Kintaro on 6 October 2005, 20:33
Its a binary file, you should use a hexeditor.
Title: Re: Strange string in command.com
Post by: Aloone_Jonez on 6 October 2005, 21:04
I can't see anything strange here, this sort of thing is very common in MS-DOS.
Title: Re: Strange string in command.com
Post by: Jack2000 on 6 October 2005, 21:16
Cmon this is obviusly the section where the startup files are listed
why whould it have /dev/con string!
the other two are with :\ and \ indicating that it should load them
from the def driver where command.com is located
even the slashes on it are the other direction !!!!!
can't you see the connection it is just some trash part left
from an Unix based sys !!!
Title: Re: Strange string in command.com
Post by: WMD on 6 October 2005, 21:24
MS-DOS has always had Unix-like device commands.  You never see them, but they're there and always have been.

/dev/con
/dev/nul
/dev/clock$
/dev/lpt1
/dev/prn
/dev/com1

Those I can remember off-hand.  It's no mystery that DOS is a poorly-conceived, single user Unix clone.
Title: Re: Strange string in command.com
Post by: noob on 6 October 2005, 21:25
the lying bastards.
Title: Re: Strange string in command.com
Post by: hm_murdock on 7 October 2005, 09:44
Actually, it's a crudely constructed CP/M clone that was made for Apple IIs and old 8080 machines. Quick and Dirty Operating System. I think it was done by a guy at a software firm to see if he could. MS bought this hack and sold it as MS-DOS.

I've heard stories that the original author built it in one afternoon while dropping acid. I wonder about the validity of the one afternoon bit, but some amount of LSD would be required to make DOS.
Title: Re: Strange string in command.com
Post by: Kintaro on 7 October 2005, 18:00
Dos was never based on Unix, in fact, its so different to Unix that the notion of it is Insane.

The /dev/ bit is probably what tells the system that it is a device, but opening a file with the typical API called "Con", "Aux", etc is basically opening a device. Dos has no /dev/ directory on the filename, no such thing as device nodes, just a crude API for input/serial/printer devices.

It is NOT unix. Also, CP/M had the same thing.
Title: Re: Strange string in command.com
Post by: Aloone_Jonez on 7 October 2005, 19:40
I know that but they did borrow some UNIX concepts like redirection and pipes which is possibly where the devices /CON /NUL came from.
Title: Re: Strange string in command.com
Post by: Jenda on 8 October 2005, 22:51
Quote
Actually, it's a crudely constructed CP/M clone that was made for Apple IIs and old 8080 machines. Quick and Dirty Operating System. I think it was done by a guy at a software firm to see if he could. MS bought this hack and sold it as MS-DOS.


They just removed the "quick" part. :)
Title: Re: Strange string in command.com
Post by: Kintaro on 9 October 2005, 14:03
Quote from: Aloone_Jonez
I know that but they did borrow some UNIX concepts like redirection and pipes which is possibly where the devices /CON /NUL came from.

I don't think pipes were in CP/M, just QDOS and MSDOS. However I am not sure, I know they were in MP/M. In fact when you read on MP/M you wonder why the hell it didn't blow MSDOS out of the water.
Title: Re: Strange string in command.com
Post by: anphanax on 17 October 2005, 03:20
Hey, you've got XP or 2K laying around, check this out (this stuff doesn't exist in WinDOS 9x):


con\prn\nul\aux\com#\lpt# are just the tip of a much bigger iceberg :P.

For instance, although stupid, you can make your floppy drive light up by typing this in cmd.exe:
"more < \\.\GLOBALROOT\DEVICE\Floppy0"

If I recall correctly, those are all in some sort of kernel namespace (\..\?), and a lot of that junk isn't accessible in user-mode windows (in other words, I think some stuff, like the contents of the "Drivers" path, is only accessible in kernel-mode). Also, I believe there's a specialized undocumented API for working with kernel objects on NT. "NtQueryObject" from NTDLL.DLL comes to mind, for one.