home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / internet / ftp.doc < prev    next >
Encoding:
INI File  |  2003-06-11  |  7.8 KB  |  165 lines

  1. [Date of Last Change: 3/26/89 Release 1.2]
  2.  
  3. [This file is available via FTP from swan.ulowell.edu (129.62.224.1), file
  4. ibmpc/General/ftp.man -B]
  5.  
  6.             GETTING BINARIES VIA FTP
  7.  
  8. Entire contents Copyright (c) 1989 by Brian O'Neill.  This manual was
  9. created to aid people in the usage of binary postings on UseNet.
  10. Permission to copy this file is granted, so long as credit is given to
  11. those who helped.  A list of those people appear at the end of this
  12. posting.
  13.  
  14.     FTP stands for File Transfer Protocol.  It allows a person to transfer
  15. files between two systems, generally connect over Ethernet networks or
  16. long-haul networks, such as the Internet.
  17.  
  18.     If your hosts system has FTP and is connected to the Internet, you
  19. can access very large amounts of archives available on a number of
  20. systems, such as Simtel20 or uunet.uu.net.  This is a simplified use
  21. manual, and will use two examples, one a TOPS-20 system
  22. (wsmr-simtel20.army.mil), and one Unix system (swan.ulowell.edu, my
  23. local system).
  24.  
  25.     The simplest way to initiate FTP would be to give the command 'ftp
  26. <system-name>', where <system-name> is the remote system you are
  27. connecting to, either a name (wsmr-simtel20.army.mil, if you have an
  28. entry in /etc/hosts or are accessing a Domain-name Server) or the InterNet
  29. address (26.2.0.74, for Simtel20).  After a short wait, you will be prompted 
  30. for your username.  If you do not have an account on the remote system, some
  31. systems allow you to use 'anonymous'.  This gives you a restricted
  32. access path.
  33.  
  34.     You would then be prompted for a password.  Some systems will tell
  35. you to send your real identity as the password.  What you type doesn't
  36. matter, but it is suggested to give your mail address.  Other systems
  37. need a password of 'guest', or something similar.
  38.  
  39.     After that, you should receive the FTP prompt (usually ftp>), and
  40. now have access.  You can get a directory of files be giving a 'dir'
  41. command, or if the remote system is Unix-based, 'ls -l' will give the
  42. familiar output.  On Simtel20, there is a file available in the
  43. default anonymous ftp directory that explains what Simtel20 is, and
  44. where files are located.  The name is 'SIMTEL-ARCHIVES.INFO.nn, where
  45. ".nn" is a file generation number.  You don't need to specify the file
  46. generation number when requesting the file.  In fact, it's better not
  47. to because you will always get the latest generation that way.
  48.  
  49.     Unix systems will all have the familiar directory structure, and
  50. moving around is done with the familiar 'cd' or 'cwd' command.
  51. TOPS-20 systems have a different structure, but movement is still
  52. accomplished with the 'cd' command.
  53.  
  54.     I will use Simtel20 as the first example. To start, give the
  55. command 'ftp wsmr-simtel20.army.mil' from your shell prompt, or 'open
  56. wsmr-simtel20.army,mil' from the 'ftp>' prompt.  If this host is not
  57. in your /etc/hosts file or you do not have access to a Domain-name Server,
  58. use '26.2.0.74' in it's place.  After a few seconds, you'll be prompted 
  59. for your username.  Type 'anonymous', and when prompted for password, 
  60. give your e-mail address (more as a courtesy than anything else), or if 
  61. you prefer, 'guest'.  You should then shortly get back the 'ftp>' prompt.  
  62. If you receive an error message stating that there are too many anonymous 
  63. logins, wait a few minutes and try again. Simtel20 has limited access,
  64. especially during normal business hours.
  65.  
  66.     Now, say you want to see what is stored for MS-DOS programs.
  67. Simtel20 is a DEC System-20 running the TOPS-20 operating system.  The
  68. directory structure is 'DISK:<DIRECTORY.SUBDIRECTORY>'.  For MS-DOS
  69. programs, the main directory is 'PD1:<MSDOS>'.  In here there is a
  70. file called 'MSDOS.CRCLST', which is updated almost daily.  It
  71. contains a list of all files within the MS-DOS subdirectories, along
  72. with file size and CRC value.
  73.  
  74.     To get this list, first switch to that directory by saying 'cd
  75. pd1:<msdos>' (TOPS-20 is not case sensitive).  If you are prompted for
  76. another password just ignore the request.  When you get the 'ftp>'
  77. prompt back, you can then say 'get msdos.crclst'.  This will initiate
  78. the transfer, and after a few minutes it will be completed.  The
  79. beauty of Unix is that while you are transfering something big, you
  80. can put it in the background and do something else.
  81.  
  82.     Say you wanted to get ProComm Plus. According to the list, it is
  83. in PD1:<MSDOS.PROCOMM>.  So, you can enter 'cd pd1:<msdos.procomm>'.
  84. A 'dir' will show all the files in that directory.  (You may wish not
  85. to use too many 'dir' commands, as they are sometimes fairly slow).
  86.  
  87.     Now, you want the file 'pcplustd.arc'.  First, you must tell your
  88. host what kind of file it is.  On most Unix systems, 'binary' or 'set
  89. type binary' or 'set type I' will work.  However, as Simtel20 runs a
  90. different OS that has different word sizes (36 bits) you must specify
  91. 'tenex' or 'type L 8' to transfer properly.  You can then issue a 'get
  92. pcplustd.arc' command, and after a short while, you have ProComm Plus.
  93. To end your session, enter the 'bye' command.
  94.  
  95.     Unix is a little more familiar for most people with Internet access. 
  96. For example, you might wish to get the latest version DSZ from 
  97. swan.ulowell.edu.  First, you give the 'ftp swan.ulowell.edu' command (or 
  98. ftp 129.63.224.1), giving 'anonymous' for the username, and your address 
  99. as the password.  You can then use the 'dir' or 'ls -l' commands to scan 
  100. the directories.  After logging in, you'll notice a directory called 
  101. 'ibmpc'.  You can use 'cd ibmpc', and you're inside.
  102.  
  103.     The ibmpc directory is subdivided into different subdirectories,
  104. such as Comm, SysUtil, and Programming.  DSZ is a communications
  105. program, so you can then 'cd Comm'.  Once again, there are several
  106. subdirectories, giving the names of several communications programs,
  107. and one marked 'Protocols'. Inside that directory is where DSZ is
  108. located.  There you'll find the latest version of DSZ (dsz0319.arc at
  109. this time).  Since it is a binary file, you must give the command
  110. 'binary' or 'set file type binary' to let FTP know.  Then you can
  111. issue the 'get' command.
  112.  
  113.     Different systems have different organizations for their files,
  114. and the above example is just the way I have it set up.  By 'poking'
  115. around other systems, you can learn how their files are set up, and
  116. zip around much faster.  Note, however, that FTP will not allow you
  117. outside the FTP 'root' directory, usually ~ftp on most systems.  So,
  118. poking about the entire system is not permitted.
  119.  
  120.     Other features of FTP can be found in the manual - please check there.
  121.  
  122.     Messages regarding problems, complaints or suggestions for
  123. Simtel20 should be addressed to 'action@wsmr-simtel20.army.mil'.
  124.  
  125.         THANKS TO ALL THOSE WHO HELPED...
  126.  
  127. I'd like to thank all those who helped in the creation of the manuals,
  128. and were patient enough for it to be released:
  129.  
  130.         Craig Browning
  131.         William Davidsen
  132.         Mike Driscoll
  133.         Bill Fenner
  134.         John Foulkes
  135.         Steven Harding
  136.         Mac Michaels
  137.         Derek Nazareth
  138.         Russ Nelson
  139.         Kevin Reilly
  140.         Keith Petersen
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.      Another file downloaded from:                     NIRVANAnet(tm)
  148.  
  149.      & the Temple of the Screaming Electron              415-935-5845
  150.      Just Say Yes                                        415-922-1613
  151.      Rat Head                                            415-524-3649
  152.      Cheez Whiz                                          408-363-9766
  153.      Reality Check                                       415-474-2602
  154.  
  155.    Specializing in conversations, obscure information, high explosives,
  156.        arcane knowledge, political extremism, diversive sexuality,
  157.        insane speculation, and wild rumours. ALL-TEXT BBS SYSTEMS.
  158.  
  159.   Full access for first-time callers.  We don't want to know who you are,
  160.    where you live, or what your phone number is. We are not Big Brother.
  161.  
  162.                          "Raw Data for Raw Nerves"
  163.  
  164.  
  165.