Personal collection of hacker material

Source: Internet
Author: User
Tags anonymous chmod parent directory remote ftp server runique

FTP command encyclopedia and its application

The command line format for FTP is: ftp-v-d-i-n-g[host name]

-V Displays all response information for the remote server.   -d use debug mode.   -N Restricts automatic logon of FTP, that is, the. netrc file is not used. -G cancels the global filename.

  The internal commands used by FTP are as follows (where parentheses indicate an option): 1.!   [Cmd[args]] executes an interactive shell in the local machine, exit back to the FTP environment, such as!ls*.zip.   2.¥macro-ame[args] Executes the macro definition Macro-name.   3.account[password] provides the additional password required to access system resources after the successful logon of the remote system.   4.appendlocal-file[remote-file] Appends the local file to the remote system host and uses the local file name if no remote system file name is specified.   5.ASCII uses the ASCII type transfer mode.   6.bell the computer rings once after each command has finished executing.   7.bin use binary file transfer mode.   8.bye exits the FTP session process.   9.case when using Mget, the upper case of the remote host file name is converted to lowercase letters.   10.CD Remote-dir into the remote host directory.   11.cdup into the parent directory of the remote host directory.   12.chmod Modefile-name Sets the access mode for the remote host file File-name to mode, such as chmod 777 a.out.   13.close interrupts the FTP session with the remote server (corresponding to open).   14.CR converts a carriage return line to a back line when the file is transferred using the Asscii method.   15.delete Remote-file Deletes the remote host file.   16.debug[debug-value] Sets the debug mode to display every command sent to a remote host, such as Debup 3, if set to 0, to cancel Debug.   17.dir[remote-dir][local-file] Displays the remote host directory and deposits the results in Local-file.   18.disconnection with close.   19.form format sets the file transfer mode to format, which defaults to the filename.   20.getremote-file[local-file] passes the remote host's file Remote-file to the local-file of the local hard drive.   21.glob sets the file name extension for Mdelete, Mget, Mput, by default, the filename is not extended, and the-G parameter of the command line.   22.hash 1024 bytes per transmission, displaying a hash symbol (#).   23.help[cmd] Displays help information for the FTP internal command cmd, such as aid get. 24.idle[seconds] Sets the remote server's hibernate timer to [seconds] seconds.   25.image Set binary transfer mode (same binary) 26.lcd[dir] to switch the local working directory to dir.   27.ls[remote-dir][local-file] Displays the remote directory Remote-dir and stores the local local-file.   28.macdef Macro-name defines a macro that, when it encounters an empty row under Macdef, ends the macro definition.   29.mdelete[remote-file] Deletes the remote host file. 30.mdir Remote-files Local-file is similar to dir, but can specify multiple remote files, such as mdir*.o.*.   Zipoutfile.   31.mget remote-files transfer multiple remote files.   32.mkdir dir-name Build a directory in the remote host.   33.MLS remote-file local-file with nlist, but multiple file names can be specified.   34.mode[mode-name] Sets the file transfer mode to Mode-name and defaults to the stream method.   35.modtime File-name Displays the last modification time of the remote host file.   36.mput Local-file Transfer multiple files to a remote host. 37.newerfile-name if the file-name in the remote machine is modified more recently than the local hard disk file with the same name, the file is retransmission.   38.nlist[remote-dir][local-file] Displays a list of files for the remote host directory and stores the Local-file on the local hard drive. 39.nmap[inpatternoutpattern] Sets the file name mapping mechanism so that some characters in the file are converted to each other, such as Nmap¥1.¥2.¥3[¥1,¥2, when the file is transferred.   [¥2,¥3], when the file a1.a2.a3 is transferred, the file name changes to A1, A2, which is especially true for remote hosts that are not U-nix machines.   40.ntrans[inchars[outchars]] Sets the translation mechanism for a file name character, such as NTRANS1R, then the filename ll l becomes RRR.   41.open Host[port] Establishes a connection to the specified FTP server, which specifies the connection port.   42.passive into passive transmission mode.   43.prompt set up interactive prompts for multiple file transfers. 44.proxyftp-cmD in a secondary control connection, an FTP command is executed that allows two FTP servers to be connected to transfer files between two servers.   The first FTP command must be open to establish a connection between two servers first.   45.put Local-file[remote-file] transmits the local file local-file to the remote host.   46.PWD displays the current working directory of the remote host.   47.quit with bye, exit FTP session. 48.quote arg1,arg2 ...   Sends the parameters verbatim to a remote FTP server, such as quote Syst.   49.recv Remote-file[local-file] with get.   50.regetremote-file[local-file] is similar to get, but if local-file exists, it is resumed from the last transmission interrupt.   51.rhelp[cmd-name] Request help for a remote host.   52.rstatus[file-name] If no filename is specified, the status of the remote host is displayed, otherwise the file status is displayed.   53.RENAME[FROM][TO] Change the remote host file name.   54.reset clears the answer queue.   55.restart marker from the specified logo marker, restart get or put, such as restart 130.   56.rmdir Dir-name Deletes the remote host directory.   57.runique set filename Uniqueness Store, if the file exists, then add suffix to the original file.   58.send Local-file[remote-file] with put.   59.sendport set the use of the port command. 60.site arg1,arg2 ...   Sends the parameter verbatim to the remote FTP host as a site command.   61.size File-name Displays the remote host file size, such as site idle 7200.   62.status Displays the current FTP status. 63.struct[struct-name] Sets the file transfer structure to struct-name, using the stream structure by default.   64.sunique sets the remote host file name store to unique (corresponds to the Runique).   65.system Displays the operating system type of the remote host.   66.tenex Set the file Transfer type to the type required by the Tenex machine.   67.tick sets the byte counter at transfer time.   68.trace set package tracking. 69.type[type-namE] Sets the file transfer type to Type-name and the default is ASCII, such as Typebinary, to set the binary transmission mode.   70.umask[newmask] Sets the default umask for the remote server to Newmask, such as Umask 3.   71.useruser-name[password][account] to the remote host to indicate its identity, requires a password, you must enter a password, such as user anonymous my@email.   72.verbose the-v parameter with the command line, that is, to set up a detailed report, all responses to the FTP server will be displayed to the user, and the default is on. 73.?    [cmd] with help.

How can you use these commands to improve efficiency?   Let me give an example of how to use FTTP to download the background, assuming that your ISP provided you with the shell and can use nohup, you want to download a 30M program by fttp.download.com/pub/internet/Aaa.zip The following steps: 1. Use Notepad to make a file such as AAA1 content as follows open ftp.dwonload.com user anonymous zyz@cenpok.net cd/pub/internet/i get Aaa.zi P Close bye 2. dial-up login to your ISP.    Log in to the shell with Telnet or netterm, usually in your home subdirectory bbs~/3. FTTP upload Aaa1 to your subdirectory of your ISP server. 4. Execute nohup FTTP-INVD aaa2& So this process is placed in the background of the ISP server, if you want to know how the situation, you can more AAA2 can know the situation. At this point you can disconnect or do something else, estimated time to (=30m/(33.6K/9) s) dial up, more Aaa2 If the display of a successful download aaa.zip means that Aaa.zip has been downloaded to the ISP's server, you again by the ISP's server pull back is quite the point of point, remember to download the file after Del drop your files (aaa.zip), so as not to waste ISP resources, It will turn off the shell.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.