# Pagination A:\> dir /p # WideListFormat A:\> dir /w # Pipingtomore A:\> dir | more
cat.exe (type)
1 2 3 4 5 6 7 8 9 10 11 12 13
DOS <DIR> 12-15-255:07p COMMAND COM 54,64505-31-946:22a WINA20 3869,34905-31-946:22a CONFIG SYS 7112-15-255:07p AUTOEXEC BAT 7812-15-255:07p FLAG TXT 6004-02-265:07a 6 file(s) 64,203 bytes 10,428,416 bytes free C:\>typeflag.txt pwn.college{QMkbfHdYCkFD_y-FmBdS66_cyD2.******************} C:\>
ls.exe (dir)
DOS filenames were case-insensitive
DOS assumed that every file had a name of 8 characters or less and an
“extension” (after the one allowed . in the filename) of 3 characters or
less.
there is no permission or ownership information
As a side note, extensions were critical in DOS for similar reasons
that they remain important in Windows: figuring out the type of file.
Specifically for DOS, programs needed to be named with extensions of EXE
(normal DOS executable), COM (simple, older executables that were
basically just raw binary code), and BAT (a batch script containing
commands to run, analogous to a weird variant of a typical shell
script).
DOS assigned floppy drives the A: and B: drives, and “mounting”
happened automatically on access (or, more specifically, there was no
filesystem “mounting”; access just happened). The two letters were for
computers that had both a 5.25” and a 3.5” floppy drive
Any boot process includes not just the loading of the OS itself, but
its initialization. In DOS, this was elegantly handled by autoexec.bat,
a script that specified what commands would run when the system
booted.
you can access the various menu items using your Alt key (e.g., Alt-F
to open the File menu).
FUN FACT: doskey was introduced in MS-DOS 5.0 (1991) and was a
game-changer for productivity. Before doskey, if you made a typo in a
long command, you’d have to retype the whole thing!
edit and add doskey at top of autoexec.bat and quit relaunch
PKTCHK COM 85601-28-929:58p PKTMODE COM 1,72801-28-929:58p PKTMULTI COM 1,82201-28-929:59p PKTRING COM 2,42001-28-929:59p PKTSEND COM 2,34601-28-929:59p PKTSTAT COM 1,69301-28-929:59p PKTTRAF COM 6,01901-28-929:59p TERMIN COM 1,41901-28-929:58p TRACE COM 2,12401-28-929:58p WINPKT COM 3,61701-28-929:59p 18 file(s) 116,641 bytes 192,512 bytes free A:\PKTDRVR>pcntpkint=0x60 PacketdriverforanPCNTPK, version 03.10 Packetdriverskeletoncopyright 1988-92, CrynwrSoftware. Thisprogramisfreesoftware; seethefileCOPYINGfordetails. NOWARRANTY; seethefileCOPYINGfordetails. Packetdriverisatsegment 0BC8 Interruptnumber 0xB (11) I/Oport 0xC000 (49152) MyEthernetaddressis 52:54:00:12:34:56 A:\PKTDRVR>