home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / texts / anarchy_text_a-l / anarchy3.txt < prev    next >
Text File  |  1991-03-04  |  77KB  |  1,681 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.        3333333333333333333333333333333333333333333333333333333333333333
  7.        33                  Chapter Three - "Hacking"                 33
  8.        3333333333333333333333333333333333333333333333333333333333333333
  9.  
  10.  
  11.          < Part I - From Phrack Magazine >
  12.  
  13. The following two files are from Phrack Magazine.  I just want to let them
  14. know that I didn't touch 'em in the slightest.  Thanks guys, for letting me
  15. put them in here.
  16.  
  17. Hacking is one of the greatest of computer arts.  Real hackers are for the
  18. free distribution of all information.  They hack, not to cause damage, but
  19. to enlighten themselves and others.  They even have their own "hacker's
  20. ethic" that proclaims the rules of computer hacking.
  21.  
  22. There are SO many text files on hacking that I couldn't possibly put them
  23. all in here.  So I just put in a couple with the pure basics to highten
  24. the beginner's curiosity and refresh the expert's memory.
  25.  
  26.  
  27.  
  28.  
  29. Author: Mentor
  30. ~~~~~~~~~~~~~~
  31.  
  32. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  33.                                 ==Phrack Inc.==
  34.  
  35.                       Volume Two, Issue 22, File 4 of 12
  36.  
  37.                +++++++++++++++++++++++++++++++++++++++++++++++++
  38.                |              The LOD/H Presents               |
  39. ++++++++++++++++                                               ++++++++++++++++
  40.                   A Novice's Guide to Hacking- 1989 edition                 /
  41.                   =========================================                /
  42.                                      by                                   /
  43.                                  The Mentor                              /
  44.                        Legion of Doom/Legion of Hackers                 /
  45.                                                                        /
  46.                                December, 1988                         /
  47.                           Merry Christmas Everyone!                  /
  48.          +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/
  49.  
  50.  
  51. The author hereby grants permission to reproduce, redistribute, or include this
  52. file in your g-file section, electronic or print newletter, or any other form
  53. of transmission that you choose, as long as it is kept intact and whole, with
  54. no ommissions, deletions, or changes.
  55.  
  56.       (C) The Mentor- Phoenix Project Productions 1988,1989  512/441-3088
  57.  
  58.  
  59. Introduction:  The State of the Hack
  60. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  61. After surveying a rather large g-file collection, my attention was drawn to the
  62. fact that there hasn't been a good introductory file written for absolute
  63. beginners since back when Mark Tabas was cranking them out (and almost
  64. *everyone* was a beginner!)  The Arts of Hacking and Phreaking have changed
  65. radically since that time, and as the 90's approach, the hack/phreak community
  66. has recovered from the Summer '87 busts (just like it recovered from the Fall
  67. '85 busts, and like it will always recover from attempts to shut it down), and
  68. the progressive media (from Reality Hackers magazine to William Gibson and
  69. Bruce Sterling's cyberpunk fables of hackerdom) is starting to take notice
  70. of us for the first time in recent years in a positive light.
  71.  
  72. Unfortunately, it has also gotten more dangerous since the early 80's.  Phone
  73. cops have more resources, more awareness, and more intelligence than they
  74. exhibited in the past.  It is becoming more and more difficult to survive as a
  75. hacker long enough to become skilled in the art.  To this end this file is
  76. dedicated.  If it can help someone get started, and help them survive to
  77. discover new systems and new information, it will have served it's purpose, and
  78. served as a partial repayment to all the people who helped me out when was a
  79. beginner.
  80.  
  81. Contents
  82. ~~~~~~~~
  83. This file will be divided into four parts:
  84.      Part 1:  What is Hacking, A Hacker's Code of Ethics, Basic Hacking Safety
  85.      Part 2:  Packet Switching Networks: Telenet- How it Works, How to Use it,
  86.               Outdials, Network Servers, Private PADs
  87.      Part 3:  Identifying a Computer, How to Hack In, Operating System Defaults
  88.      Part 4:  Conclusion; Final Thoughts, Books to Read, Boards to Call,
  89.               Acknowledgements
  90.  
  91. Part One:  The Basics
  92. ~~~~~~~~~~~~~~~~~~~~~
  93. As long as there have been computers, there have been hackers.  In the 50's at
  94. the Massachusets Institute of Technology (MIT), students devoted much time and
  95. energy to ingenious exploration of the computers.  Rules and the law were
  96. disregarded in their pursuit for the 'hack.'  Just as they were enthralled with
  97. their pursuit of information, so are we.  The thrill of the hack is not in
  98. breaking the law, it's in the pursuit and capture of knowledge.
  99.  
  100. To this end, let me contribute my suggestions for guidelines to follow to
  101. ensure that not only you stay out of trouble, but you pursue your craft without
  102. damaging the computers you hack into or the companies who own them.
  103.  
  104. I.    Do not intentionally damage *any* system.
  105. II.   Do not alter any system files other than ones needed to ensure your
  106.       escape from detection and your future access (Trojan Horses, Altering
  107.       Logs, and the like are all necessary to your survival for as long as
  108.       possible).
  109. III.  Do not leave your (or anyone else's) real name, real handle, or real
  110.       phone number on any system that you access illegally.  They *can* and
  111.       will track you down from your handle!
  112. IV.   Be careful who you share information with.  Feds are getting trickier
  113.       Generally, if you don't know their voice phone number, name, and
  114.       occupation or haven't spoken with them voice on non-info trading
  115.       conversations, be wary.
  116. V.    Do not leave your real phone number to anyone you don't know.  This
  117.       includes logging on boards, no matter how k-rad they seem.  If you don't
  118.       know the sysop, leave a note telling some trustworthy people that will
  119.       validate you.
  120. VI.   Do not hack government computers.  Yes, there are government systems that
  121.       are safe to hack, but they are few and far between.  And the government
  122.       has inifitely more time and resources to track you down than a company
  123.       who has to make a profit and justify expenses.
  124. VII.  Don't use codes unless there is *NO* way around it (you don't have a
  125.       local telenet or tymnet outdial and can't connect to anything 800).  You
  126.       use codes long enough, you will get caught.  Period.
  127. VIII. Don't be afraid to be paranoid.  Remember, you *are* breaking the law.
  128.       It doesn't hurt to store everything encrypted on your hard disk, or
  129.       keep your notes buried in the backyard or in the trunk of your car.  You
  130.       may feel a little funny, but you'll feel a lot funnier when you when you
  131.       meet Bruno, your transvestite cellmate who axed his family to death.
  132. IX.   Watch what you post on boards.  Most of the really great hackers in the
  133.       country post *nothing* about the system they're currently working except
  134.       in the broadest sense (I'm working on a UNIX, or a COSMOS, or something
  135.       generic.  Not "I'm hacking into General Electric's Voice Mail
  136.       System" or something inane and revealing like that).
  137. X.    Don't be afraid to ask questions.  That's what more experienced hackers
  138.       are for.  Don't expect *everything* you ask to be answered, though.
  139.       There are some things (LMOS, for instance) that a begining hacker
  140.       shouldn't mess with.  You'll either get caught, or screw it up for
  141.       others, or both.
  142. XI.   Finally, you have to actually hack.  You can hang out on boards all you
  143.       want, and you can read all the text files in the world, but until you
  144.       actually start doing it, you'll never know what it's all about.  There's
  145.       no thrill quite the same as getting into your first system (well, ok, I
  146.      can think of a couple of bigger thrills, but you get the picture).
  147.  
  148. One of the safest places to start your hacking career is on a computer system
  149. belonging to a college.  University computers have notoriously lax security,
  150. and are more used to hackers, as every college computer department ment has one
  151. or two, so are less likely to press charges if you should be detected.  But the
  152. odds of them detecting you and having the personel to committ to tracking you
  153. down are slim as long as you aren't destructive.
  154.  
  155. If you are already a college student, this is ideal, as you can legally explore
  156. your computer system to your heart's desire, then go out and look for similar
  157. systems that you can penetrate with confidence, as you're already
  158. familar with them.
  159.  
  160. So if you just want to get your feet wet, call your local college.  Many of
  161. them will provide accounts for local residents at a nominal (under $20) charge.
  162.  
  163. Finally, if you get caught, stay quiet until you get a lawyer.  Don't volunteer
  164. any information, no matter what kind of 'deals' they offer you.  Nothing is
  165. binding unless you make the deal through your lawyer, so you might as well shut
  166. up and wait.
  167.  
  168. Part Two:  Networks
  169. ~~~~~~~~~~~~~~~~~~~
  170. The best place to begin hacking (other than a college) is on one of the
  171. bigger networks such as Telenet.  Why?  First, there is a wide variety of
  172. computers to choose from, from small Micro-Vaxen to huge Crays.  Second, the
  173. networks are fairly well documented.  It's easier to find someone who can help
  174. you with a problem off of Telenet than it is to find assistance concerning your
  175. local college computer or high school machine.  Third, the networks are safer.
  176. Because of the enormous number of calls that are fielded every day by the big
  177. networks, it is not financially practical to keep track of where every call and
  178. connection are made from.  It is also very easy to disguise your location using
  179. the network, which makes your hobby much more secure.
  180.  
  181. Telenet has more computers hooked to it than any other system in the world once
  182. you consider that from Telenet you have access to Tymnet, ItaPAC, JANET,
  183. DATAPAC, SBDN, PandaNet, THEnet, and a whole host of other networks, all of
  184. which you can connect to from your terminal.
  185.  
  186. The first step that you need to take is to identify your local dialup port.
  187. This is done by dialing 1-800-424-9494 (1200 7E1) and connecting.  It will
  188. spout some garbage at you and then you'll get a prompt saying 'TERMINAL= '.
  189. This is your terminal type.  If you have vt100 emulation, type it in now.  Or
  190. just hit return and it will default to dumb terminal mode.
  191.  
  192. You'll now get a prompt that looks like a @.  From here, type @c mail <cr> and
  193. then it will ask for a Username.  Enter 'phones' for the username.  When it
  194. asks for a password, enter 'phones' again.  From this point, it is menu driven.
  195. Use this to locate your local dialup, and call it back locally.  If you don't
  196. have a local dialup, then use whatever means you wish to connect to one long
  197. distance (more on this later).
  198.  
  199. When you call your local dialup, you will once again go through the TERMINAL=
  200. stuff, and once again you'll be presented with a @.  This prompt lets you know
  201. you are connected to a Telenet PAD.  PAD stands for either Packet
  202. Assembler/Disassembler (if you talk to an engineer), or Public Access Device
  203. (if you talk to Telenet's marketing people.)  The first description is more
  204. correct.
  205.  
  206. Telenet works by taking the data you enter in on the PAD you dialed into,
  207. bundling it into a 128 byte chunk (normally... this can be changed), and then
  208. transmitting it at speeds ranging from 9600 to 19,200 baud to another PAD, who
  209. then takes the data and hands it down to whatever computer or system it's
  210. connected to.  Basically, the PAD allows two computers that have different baud
  211. rates or communication protocols to communicate with each other over a long
  212. distance.  Sometimes you'll notice a time lag in the remote machines response.
  213. This is called PAD Delay, and is to be expected when you're sending data
  214. through several different links.
  215.  
  216. What do you do with this PAD?  You use it to connect to remote computer
  217. systems by typing 'C' for connect and then the Network User Address (NUA) of
  218. the system you want to go to.
  219.  
  220. An NUA takes the form of   031103130002520
  221.                            \___/\___/\___/
  222.                              |    |    |
  223.                              |    |    |____ network address
  224.                              |    |_________ area prefix
  225.                              |______________ DNIC
  226.  
  227.  
  228. This is a summary of DNIC's (taken from Blade Runner's file on ItaPAC)
  229. according to their country and network name.
  230.  
  231.  
  232. DNIC   Network Name    Country          DNIC   Network Name    Country
  233. _______________________________________________________________________________
  234.                                      |
  235. 02041   Datanet 1       Netherlands  |  03110   Telenet         USA
  236. 02062   DCS             Belgium      |  03340   Telepac         Mexico
  237. 02080   Transpac        France       |  03400   UDTS-Curacau    Curacau
  238. 02284   Telepac         Switzerland  |  04251   Isranet         Israel
  239. 02322   Datex-P         Austria      |  04401   DDX-P           Japan
  240. 02329   Radaus          Austria      |  04408   Venus-P         Japan
  241. 02342   PSS             UK           |  04501   Dacom-Net       South Korea
  242. 02382   Datapak         Denmark      |  04542   Intelpak        Singapore
  243. 02402   Datapak         Sweden       |  05052   Austpac         Australia
  244. 02405   Telepak         Sweden       |  05053   Midas           Australia
  245. 02442   Finpak          Finland      |  05252   Telepac         Hong Kong
  246. 02624   Datex-P         West Germany |  05301   Pacnet          New Zealand
  247. 02704   Luxpac          Luxembourg   |  06550   Saponet         South Africa
  248. 02724   Eirpak          Ireland      |  07240   Interdata       Brazil
  249. 03020   Datapac         Canada       |  07241   Renpac          Brazil
  250. 03028   Infogram        Canada       |  09000   Dialnet         USA
  251. 03103   ITT/UDTS        USA          |  07421   Dompac          French Guiana
  252. 03106   Tymnet          USA          |
  253.  
  254. There are two ways to find interesting addresses to connect to.  The first and
  255. easiest way is to obtain a copy of the LOD/H Telenet Directory from the LOD/H
  256. Technical Journal 4 or 2600 Magazine.  Jester Sluggo also put out a good list
  257. of non-US addresses in Phrack Inc. Newsletter Issue 21.  These files will tell
  258. you the NUA, whether it will accept collect calls or not, what type of computer
  259. system it is (if known) and who it belongs to (also if known.)
  260.  
  261. The second method of locating interesting addresses is to scan for them
  262. manually.  On Telenet, you do not have to enter the 03110 DNIC to connect to a
  263. Telenet host.  So if you saw that 031104120006140 had a VAX on it you wanted to
  264. look at, you could type @c 412 614 (0's can be ignored most of the time).
  265.  
  266. If this node allows collect billed connections, it will say 412 614 CONNECTED
  267. and then you'll possibly get an identifying header or just a Username: prompt.
  268. If it doesn't allow collect connections, it will give you a message such as 412
  269. 614 REFUSED COLLECT CONNECTION with some error codes out to the right, and
  270. return you to the @ prompt.
  271.  
  272. There are two primary ways to get around the REFUSED COLLECT message.  The
  273. first is to use a Network User Id (NUI) to connect.  An NUI is a username/pw
  274. combination that acts like a charge account on Telenet.  To collect to node
  275. 412 614 with NUI junk4248, password 525332, I'd type the following:
  276. @c 412 614,junk4248,525332  <---- the 525332 will *not* be echoed to the
  277. screen.  The problem with NUI's is that they're hard to come by unless you're a
  278. good social engineer with a thorough knowledge of Telenet (in which case you
  279. probably aren't reading this section), or you have someone who can provide you
  280. with them.
  281.  
  282. The second way to connect is to use a private PAD, either through an X.25 PAD
  283. or through something like Netlink off of a Prime computer (more on these two
  284. below).
  285.  
  286. The prefix in a Telenet NUA oftentimes (not always) refers to the phone Area
  287. Code that the computer is located in (i.e. 713 xxx would be a computer in
  288. Houston, Texas).  If there's a particular area you're interested in, (say, New
  289. York City 914), you could begin by typing @c 914 001 <cr>.  If it connects, you
  290. make a note of it and go on to 914 002.  You do this until you've found some
  291. interesting systems to play with.
  292.  
  293. Not all systems are on a simple xxx yyy address.  Some go out to four or five
  294. digits (914 2354), and some have decimal or numeric extensions (422 121A = 422
  295. 121.01).  You have to play with them, and you never know what you're going to
  296. find.  To fully scan out a prefix would take ten million attempts per prefix.
  297. For example, if I want to scan 512 completely, I'd have to start with 512
  298. 00000.00 and go through 512 00000.99, then increment the address by 1 and try
  299. 512 00001.00 through 512 00001.99.  A lot of scanning.  There are plenty of
  300. neat computers to play with in a 3-digit scan, however, so don't go berserk
  301. with the extensions.
  302.  
  303. Sometimes you'll attempt to connect and it will just be sitting there after one
  304. or two minutes.  In this case, you want to abort the connect attempt by sending
  305. a hard break (this varies with different term programs, on Procomm, it's
  306. ALT-B), and then when you get the @ prompt back, type 'D' for disconnect.
  307.  
  308. If you connect to a computer and wish to disconnect, you can type <cr> @ <cr>
  309. and you it should say TELENET and then give you the @ prompt.  From there, type
  310. D to disconnect or CONT to re-connect and continue your session uninterrupted.
  311.  
  312. Outdials, Network Servers, and PADs
  313. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  314. In addition to computers, an NUA may connect you to several other things. One
  315. of the most useful is the outdial.  An outdial is nothing more than a modem
  316. you can get to over telenet -- similar to the PC Pursuit concept, except that
  317. these don't have passwords on them most of the time.
  318.  
  319. When you connect, you will get a message like 'Hayes 1200 baud outdial,
  320. Detroit, MI', or 'VEN-TEL 212 Modem', or possibly 'Session 1234 established on
  321. Modem 5588.'  The best way to figure out the commands on these is to type ? or
  322. H or HELP -- this will get you all the information that you need to use one.
  323.  
  324. Safety tip here -- when you are hacking *any* system through a phone dialup,
  325. always use an outdial or a diverter, especially if it is a local phone number
  326. to you.  More people get popped hacking on local computers than you can
  327. imagine, Intra-LATA calls are the easiest things in the world to trace
  328. inexpensively.
  329.  
  330. Another nice trick you can do with an outdial is use the redial or macro
  331. function that many of them have.  First thing you do when you connect is to
  332. invoke the 'Redial Last Number' facility.  This will dial the last number used,
  333. which will be the one the person using it before you typed.  Write down the
  334. number, as no one would be calling a number without a computer on it.  This is
  335. a good way to find new systems to hack.  Also, on a VENTEL modem, type 'D' for
  336. Display and it will display the five numbers stored as macros in the modem's
  337. memory.
  338.  
  339. There are also different types of servers for remote Local Area Networks (LAN)
  340. that have many machine all over the office or the nation connected to them.
  341. I'll discuss identifying these later in the computer ID section.
  342.  
  343. And finally, you may connect to something that says 'X.25 Communication PAD'
  344. and then some more stuff, followed by a new @ prompt.  This is a PAD just like
  345. the one you are on, except that all attempted connections are billed to the
  346. PAD, allowing you to connect to those nodes who earlier refused collect
  347. connections.
  348.  
  349. This also has the added bonus of confusing where you are connecting from.  When
  350. a packet is transmitted from PAD to PAD, it contains a header that has the
  351. location you're calling from.  For instance, when you first connected to
  352. Telenet, it might have said 212 44A CONNECTED if you called from the 212 area
  353. code.  This means you were calling PAD number 44A in the 212 area.  That 21244A
  354. will be sent out in the header of all packets leaving the PAD.
  355.  
  356. Once you connect to a private PAD, however, all the packets going out from *it*
  357. will have it's address on them, not yours.  This can be a valuable buffer
  358. between yourself and detection.
  359.  
  360. Phone Scanning
  361. ~~~~~~~~~~~~~~
  362. Finally, there's the time-honored method of computer hunting that was made
  363. famous among the non-hacker crowd by that Oh-So-Technically-Accurate movie
  364. Wargames.  You pick a three digit phone prefix in your area and dial every
  365. number from 0000 --> 9999 in that prefix, making a note of all the carriers you
  366. find.  There is software available to do this for nearly every computer in the
  367. world, so you don't have to do it by hand.
  368.  
  369. Part Three:  I've Found a Computer, Now What?
  370. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  371. This next section is applicable universally.  It doesn't matter how you found
  372. this computer, it could be through a network, or it could be from carrier
  373. scanning your High School's phone prefix, you've got this prompt this prompt,
  374. what the hell is it?
  375.  
  376. I'm *NOT* going to attempt to tell you what to do once you're inside of any of
  377. these operating systems.  Each one is worth several G-files in its own right.
  378. I'm going to tell you how to identify and recognize certain OpSystems, how to
  379. approach hacking into them, and how to deal with something that you've never
  380. seen before and have know idea what it is.
  381.  
  382.  
  383. VMS -      The VAX computer is made by Digital Equipment Corporation (DEC), and
  384.            runs the VMS (Virtual Memory System) operating system. VMS is
  385.            characterized by the 'Username:' prompt.  It will not tell you if
  386.            you've entered a valid username or not, and will disconnect you
  387.            after three bad login attempts.  It also keeps track of all failed
  388.            login attempts and informs the owner of the account next time s/he
  389.            logs in how many bad login attempts were made on the account.  It is
  390.            one of the most secure operating systems around from the outside,
  391.            but once you're in there are many things that you can do to
  392.            circumvent system security.  The VAX also has the best set of help
  393.            files in the world.  Just type HELP and read to your heart's
  394.            content.
  395.  
  396.            Common Accounts/Defaults:  [username: password [[,password]]]
  397.  
  398.            SYSTEM:     OPERATOR or MANAGER or SYSTEM or SYSLIB
  399.            OPERATOR:   OPERATOR
  400.            SYSTEST:    UETP
  401.            SYSMAINT:   SYSMAINT or SERVICE or DIGITAL
  402.            FIELD:      FIELD or SERVICE
  403.            GUEST:      GUEST or unpassworded
  404.            DEMO:       DEMO  or unpassworded
  405.            DECNET:     DECNET
  406.  
  407.  
  408. DEC-10 -   An earlier line of DEC computer equipment, running the TOPS-10
  409.            operating system.  These machines are recognized by their '.'
  410.            prompt.  The DEC-10/20 series are remarkably hacker-friendly,
  411.            allowing you to enter several important commands without ever
  412.            logging into the system.  Accounts are in the format [xxx,yyy]
  413.            where xxx and yyy are integers.  You can get a listing of the
  414.            accounts and the process names of everyone on the system before
  415.            logging in with the command .systat (for SYstem STATus).  If you
  416.            seen an account that reads [234,1001]   BOB JONES, it might be wise
  417.            to try BOB or JONES or both for a password on this account.  To
  418.            login, you type .login xxx,yyy  and then type the password when
  419.            prompted for it.
  420.  
  421.            The system will allow you unlimited tries at an account, and does
  422.            not keep records of bad login attempts.  It will also inform you if
  423.            the UIC you're trying (UIC = User Identification Code, 1,2 for
  424.            example) is bad.
  425.  
  426.            Common Accounts/Defaults:
  427.  
  428.            1,2:        SYSLIB or OPERATOR or MANAGER
  429.            2,7:        MAINTAIN
  430.            5,30:       GAMES
  431.  
  432. UNIX -     There are dozens of different machines out there that run UNIX.
  433.            While some might argue it isn't the best operating system in the
  434.            world, it is certainly the most widely used.  A UNIX system will
  435.            usually have a prompt like 'login:' in lower case.  UNIX also will
  436.            give you unlimited shots at logging in (in most cases), and there is
  437.            usually no log kept of bad attempts.
  438.  
  439.            Common Accounts/Defaults:  (note that some systems are case
  440.            sensitive, so use lower case as a general rule.  Also, many times
  441.            the accounts will be unpassworded, you'll just drop right in!)
  442.  
  443.            root:       root
  444.            admin:      admin
  445.            sysadmin:   sysadmin or admin
  446.            unix:       unix
  447.            uucp:       uucp
  448.            rje:        rje
  449.            guest:      guest
  450.            demo:       demo
  451.            daemon:     daemon
  452.            sysbin:     sysbin
  453.  
  454. Prime -    Prime computer company's mainframe running the Primos operating
  455.            system.  The are easy to spot, as the greet you with 'Primecon
  456.            18.23.05' or the like, depending on the version of the operating
  457.            system you run into.  There will usually be no prompt offered, it
  458.            will just look like it's sitting there.  At this point, type 'login
  459.            <username>'.  If it is a pre-18.00.00 version of Primos, you can hit
  460.            a bunch of ^C's for the password and you'll drop in.  Unfortunately,
  461.            most people are running versions 19+.  Primos also comes with a good
  462.            set of help files.  One of the most useful features of a Prime on
  463.            Telenet is a facility called NETLINK.  Once you're inside, type
  464.            NETLINK and follow the help files.  This allows you to connect to
  465.            NUA's all over the world using the 'nc' command.
  466.  
  467.            For example, to connect to NUA 026245890040004, you would type
  468.            @nc :26245890040004 at the netlink prompt.
  469.  
  470.            Common Accounts/Defaults:
  471.  
  472.            PRIME       PRIME or PRIMOS
  473.            PRIMOS_CS   PRIME or PRIMOS
  474.            PRIMENET    PRIMENET
  475.            SYSTEM      SYSTEM or PRIME
  476.            NETLINK     NETLINK
  477.            TEST        TEST
  478.            GUEST       GUEST
  479.            GUEST1      GUEST
  480.  
  481. HP-x000 -  This system is made by Hewlett-Packard.  It is characterized by the
  482.            ':' prompt.  The HP has one of the more complicated login sequneces
  483.            around -- you type 'HELLO SESSION NAME,USERNAME,ACCOUNTNAME,GROUP'.
  484.            Fortunately, some of these fields can be left blank in many cases.
  485.            Since any and all of these fields can be passworded, this is not the
  486.            easiest system to get into, except for the fact that there are
  487.            usually some unpassworded accounts around.  In general, if the
  488.            defaults don't work, you'll have to brute force it using the common
  489.            password list (see below.)  The HP-x000 runs the MPE operating
  490.            system, the prompt for it will be a ':', just like the logon prompt.
  491.  
  492.            Common Accounts/Defaults:
  493.  
  494.            MGR.TELESUP,PUB                      User: MGR Acct: HPONLYG rp: PUB
  495.            MGR.HPOFFICE,PUB                     unpassworded
  496.            MANAGER.ITF3000,PUB                  unpassworded
  497.            FIELD.SUPPORT,PUB                    user: FLD,  others unpassworded
  498.            MAIL.TELESUP,PUB                     user: MAIL, others unpassworded
  499.            MGR.RJE                              unpassworded
  500.            FIELD.HPPl89 ,HPPl87,HPPl89,HPPl96   unpassworded
  501.            MGR.TELESUP,PUB,HPONLY,HP3           unpassworded
  502.  
  503. IRIS -     IRIS stands for Interactive Real Time Information System.  It
  504.            originally ran on PDP-11's, but now runs on many other minis.  You
  505.            can spot an IRIS by the 'Welcome to "IRIS" R9.1.4 Timesharing'
  506.            banner, and the ACCOUNT ID? prompt.  IRIS allows unlimited tries at
  507.            hacking in, and keeps no logs of bad attempts.  I don't know any
  508.            default passwords, so just try the common ones from the password
  509.            database below.
  510.  
  511.            Common Accounts:
  512.  
  513.            MANAGER
  514.            BOSS
  515.            SOFTWARE
  516.            DEMO
  517.            PDP8
  518.            PDP11
  519.            ACCOUNTING
  520.  
  521. VM/CMS -   The VM/CMS operating system runs in International Business Machines
  522.            (IBM) mainframes.  When you connect to one of these, you will get
  523.            message similar to 'VM/370 ONLINE', and then give you a '.' prompt,
  524.            just like TOPS-10 does.  To login, you type 'LOGON <username>'.
  525.  
  526.            Common Accounts/Defaults are:
  527.  
  528.            AUTOLOG1:            AUTOLOG or AUTOLOG1
  529.            CMS:                 CMS
  530.            CMSBATCH:            CMS or CMSBATCH
  531.            EREP:                EREP
  532.            MAINT:               MAINT or MAINTAIN
  533.            OPERATNS:            OPERATNS or OPERATOR
  534.            OPERATOR:            OPERATOR
  535.            RSCS:                RSCS
  536.            SMART:               SMART
  537.            SNA:                 SNA
  538.            VMTEST:              VMTEST
  539.            VMUTIL:              VMUTIL
  540.            VTAM:                VTAM
  541.  
  542. NOS -      NOS stands for Networking Operating System, and runs on the Cyber
  543.            computer made by Control Data Corporation.  NOS identifies itself
  544.            quite readily, with a banner of 'WELCOME TO THE NOS SOFTWARE SYSTEM.
  545.            COPYRIGHT CONTROL DATA 1978,1987.'  The first prompt you will get
  546.            will be FAMILY:.  Just hit return here.  Then you'll get a USER
  547.            NAME: prompt.  Usernames are typically 7 alpha-numerics characters
  548.            long, and are *extremely* site dependent.  Operator accounts begin
  549.            with a digit, such as 7ETPDOC.
  550.  
  551.            Common Accounts/Defaults:
  552.  
  553.            $SYSTEM              unknown
  554.            SYSTEMV              unknown
  555.  
  556. Decserver- This is not truly a computer system, but is a network server that
  557.            has many different machines available from it.  A Decserver will say
  558.            'Enter Username>' when you first connect.  This can be anything, it
  559.            doesn't matter, it's just an identifier.  Type 'c', as this is the
  560.            least conspicuous thing to enter.  It will then present you with a
  561.            'Local>' prompt.  From here, you type 'c <systemname>' to connect to
  562.            a system.  To get a list of system names, type 'sh services' or 'sh
  563.            nodes'.  If you have any problems, online help is available with the
  564.            'help' command.  Be sure and look for services named 'MODEM' or
  565.            'DIAL' or something similar, these are often outdial modems and can
  566.            be useful!
  567. GS/1 -     Another type of network server.  Unlike a Decserver, you can't
  568.            predict what prompt a GS/1 gateway is going to give you.  The
  569.            default prompt it 'GS/1>', but this is redifinable by the system
  570.            administrator.  To test for a GS/1, do a 'sh d'.  If that prints out
  571.            a large list of defaults (terminal speed, prompt, parity, etc...),
  572.            you are on a GS/1.  You connect in the same manner as a Decserver,
  573.            typing 'c <systemname>'.  To find out what systems are available, do
  574.            a 'sh n' or a 'sh c'.  Another trick is to do a 'sh m', which will
  575.            sometimes show you a list of macros for logging onto a system.  If
  576.            there is a macro named VAX, for instance, type 'do VAX'.
  577.  
  578.            The above are the main system types in use today.  There are
  579.            hundreds of minor variants on the above, but this should be enough
  580.            to get you started.
  581.  
  582. Unresponsive Systems
  583. ~~~~~~~~~~~~~~~~~~~~
  584. Occasionally you will connect to a system that will do nothing, but sit there.
  585. This is a frustrating feeling, but a methodical approach to the system will
  586. yield a response if you take your time.  The following list will usually make
  587. *something* happen.
  588.  
  589. 1)  Change your parity, data length, and stop bits.  A system that won't
  590.     respond at 8N1 may react at 7E1 or 8E2 or 7S2.  If you don't have a term
  591.     program that will let you set parity to EVEN, ODD, SPACE, MARK, and NONE,
  592.     with data length of 7 or 8, and 1 or 2 stop bits, go out and buy one.
  593.     While having a good term program isn't absolutely necessary, it sure is
  594.     helpful.
  595. 2)  Change baud rates.  Again, if your term program will let you choose odd
  596.     baud rates such as 600 or 1100, you will occasionally be able to penetrate
  597.     some very interesting systems, as most systems that depend on a strange
  598.     baud rate seem to think that this is all the security they need...
  599. 3)  Send a series of <cr>'s.
  600. 4)  Send a hard break followed by a <cr>.
  601. 5)  Type a series of .'s (periods).  The Canadian network Datapac responds to
  602.     this.
  603. 6)  If you're getting garbage, hit an 'i'.  Tymnet responds to this, as does a
  604.     MultiLink II.
  605. 7)  Begin sending control characters, starting with ^A --> ^Z.
  606. 8)  Change terminal emulations.  What your vt100 emulation thinks is garbage
  607.     may all of a sudden become crystal clear using ADM-5 emulation.  This also
  608.     relates to how good your term program is.
  609. 9)  Type LOGIN, HELLO, LOG, ATTACH, CONNECT, START, RUN, BEGIN, LOGON, GO,
  610.     JOIN, HELP, and anything else you can think of.
  611. 10) If it's a dialin, call the numbers around it and see if a company answers.
  612.     If they do, try some social engineering.
  613.  
  614. Brute Force Hacking
  615. ~~~~~~~~~~~~~~~~~~~
  616. There will also be many occasions when the default passwords will not work on
  617. an account.  At this point, you can either go onto the next system on your
  618. list, or you can try to 'brute-force' your way in by trying a large database of
  619. passwords on that one account.  Be careful, though!  This works fine on systems
  620. that don't keep track of invalid logins, but on a system like a VMS, someone is
  621. going to have a heart attack if they come back and see '600 Bad Login Attempts
  622. Since Last Session' on their account.  There are also some operating systems
  623. that disconnect after 'x' number of invalid login attempts and refuse to allow
  624. any more attempts for one hour, or ten minutes, or sometimes until the next
  625. day.
  626.  
  627. The following list is taken from my own password database plus the database of
  628. passwords that was used in the Internet UNIX Worm that was running around in
  629. November of 1988.  For a shorter group, try first names, computer terms, and
  630. obvious things like 'secret', 'password', 'open', and the name of the account.
  631. Also try the name of the company that owns the computer system (if known), the
  632. company initials, and things relating to the products the company makes or
  633. deals with.
  634.                               Password List
  635.                               =============
  636.  
  637.       aaa                daniel             jester             rascal
  638.       academia           danny              johnny             really
  639.       ada                dave               joseph             rebecca
  640.       adrian             deb                joshua             remote
  641.       aesir              debbie             judith             rick
  642.       airplane           deborah            juggle             reagan
  643.       albany             december           julia              robot
  644.       albatross          desperate          kathleen           robotics
  645.       albert             develop            kermit             rolex
  646.       alex               diet               kernel             ronald
  647.       alexander          digital            knight             rosebud
  648.       algebra            discovery          lambda             rosemary
  649.       alias              disney             larry              roses
  650.       alpha              dog                lazarus            ruben
  651.       alphabet           drought            lee                rules
  652.       ama                duncan             leroy              ruth
  653.       amy                easy               lewis              sal
  654.       analog             eatme              light              saxon
  655.       anchor             edges              lisa               scheme
  656.       andy               erenity
  657.       arrow              elizabeth          maggot             sex
  658.       arthur             ellen              magic              shark
  659.       asshole            emerald            malcolm            sharon
  660.       athena             engine             mark               shit
  661.       atmosphere         engineer           markus             shiva
  662.       bacchus            enterprise         marty              shuttle
  663.       badass             enzyme             marvin             simon
  664.       bailey             euclid             master             simple
  665.       banana             evelyn             maurice            singer
  666.       bandit             extension          merlin             single
  667.       banks              fairway            mets               smile
  668.       bass               felicia            michael            smiles
  669.       batman             fender             michelle           smooch
  670.       beauty             fermat             mike               smother
  671.       beaver             finite             minimum            snatch
  672.       beethoven          flower             minsky             snoopy
  673.       beloved            foolproof          mogul              soap
  674.       benz               football           moose              socrates
  675.       beowulf            format             mozart             spit
  676.       berkeley           forsythe           nancy              spring
  677.       berlin             fourier            napoleon           subway
  678.       beta               fred               network            success
  679.       beverly            friend             newton             summer
  680.       bumbling           george             osiris             tape
  681.       cardinal           gertrude           outlaw             target
  682.       carmen             gibson             oxford             taylor
  683.       carolina           ginger             pacific            telephone
  684.       caroline           gnu                painless           temptation
  685.       castle             golf               pam                tiger
  686.       cat                golfer             paper              toggle
  687.       celtics            gorgeous           password           tomato
  688.       change             graham             pat                toyota
  689.       charles            gryphon            patricia           trivial
  690.       charming           guest              penguin            unhappy
  691.       charon             guitar             pete               unicorn
  692.       chester            hacker             peter              unknown
  693.       cigar              harmony            philip             urchin
  694.       classic            harold             phoenix            utility
  695.       coffee             harvey             pierre             vicky
  696.       coke               heinlein           pizza              virginia
  697.       collins            hello              plover             warren
  698.       comrade            help               polynomial         water
  699.       computer           herbert            praise             weenie
  700.       condo              honey              prelude            whatnot
  701.       condom             horse              prince             whitney
  702.       cookie             imperial           protect            will
  703.       cooper             include            pumpkin            william
  704.       create             ingres             puppet             willie
  705.       creation           innocuous          rabbit             winston
  706.  
  707. I hope this file has been of some help in getting started.  If you're asking
  708. yourself the question 'Why hack?', then you've probably wasted a lot of time
  709. reading this, as you'll never understand.  For those of you who have read this
  710. and found it useful, please send a tax-deductible donation
  711. of $5.00 (or more!) in the name of the Legion of Doom to:
  712.  
  713.                                        The American Cancer Society
  714.                                        90 Park Avenue
  715.                                        New York, NY  10016
  716.  
  717.  
  718. *******************************************************************************
  719.  
  720. References:
  721.  
  722. 1) Introduction to ItaPAC by Blade Runner
  723.    Telecom Security Bulletin 1
  724. 2) The IBM VM/CMS Operating System by Lex Luthor
  725.    The LOD/H Technical Journal 2
  726. 3) Hacking the IRIS Operating System by The Leftist
  727.    The LOD/H Technical Journal 3
  728. 4) Hacking CDC's Cyber by Phrozen Ghost
  729.    Phrack Inc. Newsletter 18
  730. 5) USENET comp.risks digest (various authors, various issues)
  731. 6) USENET unix.wizards forum (various authors)
  732. 7) USENET info-vax forum (various authors)
  733.  
  734. Recommended Reading:
  735.  
  736. 1) Hackers by Steven Levy
  737. 2) Out of the Inner Circle by Bill Landreth
  738. 3) Turing's Man by J. David Bolter
  739. 4) Soul of a New Machine by Tracy Kidder
  740. 5) Neuromancer, Count Zero, Mona Lisa Overdrive, and Burning Chrome, all by
  741.    William Gibson
  742. 6) Reality Hackers Magazine c/o High Frontiers, P.O. Box 40271, Berkeley,
  743.    California, 94704, 415-995-2606
  744. 7) Any of the Phrack Inc. Newsletters & LOD/H Technical Journals you can
  745.    find.
  746.  
  747. Acknowledgements:
  748.    Thanks to my wife for putting up with me.
  749.    Thanks to Lone Wolf for the RSTS & TOPS assistance.
  750.    Thanks to Android Pope for proofreading, suggestions, and beer.
  751.    Thanks to The Urvile/Necron 99 for proofreading & Cyber info.
  752.    Thanks to Eric Bloodaxe for wading through all the trash.
  753.    Thanks to the users of Phoenix Project for their contributions.
  754.    Thanks to Altos Computer Systems, Munich, for the chat system.
  755.    Thanks to the various security personel who were willing to talk to me about
  756.              how they operate.
  757.  
  758. __________________________________________________________________________
  759.  
  760. <[ Above all the most widely used operating system is UNIX.  The following
  761. file describes how it works and the best ways of gaining access to UNIX
  762. systems. ]>
  763.  
  764. __________________________________________________________________________
  765.  
  766.  
  767.  
  768.  
  769.  
  770. Author: Red Knight
  771. ~~~~~~~~~~~~~~~~~~
  772.  
  773.  
  774.                                 ==Phrack Inc.==
  775.  
  776.                       Volume Two, Issue 22, File 5 of 12
  777.  
  778.          /|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\/|\
  779.          \|/                                                      \|/
  780.          /|\           An Indepth Guide In Hacking UNIX           /|\
  781.          \|/                          and                         \|/
  782.          /|\        The Concept Of Basic Networking Utility       /|\
  783.          \|/                                                      \|/
  784.          /|\                     By Red Knight                    /|\
  785.          \|/                                                      \|/
  786.          /|\                     Member of the                    /|\
  787.          \|/         Phreakers/Hackers Underground Network        \|/
  788.          /|\                                                      /|\
  789.          \|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/\|/
  790.  
  791. Brief History On UNIX
  792. ~~~~~~~~~~~~~~~~~~~~~
  793. Its because of Ken Tompson that today we are able to hack Unix.  He used to
  794. work for Bell Labs in the 1960s.  Tompson started out using the MULTICS OS
  795. which was later eliminated and Tompson was left without an operating system to
  796. work with.
  797.  
  798. Tompson had to come up with something real quick. He did some research and and
  799. in 1969 UNIX came out, which was a single user and it did not have many
  800. capabilities.  A combined effort with others enabled him to rewrite the version
  801. in C and add some good features.  This version was released in 1973 and was
  802. made available to the public.  This was the first begining of UNIX in its
  803. presently known form.  The more refined version of UNIX, today know as UNIX
  804. system V developed by Berkley University has unique capabilities.
  805.  
  806. Various types of UNIXes are CPIX, Berkeley Ver 4.1, Berkeley 4.2, FOS, Genix,
  807. HP-UX, IS/I, OSx, PC-IX, PERPOS, Sys3, Ultrix, Zeus, Xenix, UNITY, VENIX, UTS,
  808. Unisys, Unip lus+, UNOS, Idris, QNIX, Coherent, Cromix, System III, System 7,
  809. Sixth edition.
  810.  
  811. The Article Itself
  812. ~~~~~~~~~~~~~~~~~~
  813. I believe that hacking into any system requires knowledge of the operating
  814. system itself.  Basically what I will try to do is make you more familiar with
  815. UNIX operation and its useful commands that will be advantageous to you as a
  816. hacker.  This article contains in depth explainations.  I have used the UNIX
  817. System V to write this article.
  818.  
  819.  
  820. Error Messages:  [ UNIX System V ]
  821. ~~~~~~~~~~~~~~
  822. Login Incorrect - An invalid ID and/or password was entered.  This means
  823.                   nothing.  In UNIX there is no way guessing valid user IDs.
  824.                   You may come across this one when trying to get in.
  825.  
  826. No More Logins  - This happens when the system will not accept anymore logins.
  827.                   The system could be going down.
  828.  
  829. Unknown Id      - This happens if an invalid id is entered using (su) command.
  830.  
  831. Unexpected Eof In File - The file being stripped or the file has been damaged.
  832.  
  833. Your Password Has Expired - This is quite rare although there are situations
  834.                             where it can happen.  Reading the etc/passwd will
  835.                             show you at how many intervals it changes.
  836.  
  837. You May Not Change The Password - The password has not yet aged enough.  The
  838.                                   administrator set the quotas for the users.
  839.  
  840. Unknown Group [Group's Name] - Occurs when chgrp is executed, group does not
  841.                                exist.
  842. Sorry - Indicated that you have typed in an invalid super user password
  843.         (execution of the su).
  844.  
  845. Permission Denied! - Indicated you must be the owner or a super user to change
  846.                      password.
  847.  
  848. Sorry " # Weeks" Since Last Change - This will happen when password ha  s has
  849.                                      not aged enough and you tried to    change
  850.                                      it (password).
  851.  
  852. [Directory Name]:  No Permission - You are trying to remove a directory which
  853.                                    you have no permission to.
  854.  
  855. [File Name] Not Removed - Trying to delete a file owned by another user that
  856.                           you do not have write permission for.
  857.  
  858. [Dirname] Not Removed - Ownership of the dir is not your that your trying to
  859.                         delete.
  860.  
  861. [Dirname] Not Empty - The directory contains files so you must have to delete
  862.                       the files before execcant open [file name] - defined
  863.                       wrong path, file name or you have no read permission.
  864.  
  865. Cp:  [File Name] And [File Name] Are Identical - Self explanatory.
  866.  
  867. Cannot Locate Parent Directory - Occurs when using mv.
  868.  
  869. [File name] Not Found - File which your trying to move does not exist.
  870.  
  871. You Have Mail - Self explanatory.
  872.  
  873.  
  874. Basic Networking Utility Error Messages
  875. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  876. Cu:  Not found         - Networking not installed.
  877. Login Failed           - Invalid id/pw or wrong number specified.
  878. Dial Failed            - The systen never answered due to a wrong number.
  879. UUCP Completely Failed - Did not specify file after -s.
  880. Wrong Time to Call     - You called at the time at a time not specified in the
  881.                          Systems file.
  882. System not in systems  - You called a remote not in the systems file.
  883.  
  884.  
  885. Logon Format
  886. ~~~~~~~~~~~~
  887. The first thing you must do is switch to lower case.  To identifing a UNIX,
  888. this is what you will see;
  889.  
  890. AT&T Unix System V 3.0 (eg of a system identifier)
  891.  
  892. login:
  893.  or
  894. Login:
  895.  
  896. Any of these is a UNIX.  Here is where you will have to guess at a user valid
  897. id.  Here are some that I have come across; glr, glt, radgo, rml, chester, cat,
  898. lom, cora, hlto, hwill, edcasey, and also some containing numbers; smith1,
  899. mitu6, or special characters in it; bremer$, jfox.  Login names have to be 3
  900. to 8 chracters in length, lowercase, and must start with a letter.  In some
  901. XENIX systems one may login as "guest"
  902.  
  903. User Level Accounts (Lower Case)
  904. ~~~~~~~~~~~~~~~~~~~
  905. In Unix there are what is called.  These accounts can be used at the "login:"
  906. prompt.  Here is a list:
  907.  
  908. sys      bin     trouble      daemon     uucp     nuucp      rje     lp     adm
  909.  
  910.  
  911. Super-User Accounts
  912. ~~~~~~~~~~~~~~~~~~~
  913. There is also a super-user login which make UNIX worth hacking.  The accounts
  914. are used for a specific job.  In large systems these logins are assingned to
  915. users who have a responsibilty to maintain subsystems.
  916.  
  917. They are as follows (all lower case);
  918.  
  919. root       -  This is a must the system comes configured with it. It has no
  920.               restriction.  It has power over every other account.
  921. unmountsys -  Unmounts files
  922. setup      -  System set up
  923. makefsys   -  Makes a new file
  924. sysadm     -  Allows useful S.A commands (doesn't need root login)
  925. powerdown  -  Powering system down
  926. mountfsys  -  Mounts files
  927. checkfsys  -  Checks file
  928.  
  929. These accounts will definitly have passwords assigned to them.  These accounts
  930. are also commands used by the system administrator.  After the login prompt you
  931. will receive a password prompt:
  932.  
  933. password:
  934.   or
  935. Password:
  936.  
  937. Enter the password (it will not echo).  The password rule is as follows; Each
  938. password has to contain at least 6 characters and maximum of 8 characters.  Two
  939. of which are to be alphabetic letters and at least one being a number or a
  940. special character.  The alphabetic digits could be in upper case or lower
  941. case.  Here are some of the passwords that I have seen; Ansuya1, PLAT00N6,
  942. uFo/78, ShAsHi.., Div417co.
  943.  
  944. The passwords for the super user accounts will be difficult to hack try the
  945. accounts interchangebly; login:sysadm password:makefsys, or rje1, sysop,
  946. sysop1, bin4, or they might contain letters, numbers, or special chracters in
  947. them.  It could be anything.  The user passwords are changed by an aging
  948. proccess at successive intervals.  The users are forced to changed it.  The
  949. super-user will pick a password that will not need changing for a long period
  950. of time.
  951.  
  952.  
  953. You Have Made It!
  954. ~~~~~~~~~~~~~~~~~
  955. The hard part is over and hopefully you have hacked a super-user account.
  956. Remember Control-d stops a process and also logs you off.  The next thing you
  957. will probably see is the system news.  Ex;
  958.  
  959. login:john
  960. password:hacker1
  961.  
  962. System news
  963.  
  964. There will be no networking offered to the users till
  965. August 15, due to hardware problems.
  966. [Just An Example]
  967.  
  968. $
  969.  
  970. $ (this is the Unix prompt) - Waiting for a command to be entered.
  971.  - Means your logged in as root (Very Good).
  972.  
  973. A Word About The XENIX System III (Run On The Tandy 6000)
  974. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  975. The largest weakness in the XENIX System III occurs after the installation
  976. of the Profile-16 or more commonly know as the Filepro-16.  I have seen the
  977. Filepro-16 installed in many systems.  The installation process creates an
  978. entry in the password file for a user named \fBprofile\fR, an account that who
  979. owns and administors the database.  The great thing about it is that when the
  980. account is created, no password is assigned to it.  The database contains
  981. executable to maintain it.  The database creation programs perform a
  982. \fBsetuid\fR to boot up the \fBoot\fR  thereby giving a person the whole C
  983. Shell to gain Super User privilege same as root.  Intresting huh!
  984.  
  985. [* Note:  First the article will inform you of how the Unix is made up.]
  986.  
  987.  
  988. The Unix is made if three components - The Shell, The Kernal, File System.
  989.  
  990. The Kernal
  991. ~~~~~~~~~~
  992. You could say that the kernal is the heart of the Unix operating system. The
  993. kernal is a low level language lower than the shell which maintains processes.
  994. The kernal handles memory usage, maintains file system the sofware and hardware
  995. devices.
  996.  
  997. The Shell
  998. ~~~~~~~~~
  999. The shell a higher level language.  The shell had two important uses, to act as
  1000. command interpreture for example using commands like cat or who.  The shell is
  1001. at work figuring out whether you have entered a command correctly or not.  The
  1002. second most important reason for the shell is its ability to be used as
  1003. programing language.  Suppose your performing some tasks repeatedly over and
  1004. over again, you can program the shell to do this for you.
  1005.  
  1006.             (Note:  This article will not cover shell programming.)
  1007.             (       Instead B.N.N will be covered.                )
  1008.  
  1009.  
  1010. The File System
  1011. ~~~~~~~~~~~~~~~
  1012. The file system in Unix is divided into 3 catagories:  Directories, ordinary
  1013. files and special files (d,-).
  1014.  
  1015. Basic Stucture:
  1016.  
  1017. (/)-this is abreviation for the root dirctory.
  1018.  
  1019.   root level                      root
  1020.                                   (/)                                  system
  1021. -------------------------------------|---------------------------------- level
  1022. |      |        |         |                  |        |       |        |
  1023. /unix  /etc     /dev      /tmp               /lib     /usr    /usr2    /bin
  1024.        |                                         _____|_____
  1025. login passwd                                     |    |    |
  1026. level                                            /john  /cathy
  1027.                               ________________________|_______________
  1028.                              |        |     |      |        |        |
  1029.                          .profile   /mail  /pers  /games   /bin     /michelle
  1030. *.profile - in case you                    |    __|______  |      __|_______
  1031. wish to change your environment, but    capital |        | data   | |       |
  1032. after you log off, it sets it to              othello  starwars letter letter1
  1033. default.
  1034.  
  1035. /unix - This is the kernal.
  1036. /etc  - Contains system administrators files,Most are not available to the
  1037.         regular user (this dirrctory contains the /passwd file).
  1038.  
  1039.     Here are some files under /etc directory:
  1040.     /etc/passwd
  1041.     /etc/utmp
  1042.     /etc/adm/sulog
  1043.     /etc/motd
  1044.     /etc/group
  1045.     /etc/conf
  1046.     /etc/profile
  1047.  
  1048. /dev - contains files for physical devices such as printer and the disk drives
  1049. /tmp - temporary file directory
  1050. /lib - dirctory that contains programs for high level languages
  1051. /usr - this directory contains dirctories for each user on the system
  1052. /bin - contain executable programs (commands)
  1053.  
  1054. The root also contains:
  1055. /bck - used to mount a back up file system.
  1056. /install - Used to install and remove utilities
  1057. /lost+found - This is where all the removed files go, this dir is used by fsck
  1058. /save -A utility used to save data
  1059. /mnt - Used for temporary mounting
  1060.  
  1061. **Now the fun part scouting around**
  1062.  
  1063. Local Commands (Explained In Details)
  1064. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1065. At the unix prompt type the pwd command.  It will show you the current working
  1066. directory you are in.
  1067.  
  1068. $ pwd
  1069. $ /usr/admin - assuming that you have hacked into a super user account
  1070.                check fsys
  1071. $
  1072.  
  1073. This gives you the full login directory.  The / before tell you the location of
  1074. the root directory.
  1075.  
  1076. Or
  1077.  
  1078. (REFER TO THE DIAGRAM ABOVE)
  1079. $ pwd
  1080. $ /usr/john
  1081. $
  1082. Assuming you have hacked into John's account.
  1083.  
  1084. Lets say you wanted to move down to the Michelle directory that contains
  1085. letters.  You would type in;
  1086.  
  1087. $ cd michelle or cd usr/john/michelle
  1088. $ pwd
  1089. $ /usr/john/michelle
  1090. $
  1091.  
  1092. Going back one directory up type in:
  1093. $ cd ..
  1094. or going to your parent directory just type in "cd"
  1095.  
  1096. Listing file directories assuming you have just logged in:
  1097. $ ls /usr/john
  1098. mail
  1099. pers
  1100. games
  1101. bin
  1102. michelle
  1103. This wont give you the .profile file.  To view it type
  1104. $ cd
  1105. $ ls -a
  1106. :
  1107. :
  1108. .profile
  1109.  
  1110. To list file names in Michelle's directory type in:
  1111. $ ls michelle (that if your in the johns directory)
  1112. $ ls /usr/john/michelle(parent dir)
  1113.  
  1114. ls -l
  1115. ~~~~~
  1116. The ls -l is an an important command in unix.This command displays the whole
  1117. directory in long format :Run this in parent directory.
  1118. $ ls -l
  1119. total 60
  1120. -rwxr-x---    5 john      bluebox    10 april 9  7:04  mail
  1121. drwx------    7 john      bluebox    30 april 2  4:09  pers
  1122.      :            :         :         :     :      :    :
  1123.      :            :         :         :     :      :    :
  1124. -rwxr-x---     6 cathy    bluebox    13 april 1  13:00 partys
  1125.      :            :         :         :     :      :    :
  1126. $
  1127.  
  1128. The total 60 tells one the ammount of disk space used in a directory.  The
  1129. -rwxr-x--- is read in triples of 3.  The first chracter eg (-, d, b, c) means
  1130. as follows:  - is an ordinary file, d is a directory, b is block file, c is a
  1131. character file.
  1132.  
  1133. The r stands for read permission, w is write permission, x is execute. The
  1134. first column is read in 3 triples as stated above.  The first group of 3 (in
  1135. -rwxr-x---) after the "-" specifies the permission for the owner of the file,
  1136. the second triple are for the groups (the fourth column) and the last triple
  1137. are the permissions for all other users.  Therefore, the -rwxr-x--- is read as
  1138. follows.
  1139.  
  1140. The owner, John, has permission to read, write, and execute anything in the bin
  1141. directory but the group has no write permission to it and the rest of the users
  1142. have no permission at all.  The format of one of the lines in the above output
  1143. is as follows:
  1144.  
  1145. file type-permissions, links, user's name, group, bytes taken, date, time when
  1146. last renued, directory, or file name.
  1147.  
  1148.                *** You will be able to read, execute Cathy's ***
  1149.                *** file named partly due to the same group.  ***
  1150.  
  1151. Chmod
  1152. ~~~~~
  1153. The chmod command changes permission of a directory or a file.  Format is
  1154. chmod who+, -, =r , w, x
  1155.  
  1156. The who is substituted by u-user, g-group, o-other users, a-all.
  1157. The + means add permission, - means remove permission, = - assign.
  1158. Example:  If you wanted all other users to read the file name mail, type:
  1159.  
  1160. $ chmod o+r mail
  1161.  
  1162. Cat
  1163. ~~~
  1164. Now suppose you wanted to read the file letter.  There are two ways to doing
  1165. this.  First go to the michelle directory then type in:
  1166.  
  1167. $ cat letter
  1168. line one ...\
  1169. line two ... }the output of letter
  1170. line three../
  1171. $
  1172.    or
  1173. If you are in the parent directory type in:
  1174. $ cat /usr/john/michelle/letter
  1175. and you will have the same output.
  1176.  
  1177. Some cat options are  -s, -u, -v, -e, -t
  1178.  
  1179. Special Chracters in Unix
  1180. ~~~~~~~~~~~~~~~~~~~~~~~~~
  1181. *      - Matches any number of single characters eg. ls john* will list all
  1182.          files that begin with john
  1183. [...]  - Matchs any one of the chracter in the [ ]
  1184. ?      - Matches any single chracter
  1185. &      - Runs a process in the backgroung leaving your terminal free
  1186. $      - Values used for variables also $n - null argument
  1187. >      - Redirectes output
  1188. <      - Redirects input to come from a file
  1189. >>     - Redirects command to be added to the end of a file
  1190. |      - Pipe output (eg:who|wc-l tells us how many users are online)
  1191. "..."  - Turn of meaning of special chracters excluding $,`
  1192. `...`  - Allows command output in to be used in a command line
  1193. '...'  - Turns of special meaning of all chracters
  1194.  
  1195. Continuation Of Local Commands
  1196. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1197. man [command] or [c/r] -will give you a list of commands explainations
  1198. help - available on some UNIX systems
  1199. mkdir [dir name(s)] - makes a directory
  1200. rmdir [dir name(s)] - removes directory.You wont be able to remove the
  1201.                       directory if it contains files in them
  1202. rm [file name(s)] - removes files. rm * will erase all files in the current
  1203.                     dir.  Be carefull you!  Some options are:
  1204.                     [-f unconditional removal] [-i Prompts user for y or n]
  1205.  
  1206. ps [-a all processes except group leaders] [-e all processes] [-f the whole
  1207.    list]  - This command reports processes you are running eg:
  1208.  
  1209.    $ps
  1210.    PID   TTY  TIME   COMMAND
  1211.    200   tty09 14:20  ps
  1212.  
  1213.    The systems reports (PID - process idenetification number which is a number
  1214.    from 1-30,000 assigned to UNIX processes)
  1215.    It also reports the TTY,TIME and the COMMAND being executed at the time.
  1216.    To stop a process enter :
  1217.  
  1218.    $kill [PID] (this case its 200)
  1219.    200 terminated
  1220.    $
  1221.  
  1222. grep [argument] - searches for an file that contains the argument
  1223. mv [file names(s)] [ dir name ] - renames a file or moves it to another
  1224.                                   directory
  1225. cp [file name] [file name] - makes a copy of a file
  1226. write [login name ] - to write to other logged in users.  Sort of a chat
  1227. mesg [-n] [-y] - doesn't allow others to send you messages using the write
  1228.                  command.  Wall used by system adm overrides it.
  1229. $ [file name] - to execute any file
  1230. wc [file name] - Counts words, characters,lines in a file
  1231. stty [modes] - Set terminal I/O for the current devices
  1232. sort [filename] - Sorts and merges files many options
  1233. spell [file name] > [file name] - The second file is where the misspelt words
  1234.                                   are entered
  1235. date [+%m%d%y*] [+%H%%M%S] - Displays date acoording to options
  1236. at [-r] [-l] [job] - Does a specified job at a specified time.  The -r Removes
  1237.                      all previously scheduled jobs.The -l reports the job  and
  1238.                      status of all jobs scheduled
  1239. write [login] [tty] - Sends message to the login name.  Chat!
  1240.  
  1241.  
  1242. Su [login name]
  1243. ~~~~~~~~~~~~~~~
  1244. The su command allows one to switch user to a super user to a user.  Very
  1245. important could be used to switch to super user accounts.
  1246. Usage:
  1247.  
  1248. $ su sysadm
  1249. password:
  1250.  
  1251. This su command will be monitored in /usr/adm/sulog and this file of all files
  1252. is carefully monitered by the system administrator.Suppose you hacked in john's
  1253. account and then switched to the sysadm account (ABOVE) your /usr/adm/su log
  1254. entry would look like:
  1255.  
  1256. SU  04/19/88  21:00 + tty 12 john-sysadm
  1257.  
  1258. Therfore the S.A(system administrator) would know that john swithed to sysadm
  1259. account on 4/19/88 at 21:00 hours
  1260.  
  1261.  
  1262. Searching For Valid Login Names:
  1263. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1264. Type in-
  1265. $ who  ( command informs the user of other users on the system)
  1266. cathy  tty1  april 19  2:30
  1267. john   tty2  april 19  2:19
  1268. dipal  tty3  april 19  2:31
  1269. :
  1270. :
  1271. tty is the user's terminal, date, time each logged on.  mary, dr.m are valid
  1272. logins.
  1273.  
  1274. Files worth concatenating(cat)
  1275.  
  1276.  
  1277. /etc/passwd file
  1278. ~~~~~~~~~~~~~~~~
  1279. The etc/passwd is a vital file to cat.  For it contains login names of all
  1280. users including super user accounts and there passwords.  In the newer SVR3
  1281. releases they are tighting their security by moving the encrypted passwords
  1282. from /etc/passwd to /etc/shadow making it only readable by root.
  1283. This is optional of course.
  1284.  
  1285. $ cat /etc/passwd
  1286. root:D943/sys34:0:1:0000:/:
  1287. sysadm:k54doPerate:0:0:administration:usr/admin:/bin/rsh
  1288. checkfsys:Locked;:0:0:check file system:/usr/admin:/bin/rsh
  1289. :
  1290. other super user accs.
  1291. :
  1292. john:hacker1:34:3:john scezerend:/usr/john:
  1293. :
  1294. other users
  1295. :
  1296. $
  1297.  
  1298. If you have reached this far capture this file as soon as possible.  This is a
  1299. typical output etc/passwd file.  The entries are seperated by a ":".  There
  1300. made be up to 7 fields in each line.
  1301. Eg.sysadm account.
  1302.  
  1303. The first is the login name in this case sysadm.The second field contains the
  1304. password.  The third field contains the user id."0 is the root."  Then comes
  1305. the group id then the account which contains the user full name etc.  The sixth
  1306. field is the login directory defines the full path name of the the paticular
  1307. account and the last is the program to be executed.  Now one can switch to
  1308. other super user account using su command descibed above.  The password entry
  1309. in the field of the checkfsys account in the above example is "Locked;". This
  1310. doesn't mean thats its a password but the account checkfsys cannot be accessed
  1311. remotely.  The ";" acts as an unused encryption character.  A space is also
  1312. used for the same purpose.  You will find this in many UNIX systems that are
  1313. small systems where the system administrator handles all maintaince.
  1314.  
  1315. If the shawdowing is active the /etc/passwd would look like this:
  1316.  
  1317. root:x:0:1:0000:/:
  1318. sysadm:x:0:0:administration:/usr/admin:/bin/rsh
  1319.  
  1320. The password filed is substituted by "x".
  1321.  
  1322. The /etc/shawdow file only readable by root will look similar to this:
  1323.  
  1324. root:D943/sys34:5288::
  1325. :
  1326. super user accounts
  1327. :
  1328. Cathy:masai1:5055:7:120
  1329. :
  1330. all other users
  1331. :
  1332.  
  1333. The first field contains users id:  The second contains the password (The pw
  1334. will be NONE if logining in remotely is deactivated):  The third contains a
  1335. code of when the password was last changed:  The fourth and the fifth contains
  1336. the minimum and the maximum numbers of days for pw changes (its rare that you
  1337. will find this in the super user logins due to there hard to guess passwords)
  1338.  
  1339.  
  1340. /etc/options
  1341. ~~~~~~~~~~~~
  1342. The etc/options file informs one the utilities available in the system.
  1343. -rwxr-xr-x   1 root  sys   40 april  1:00  Basic Networking utility
  1344.  
  1345.  
  1346. /etc/group
  1347. ~~~~~~~~~~
  1348. The file has each group on the system.  Each line will have 4 entries separated
  1349. by a ":".   Example of concatenated /etc/group:
  1350.  
  1351. root::0:root
  1352. adm::2:adm,root
  1353. bluebox::70:
  1354.  
  1355. Group name:password:group id:login names
  1356. ** It very unlikely that groups will have passwords assigned to them **
  1357. The id "0" is assigned to /
  1358.  
  1359.  
  1360. Sending And Recieving Messages
  1361. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1362. Two programs are used to manage this.  They are mail & mailx.  The difference
  1363. between them is that mailx is more fancier thereby giving you many choices like
  1364. replying message, using editors, etc.
  1365.  
  1366.  
  1367. Sending
  1368. ~~~~~~~
  1369. The basic format for using this command is:
  1370.  
  1371. $mail [login(s)]
  1372. (now one would enter the text after finishing enter "." a period on the next
  1373. blank line)
  1374. $
  1375.  
  1376. This command is also used to send mail to remote systems.  Suppose you wanted
  1377. to send mail to john on a remote called ATT01 you would type in:
  1378.  
  1379. $mail ATT01!john
  1380.  
  1381. Mail can be sent to several users, just by entering more login name after
  1382. issuing the mail command
  1383.  
  1384. Using mailx is the same format:(This I'll describe very briefly) $mailx john
  1385. subject:(this lets you enter the subject)
  1386. (line 1)
  1387. (line 2)
  1388. (After you finish enter (~.) not the brackets of course, more commands are
  1389. available like ~p, ~r, ~v, ~m, ~h, ~b, etc.).
  1390.  
  1391.  
  1392. Receiving
  1393. ~~~~~~~~~
  1394. After you log on to the system you will the account may have mail waiting.
  1395. You will be notified "you have mail."
  1396. To read this enter:
  1397. $mail
  1398. (line 1)
  1399. (line 2)
  1400. (line 3)
  1401. ?
  1402. $
  1403.  
  1404. After the message you will be prompted with a question mark.  Here you have a
  1405. choice to delete it by entering d, saving it to view it later s, or just press
  1406. enter to view the next message.
  1407.  
  1408.               (DON'T BE A SAVANT AND DELETE THE POOR GUY'S MAIL)
  1409.  
  1410.  
  1411. Super User Commands
  1412. ~~~~~~~~~~~~~~~~~~~
  1413. $sysadm adduser - will take you through a routine to add a user (may not last
  1414.                   long)
  1415.  
  1416. Enter this:
  1417.  
  1418. $ sysadm adduser
  1419. password:
  1420. (this is what you will see)
  1421.  /--------------------------------------------------------------------------\
  1422.   Process running succommmand `adduser`
  1423.   USER MANAGMENT
  1424.  
  1425.   Anytime you want to quit, type "q".
  1426.   If you are not sure how to answer any prompt, type "?" for help
  1427.  
  1428.   If a default appears in the question, press <RETURN> for the default.
  1429.  
  1430.   Enter users full name [?,q]: (enter the name you want)
  1431.   Enter users login ID [?,q]:(the id you want to use)
  1432.   Enter users ID number (default 50000) [?,q) [?,q]:( press return )
  1433.   Enter group ID number or group name:(any name from /etc/group)
  1434.   Enter users login home directory:(enter /usr/name)
  1435.  
  1436.   This is the information for the new login:
  1437.   Users name: (name)
  1438.   login ID:(id)
  1439.   users ID:50000
  1440.   group ID or name:
  1441.   home directory:/usr/name
  1442.   Do you want to install, edit, skip [i, e, s, q]? (enter your choice if "i"
  1443.   then)
  1444.  Login installed
  1445.  Do you want to give the user a password?[y,n] (its better to enter one)
  1446.  New password:
  1447.  Re-enter password:
  1448.  
  1449.  Do you want to add another login?
  1450. \----------------------------------------------------------------------------/
  1451.  
  1452. This is the proccess to add a user.  Since you hacked into a super user account
  1453. you can make a super user account by doing the following by entering 0 as an
  1454. user and a group ID and enter the home directory as /usr/admin.  This will give
  1455. you as much access as the account sysadm.
  1456.  
  1457. **Caution** - Do not use login names like Hacker, Cracker,Phreak etc.  This is
  1458. a total give away.
  1459.  
  1460. The process of adding a user wont last very long the S.A will know when he
  1461. checks out the /etc/passwd file
  1462.  
  1463. $sysadm moduser - This utility allows one to modify users.  DO NOT ABUSE!!
  1464. !
  1465.  
  1466. Password:
  1467.  
  1468. This is what you'll see:
  1469.  
  1470. /----------------------------------------------------------------------------\
  1471. MODIFYING USER'S LOGIN
  1472.  
  1473. 1)chgloginid  (This is to change the login ID)
  1474. 2)chgpassword (Changing password)
  1475. 3)chgshell (Changing directory DEFAULT = /bin/sh)
  1476.  
  1477. ENTER A NUMBER,NAME,INITIAL PART OF OF NAME,OR ? OR <NUMBER>? FOR HELP, Q TO
  1478. QUIT ?
  1479. \----------------------------------------------------------------------------/
  1480.  
  1481. Try every one of them out.Do not change someones password.It creates a havoc.
  1482. If you do decide to change it.Please write the original one down somewhere
  1483. and change back.Try not to leave to many traces after you had your fun.  In
  1484. choice number 1 you will be asked for the login and then the new one.  In
  1485. choice number 2 you will asked for the login and then supplied by it correct
  1486. password and enter a new one.  In choice 3 this is used to a pchange the login
  1487. shell ** Use full **  The above utilites can be used separatly for eg (To
  1488. change a password one could enter: $sysadm chgpasswd not chapassword, The rest
  1489. are same)
  1490.  
  1491. $sysadm deluser - This is an obviously to delete a user password:
  1492.  
  1493. This will be the screen output:
  1494. /---------------------------------------------------------------------------\
  1495. Running subcommand 'deluser' from menu 'usermgmt'
  1496. USER MANAGEMENT
  1497.  
  1498. This fuction completely removes the user,their mail file,home directory and all
  1499. files below their home directory from the machine.
  1500.  
  1501. Enter login ID you wish to remove[q]:      (eg.cathy)
  1502. 'cathy' belongs to 'Cathy Franklin'
  1503. whose home directory is /usr/cathy
  1504. Do you want to remove this login ID 'cathy' ? [y,n,?,q] :
  1505.  
  1506. /usr/cathy and all files under it have been deleted.
  1507.  
  1508. Enter login ID you wish to remove [q]:
  1509. \--------------------------------------------------------------------------/
  1510. This command deletes everthing owned by the user.Again this would be stupid to
  1511. use.
  1512.  
  1513.  
  1514. Other Super User Commands
  1515. ~~~~~~~~~~~~~~~~~~~~~~~~~
  1516. wall [text] control-d  - to send an anouncement to users logged in (will
  1517.                          override mesg -n command).  Execute only from /
  1518. /etc/newgrp - is used to become a member of a group
  1519.  
  1520. sysadm [program name]
  1521.         delgroup - delets groups
  1522.         diskuse - Shows free space etc.
  1523.         whoson - self explanatory
  1524.         lsgroup - Lists group
  1525.         mklineset -hunts various sequences
  1526.  
  1527.  
  1528.                         Basic Networking Unility (BNU)
  1529.                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1530.  
  1531. The BNU is a unique feature in UNIX.Some systems may not have this installed.
  1532. What BNU does is allow other remote UNIXes communicate with yours without
  1533. logging off the present one.BNU also allowes file transfer between computers.
  1534. Most UNIX systems V will have this feature installed.
  1535.  
  1536. The user program like cu,uux etc are located in the /usr/bin directory
  1537.  
  1538. Basic Networking Files
  1539. ~~~~~~~~~~~~~~~~~~~~~~
  1540. /usr/lib/uucp/[file name]
  1541.  [file name]
  1542.  systems - cu command to establishes link.Contains info on remote computers
  1543.            name, time it can be reached, login Id, password, telephone numbers
  1544.  devices - inter connected with systems files (Automatic call unit same in two
  1545.            entries) also contains baud rate, port tty1, etc.
  1546.  
  1547.  dialers - where asscii converation must be made before file tranfers etc.
  1548.  dialcodes - contains abreiviations for phone numbers that can be used in
  1549.              systems file
  1550.  
  1551. other files are sysfiles, permissions, poll, devconfig
  1552.  
  1553. Logining On To Remote And Sending+Receiving Files
  1554. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1555.  cu - This command allows one to log on to the local as well as the remote Unix
  1556.       (or a non unix)without haveing to hang up so you can transfer files.
  1557.       Usage:[options]
  1558.  
  1559.   $ cu [-s baud rate][-o odd parity][-e even parity][-l name of comm line]
  1560.        telephone number | systemname
  1561.  
  1562.   To view system names that you can communicate with use the 'unname' command:
  1563.   Eg. of output of names:
  1564.  
  1565.   ATT01
  1566.   ATT02
  1567.   ATT03
  1568.   ATT04
  1569.  
  1570.  
  1571. $ cu -s300 3=9872344 (9872344 is the tel)
  1572.  connected
  1573.  login:
  1574.  password:
  1575.  
  1576. Local Strings
  1577. ~~~~~~~~~~~~~
  1578. <~.> - will log you off the remote terminal, but not the local
  1579. <control-d> - puts you back on the remote unix local (the directory which you
  1580.               are in)
  1581. "%put [file name] - reverse of above
  1582.  
  1583. Ct
  1584. ~~
  1585. ct allows local to connect to remote.Initiates a getty on a remote terminal.
  1586. Usefull when using a remote terminal.BNU has call back feature that allows the
  1587. user on the remote who can execute a call back meaning the local can call the
  1588. remote.[   ] are options
  1589.  
  1590. $ ct [-h prevent automatic hang up][-s bps rate][-wt set a time to call back
  1591.      abbrieviated t mins] telephone number
  1592.  
  1593. Uux
  1594. ~~~
  1595. To execute commands on a remote (unix to unix)
  1596. usage:[  ] are options
  1597.  
  1598. $ uux [- use standard output][-n prevent mail notification][-p also use
  1599.       standard output] command-string
  1600.  
  1601. UUCP
  1602. ~~~~
  1603. UUCP copies files from ones computer to the home directory of a user in remote
  1604. system.  This also works when copying files from one directory to another in
  1605. the remote.  The remote user will be notified by mail.  This command becomes
  1606. use full when copying files from a remote to your local system.  The UUCP
  1607. requires the uucico daemon will call up the remote and will perform file login
  1608. sequence, file transfer, and notify the user by mail.  Daemons are programs
  1609. runining in the background.  The 3 daemons in a Unix are uucico, uusched,
  1610. uuxqt.
  1611.  
  1612. Daemons Explained:  [nows a good time to explain the 3 daemons]
  1613. ~~~~~~~~~~~~~~~~~
  1614. Uuxqt - Remote execution.  This daemon is executed by uudemon.hour started by
  1615.         cron.UUXQT searchs in the spool directory for executable file named
  1616.         X.file sent from the remote system.  When it finds a file X .file where
  1617.         it obtains process which are to be executed.  The next step is to find
  1618.         weather the processes are available at the time.The if available it
  1619.         checks permission and if everthing is o.k it proceeds the background
  1620.         proccess.
  1621.  
  1622. Uucico - This Daemon is very immportant for it is responsible in establishing
  1623.          a connection to the remote also checks permission, performs login
  1624.          procedures,transfers + executes files and also notifies the user by
  1625.          mail.  This daemon is called upon by uucp,uuto,uux commands.
  1626.  
  1627. Uusched - This is executed by the shell script called uudemon.hour.  This
  1628.           daemons acts as a randomizer before the UUCICO daemon is called.
  1629.  
  1630.  
  1631. Usage:
  1632.  
  1633. $ uucp [options] [first full path name!] file [destination path!] file example:
  1634.  
  1635. $ uucp -m -s bbss hackers unix2!/usr/todd/hackers
  1636.  
  1637. What this would do is send the file hackers from your computer to the remotes
  1638. /usr/todd/hackers making hackers of course as file.  Todd would mail that a
  1639. file has been sent to him.  The Unix2 is the name of the remote.  Options for
  1640. UUCP:  (Don't forget to type in remotes name Unix2 in case)
  1641. -c  dont copy files to spool directory
  1642. -C  copy to spool
  1643. -s[file name] - this file will contain the file status(above is bbss)
  1644. -r  Dont start the comm program(uucico) yet
  1645. -j  print job number(for above eg.unix2e9o3)
  1646. -m  send mail when file file is complete
  1647.  
  1648. Now suppose you wanted to receive file called kenya which is in the
  1649. usr/ dan/usa to your home directory /usr/john assuming that the local systems
  1650. name is ATT01 and you are currently working in /usr/dan/usa,you would type in:
  1651.  
  1652. $uucp kenya ATT01!/usr/john/kenya
  1653.  
  1654. Uuto
  1655. ~~~~
  1656. The uuto command allows one to send file to remote user and can also be used to
  1657. send files locally.
  1658.  
  1659. Usage:
  1660.  
  1661. $ uuto [file name] [system!login name]( omit systen name if local)
  1662.  
  1663.  
  1664. Conclusion
  1665. ~~~~~~~~~~
  1666. Theres always more one can say about the UNIX, but its time to stop.  I hope
  1667. you have enjoyed the article.  I apologize for the length.  I hope I made the
  1668. UNIX operating system more familiar.  The contents of the article are all
  1669. accurate to my knowledge.  Hacking into any system is illegal so try to use
  1670. remote dial-ups to the job.  Remember do not abuse any systems you hack into
  1671. for a true hacker doesn't like to wreck, but to learn.
  1672.  
  1673.    Watch for my new article on using PANAMAC airline computers coming soon.
  1674.  
  1675.                                   Red Knight
  1676.                                     P/HUN!
  1677.                                   <<T.S.A.N>>
  1678.  
  1679.  
  1680.  
  1681.