understanding ftp n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Understanding FTP PowerPoint Presentation
Download Presentation
Understanding FTP

Loading in 2 Seconds...

play fullscreen
1 / 15

Understanding FTP - PowerPoint PPT Presentation


  • 124 Views
  • Uploaded on

Understanding FTP. BUPT/QMUL 2013-05-03. Part1: Using telnet to learn FTP operations in passive mode. Steps: 1. Using telnet to connect to given FTP server $ telnet ftp.mayan.cn 21 2. login using username “ mayan ” and password “bupt”

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

Understanding FTP


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
understanding ftp

Understanding FTP

BUPT/QMUL

2013-05-03

part1 using telnet to learn ftp operations in passive mode
Part1: Using telnet to learn FTP operations in passive mode

Steps:

  • 1. Using telnet to connect to given FTP server
    • $ telnet ftp.mayan.cn 21
  • 2. login using username “mayan” and password “bupt”
  • 3. Input command “PASV”, calculate port number for data connections: port= p1×256+p2, p1 and p2 are taken from the server’s reply
  • 4. Using another terminal to set up data connection
    • $ telnet ftp.mayan.cn port
  • 5. Input command “LIST”

2

part1 using telnet to learn ftp operations in passive mode1
Part1: Using telnet to learn FTP operations in passive mode

30*256+251

c:\>telnet ftp.mayan.cn 21

In another command window, setting up data connection

3

in control connection
In control connection:

In data connection:

4

change to lab directory and list
Change to lab directory and list

in control connection

in data connection

5

download lab2 pdf
Download lab2.pdf

in control connection

in data connection

6

ftp commands to try
FTP commands to try

USER

PASS

PWD

CWD

LIST

RETR

STOR (trying on local FTP server)

TYPE

QUIT

7

part2 capture ftp commands and replies
Part2: Capture FTP commands and replies
  • Starting wireshark
    • set capture filter: tcp port 21

display filter: ftp

  • In your browser
    • ftp://ftp.mayan.cn
    • Download a file, study the FTP commands and replies captured.
  • Active mode is used

8

user commands used example
User commands used-example
  • D:\ftp-test> ftp ftp.mayan.cn 21
    • Input user name and password
    • ftp> ls
    • ftp> get fork.c
    • ftp> ren fork.c fork.txt
    • ftp> ls
    • ftp> binary
    • ftp> ascii
    • ftp> quit

11

slide13

Commands and replies used for ls

Commands and replies used for get

One data connection persists for one file transfer

13

slide14

The procedure of ls

  • Data connection establishment
  • Data transmission
  • Data connection close

14

slide15

Rename fork.c fork.txt

ls

binary

ascii

Release control connection

15