Лабораторная работа №1 - университет телекоммуникаций им

Transcription

Лабораторная работа №1 - университет телекоммуникаций им
Санкт-Петербургский Государственный Университет Телекоммуникаций
им.проф. М.А.Бонч-Бруевича
Лабораторная работа №1
“Исследование протокола FTP”
Выполнили студенты гр. СУ-71:
Касьмин В.В.
Савченко А.Н.
2011г.
Windows
Telnet
Управляющее соединение:
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
C:\Documents and Settings\Виктор Касьмин>telnet ftp.drivehq.com 21
220 Welcome to the most popular FTP hosting service! Save on hardware, software,
hosting and admin. Share files/folders with read-write permission. Visit http:/
/www.drivehq.com/ftp/;
user *******
331 User name ok, need password.
pass *******
230 User logged on. Free service has restrictions and is slower.
pasv
227 Entering Passive Mode (66,220,9,50,35,217).
list
150 Connection accepted
226 Transfer complete
pasv
227 Entering Passive Mode (66,220,9,50,20,174).
stor file.txt
150 OK to send data
226 File receive OK
pasv
227 Entering Passive Mode (66,220,9,50,34,131).
list
150 Connection accepted
226 Transfer complete
dele file.txt
250 File "file.txt" was deleted successfully.
pasv
227 Entering Passive Mode (66,220,9,50,68,209).
list
150 Connection accepted
226 Transfer complete
Соединение передачи данных:
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
C:\Documents and Settings\Виктор Касьмин>telnet ftp.drivehq.com 9177
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
-rwx------ 1 user group
138 Sep 18 06:14 My Documents
1889 Sep 18 06:14 My Music
3093195 Sep 18 06:14 My Pictures
496205 Sep 18 06:14 PublicFolder
24332 Sep 18 06:14 wwwhome
0 Sep 18 06:31 drivehqshare
19 Sep 18 06:30 filepc.txt.txt
2
Подключение к узлу утеряно.
C:\Documents and Settings\Виктор Касьмин>telnet ftp.drivehq.com 8835
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
-rwx------ 1 user group
-rwx------ 1 user group
138 Sep 18 06:14 My Documents
1889 Sep 18 06:14 My Music
3093195 Sep 18 06:14 My Pictures
496205 Sep 18 06:14 PublicFolder
24332 Sep 18 06:14 wwwhome
0 Sep 18 06:47 drivehqshare
0 Sep 18 06:40 file.txt
19 Sep 18 06:30 filepc.txt.txt
Подключение к узлу утеряно.
C:\Documents and Settings\Виктор Касьмин>telnet ftp.drivehq.com 17617
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
drwx------ 1 user group
-rwx------ 1 user group
138 Sep 18 06:14 My Documents
1889 Sep 18 06:14 My Music
3093195 Sep 18 06:14 My Pictures
496205 Sep 18 06:14 PublicFolder
24332 Sep 18 06:14 wwwhome
0 Sep 18 06:50 drivehqshare
19 Sep 18 06:30 filepc.txt.txt
Подключение к узлу утеряно.
Активный режим
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
C:\Documents and Settings\Виктор Касьмин>ftp
ftp> o ftp.drivehq.com
Связь с ftp.drivehq.com.
220 Welcome to the most popular FTP hosting service! Save on hardware, software,
hosting and admin. Share files/folders with read-write permission. Visit http:/
/www.drivehq.com/ftp/;
Пользователь (ftp.drivehq.com:(none)): ********
331 User name ok, need password.
Пароль:
230 User logged on. Free service has restrictions and is slower.
ftp> dir
200 Port command successful.
150 Opening ASCII mode data connection for directory list.
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 18 11:24 drivehqshare
-rwx------ 1 user group
0 Sep 18 06:50 file.txt
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp: 516 байт получено за 0,05 (сек) со скоростью 10,98 (КБ/сек).
ftp> dele file.txt
3
250 File "file.txt" was deleted successfully.
ftp> dir
200 Port command successful.
150 Opening ASCII mode data connection for directory list.
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 18 11:25 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp: 454 байт получено за 0,03 (сек) со скоростью 14,65 (КБ/сек).
ftp> get filepc.txt.txt
200 Port command successful.
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete
ftp: 19 байт получено за 0,03 (сек) со скоростью 0,61 (КБ/сек).
ftp> mkdir test
257 Directory created successfully.
ftp> dir
200 Port command successful.
150 Opening ASCII mode data connection for directory list.
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 18 11:42 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp: 512 байт получено за 0,03 (сек) со скоростью 16,52 (КБ/сек).
ftp> cd test
250 CWD command successful. "/test" is current directory.
ftp> pwd
257 "/test" is current directory.
Пассивный режим
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
C:\Documents and Settings\Виктор Касьмин>ftp
ftp> o ftp.drivehq.com
Связь с ftp.drivehq.com.
220 Welcome to the most popular FTP hosting service! Save on hardware, software,
hosting and admin. Share files/folders with read-write permission. Visit http:/
/www.drivehq.com/ftp/;
Пользователь (ftp.drivehq.com:(none)): tov_suhofff
331 User name ok, need password.
Пароль:
230 User logged on. Free service has restrictions and is slower.
ftp> quote pasv
227 Entering Passive Mode (66,220,9,50,21,86).
ftp> dir
200 Port command successful.
4
150 Opening ASCII mode data connection for directory list.
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 18 11:46 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp: 512 байт получено за 0,05 (сек) со скоростью 10,89 (КБ/сек).
ftp> get filepc.txt.txt
200 Port command successful.
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete
ftp: 19 байт получено за 0,03 (сек) со скоростью 0,61 (КБ/сек).
ftp> cd test
250 CWD command successful. "/test" is current directory.
ftp> dir
200 Port command successful.
150 Opening ASCII mode data connection for directory list.
226 Transfer complete
ftp> cd /
250 CWD command successful. "/" is current directory.
ftp> dir
200 Port command successful.
150 Opening ASCII mode data connection for directory list.
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 18 11:47 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp: 512 байт получено за 0,05 (сек) со скоростью 10,89 (КБ/сек).
ftp> mkdir test2
257 Directory created successfully.
ftp> dir
200 Port command successful.
150 Opening ASCII mode data connection for directory list.
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 18 11:49 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp: 571 байт получено за 0,05 (сек) со скоростью 12,15 (КБ/сек).
ftp> bye
221 Bye
C:\Documents and Settings\Виктор Касьмин>
5
FTP клиент (Total Commander)
6
7
8
9
Лог транзакций
---------Connect to: (28.09.2011 12:11:34)
hostname=ftp.drivehq.com
username=
startdir=
ftp.drivehq.com=66.220.9.50
220 Welcome to the most popular FTP hosting service! Save on hardware, software, hosting and
admin. Share files/folders with read-write permission. Visit http://www.drivehq.com/ftp/;
USER tov_suhofff
331 User name ok, need password.
PASS ***********
230 User logged on. Free service has restrictions and is slower.
SYST
215 UNIX emulated by DriveHQ FTP Server.
FEAT
211-Extensions supported:
SIZE
MLSD
MLST
NLST
MDTM
MFMT
MFCT
MFF Create;Modify;
REST STREAM
UTF8
211 END
OPTS UTF8 ON
200 Enable UTF8 mode.
Connect ok!
PWD
257 "/" is current directory.
Чтение каталога...
TYPE A
200 Type set to A
PORT 91,224,115,18,7,211
200 Port command successful.
MLSD
150 Opening ASCII mode data connection for directory list.
Загрузка
Ожидание ответа сервера...
226 Transfer complete
TYPE I
200 Type set to I
PORT 91,224,115,18,8,123
200 Port command successful.
RETR filepc.txt.txt
150 Opening BINARY mode data connection for file transfer.
10
Загрузка
Ожидание ответа сервера...
226 Transfer complete
Copied (28.09.2011 12:12:10): ftp://ftp.drivehq.com//filepc.txt.txt -> D:\filepc.txt.txt 19 байт, 0 байт/с
CWD test2
250 CWD command successful. "/test2" is current directory.
Чтение каталога...
TYPE A
200 Type set to A
PORT 91,224,115,18,8,139
200 Port command successful.
MLSD
150 Opening ASCII mode data connection for directory list.
Загрузка
Ожидание ответа сервера...
226 Transfer complete
TYPE I
200 Type set to I
PORT 91,224,115,18,8,204
200 Port command successful.
STOR О Стеках.pdf
150 Opening BINARY mode data connection for file transfer.
Закачка
226 Transfer complete
SIZE О Стеках.pdf
213 421960
Copied (28.09.2011 12:12:33): D:\О Стеках.pdf -> ftp://ftp.drivehq.com/test2/О Стеках.pdf 421 960
байт, 33 Кбайт/с
Чтение каталога...
TYPE A
200 Type set to A
PORT 91,224,115,18,9,40
200 Port command successful.
MLSD
150 Opening ASCII mode data connection for directory list.
Загрузка
Ожидание ответа сервера...
226 Transfer complete
CDUP
250 CWD command successful. "/" is current directory.
PWD
257 "/" is current directory.
RMD dddd
250 Directory deleted successfully.
Чтение каталога...
PORT 91,224,115,18,9,119
200 Port command successful.
MLSD
150 Opening ASCII mode data connection for directory list.
Загрузка
11
Ожидание ответа сервера...
226 Transfer complete
QUIT
221 Bye
12
Linux
Активный режим
student@521-11:~$ ftp
ftp> o 172.16.100.20
Connected to 172.16.100.20.
220 Welcome to OPDS FTP service.
Name (172.16.100.20:student): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rwxrwxrwx
1 105 65534
139925 Nov 10 2009 arp-protocol.pdf
drwxr-xr-x 42 105 0
1832 Sep 16 14:43 incoming
-rw-rw-rw10
0
0 Nov 11 2010 welcome.txt
226 Directory send OK.
ftp> get welcome.txt /home/student/aaaaaaa.txt
local: /home/student/aaaaaaa.txt remote: welcome.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for welcome.txt (0 bytes).
226 File send OK.
ftp> cd incoming
250 Directory successfully changed.
usage: put local-file remote-file
ftp> put /home/student/lab1telnet newfile.txt
local: /home/student/lab1telnet remote: newfile.txt
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
838 bytes sent in 0.00 secs (19031.6 kB/s)
ftp> delete newfile.txt
250 Delete operation successful.
Пассивный режим
student@521-11:~$ ftp
ftp> o 172.16.100.20
Connected to 172.16.100.20.
220 Welcome to OPDS FTP service.
Name (172.16.100.20:student): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quote pasv
227 Entering Passive Mode (172,16,100,20,171,158)
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
13
-rwxrwxrwx
1 105 65534
139925 Nov 10 2009 arp-protocol.pdf
drwxr-xr-x 44 105 0
1880 Sep 16 14:59 incoming
-rw-rw-rw10
0
0 Nov 11 2010 welcome.txt
226 Directory send OK.
ftp> get welcome.txt
local: welcome.txt remote: welcome.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for welcome.txt (0 bytes).
226 File send OK.
ftp> put /home/student/aaaa.txt bbbbbb
local: /home/student/aaaa.txt remote: bbbbbb
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw------1 105 65534
0 Sep 16 15:13 bbbbbb
-rw------1 105 65534 1776524 Sep 16 15:01 newfile.txt
226 Directory send OK.
ftp> cd incoming
250 Directory successfully changed.
ftp> cd dorognet
250 Directory successfully changed.
ftp> delete newfile.txt
250 Delete operation successful.
Telnet
Управляющее соединение:
student@521-11:~$ telnet 172.16.100.20 21
Trying 172.16.100.20...
Connected to 172.16.100.20.
Escape character is '^]'.
220 Welcome to OPDS FTP service.
USER anonymous
331 Please specify the password.
PASS [email protected]
230 Login successful.
PASV
227 Entering Passive Mode (172,16,100,20,255,20)
LIST
150 Here comes the directory listing.
226 Directory send OK.
PASV
227 Entering Passive Mode (172,16,100,20,39,190)
RETR welcome.txt
150 Opening ASCII mode data connection for welcome.txt (0 bytes).
226 File send OK.
14
Соединение передачи данных:
student@521-11:~$ telnet 172.16.100.20 43282
Trying 172.16.100.20...
telnet: Unable to connect to remote host: Connection refused
student@521-11:~$ telnet 172.16.100.20 65300
Trying 172.16.100.20...
Connected to 172.16.100.20.
Escape character is '^]'.
LIST
-rwxrwxrwx
1 105 65534
139925 Nov 10 2009 arp-protocol.pdf
drwxr-xr-x 44 105 0
1880 Sep 16 14:59 incoming
-rw-rw-rw10
0
0 Nov 11 2010 welcome.txt
Connection closed by foreign host.
student@521-11:~$ telnet 172.16.100.20 10174
Trying 172.16.100.20...
Connected to 172.16.100.20.
Escape character is '^]'.
Connection closed by foreign host.
FTP клиент (FireFTP)
Установка соединения
15
16
17
Лог транзакций
FireFTP 1.0.10 'Human Being' Mime Čuvalo
220 Welcome to the most popular FTP hosting service! Save on hardware, software, hosting and
admin. Share files/folders with read-write permission. Visit http://www.drivehq.com/ftp/;
USER tov_suhofff
331 User name ok, need password.
PASS (password not shown)
230 User logged on. Free service has restrictions and is slower.
FEAT
211-Extensions supported:
SIZE
MLSD
MLST
NLST
MDTM
MFMT
MFCT
MFF Create;Modify;
REST STREAM
UTF8
211 END
OPTS UTF8 ON
200 Enable UTF8 mode.
PWD
257 "/" is current directory.
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (66,220,9,50,38,115).
MLSD
150 Connection accepted
226 Transfer complete
NOOP
200 OK
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (66,220,9,50,34,138).
RETR filepc.txt.txt
150 Connection accepted
Failed to save '/filepc.txt.txt' locally.
226 Transfer complete
PASV
227 Entering Passive Mode (66,220,9,50,22,90).
RETR О Стеках.pdf
150 Connection accepted
Failed to save '/О Стеках.pdf' locally.
426 Connection closed; transfer aborted.
18
: /О Стеках.pdf
NOOP
200 OK
PASV
227 Entering Passive Mode (66,220,9,50,39,155).
RETR filepc.txt.txt
150 Connection accepted
226 Transfer complete
NOOP
200 OK
PASV
227 Entering Passive Mode (66,220,9,50,52,126).
RETR filepc.txt.txt
150 Connection accepted
226 Transfer complete
NOOP
200 OK
MKD dddd
257 Directory created successfully.
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (66,220,9,50,39,171).
MLSD
150 Connection accepted
226 Transfer complete
QUIT
19
Mac OS
Активный режим
Last login: Thu Sep 22 14:44:33 on console
MacBook-ariec86:~ ariec86$ ftp
ftp> o ftp.drivehq.com
Connected to ftp.drivehq.com.
220 Welcome to the most popular FTP hosting service! Save on hardware, software, hosting and
admin. Share files/folders with read-write permission. Visit http://www.drivehq.com/ftp/;
Name (ftp.drivehq.com:ariec86): tov_suhofff
331 User name ok, need password.
Password:
230 User logged on. Free service has restrictions and is slower.
Remote system type is UNIX.
ftp> dir
227 Entering Passive Mode (66,220,9,50,238,113)
150 Connection accepted
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 06:52 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp> get filepc.txt.txt
local: filepc.txt.txt remote: filepc.txt.txt
227 Entering Passive Mode (66,220,9,50,246,153)
150 Connection accepted
100% |***********************************| 19
4.05 KiB/s 00:00 ETA
226 Transfer complete
19 bytes received in 00:00 (0.08 KiB/s)
ftp> mkdir active_from_mac
257 Directory created successfully.
ftp> dir
227 Entering Passive Mode (66,220,9,50,248,223)
150 Connection accepted
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 06:55 drivehqshare
20
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp> cd active_from_mac
250 CWD command successful. "/active_from_mac" is current directory.
ftp> pwd
Remote directory: /active_from_mac
ftp> put new.txt
local: new.txt remote: new.txt
227 Entering Passive Mode (66,220,9,50,217,251)
150 Connection accepted
100% |***********************************| 19
107.87 KiB/s --:-- ETA
226 Transfer complete
19 bytes sent in 00:00 (0.06 KiB/s)
ftp> dir
227 Entering Passive Mode (66,220,9,50,199,93)
150 Connection accepted
-rwx------ 1 user group
19 Sep 22 06:58 new.txt
226 Transfer complete
ftp> dele new.txt
250 File "new.txt" was deleted successfully.
ftp> dir
227 Entering Passive Mode (66,220,9,50,220,183)
150 Connection accepted
226 Transfer complete
ftp>
Пассивный режим
Last login: Thu Sep 22 14:46:31 on ttys000
MacBook-ariec86:~ ariec86$ ftp
ftp> o ftp.drivehq.com
Connected to ftp.drivehq.com.
220 Welcome to the most popular FTP hosting service! Save on hardware, software, hosting and
admin. Share files/folders with read-write permission. Visit http://www.drivehq.com/ftp/;
Name (ftp.drivehq.com:ariec86): tov_suhofff
331 User name ok, need password.
Password:
230 User logged on. Free service has restrictions and is slower.
Remote system type is UNIX.
ftp> quote pasv
227 Entering Passive Mode (66,220,9,50,216,229)
ftp> dir
227 Entering Passive Mode (66,220,9,50,253,8)
150 Connection accepted
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
21
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:05 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp> put new.txt
local: new.txt remote: new.txt
227 Entering Passive Mode (66,220,9,50,241,182)
150 Connection accepted
100% |***********************************| 19
52.86 KiB/s --:-- ETA
226 Transfer complete
19 bytes sent in 00:00 (0.06 KiB/s)
ftp> dir
227 Entering Passive Mode (66,220,9,50,208,168)
150 Connection accepted
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:05 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
-rwx------ 1 user group
19 Sep 22 07:03 new.txt
226 Transfer complete
ftp> dele new.txt
250 File "new.txt" was deleted successfully.
ftp> dir
227 Entering Passive Mode (66,220,9,50,216,59)
150 Connection accepted
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:05 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
226 Transfer complete
ftp> get filepc.txt.txt
local: filepc.txt.txt remote: filepc.txt.txt
227 Entering Passive Mode (66,220,9,50,233,44)
150 Connection accepted
100% |***********************************| 19
149.63 KiB/s 00:00 ETA
226 Transfer complete
22
19 bytes received in 00:00 (0.08 KiB/s)
ftp> cd active_from_mac
250 CWD command successful. "/active_from_mac" is current directory.
ftp> pwd
Remote directory: /active_from_mac
ftp>
Telnet
Управляющее соединение:
Last login: Thu Sep 22 15:03:16 on ttys000
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 21
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
220 Welcome to the most popular FTP hosting service! Save on hardware, software, hosting and
admin. Share files/folders with read-write permission. Visit http://www.drivehq.com/ftp/;
USER *********
331 User name ok, need password.
PASS ************
230 User logged on. Free service has restrictions and is slower.
PASV
227 Entering Passive Mode (66,220,9,50,249,127)
list
150 Connection accepted
226 Transfer complete
PASV
227 Entering Passive Mode (66,220,9,50,231,200)
RETR filepc.txt.txt
150 Connection accepted
226 Transfer complete
PASV
227 Entering Passive Mode (66,220,9,50,192,203)
STOR new.txt
150 Connection accepted
226 Transfer complete
PASV
227 Entering Passive Mode (66,220,9,50,224,251)
list
150 Connection accepted
226 Transfer complete
pasv
227 Entering Passive Mode (66,220,9,50,198,179)
dele new.txt
250 File "new.txt" was deleted successfully.
pasv
227 Entering Passive Mode (66,220,9,50,195,53)
list
23
150 Connection accepted
226 Transfer complete
Соединение передачи данных:
Last login: Thu Sep 22 15:07:05 on ttys000
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 63871
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:10 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 59336
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
This is test text file. Have a nice day. Gold Cobra!
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 49355
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 63871
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:10 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 59336
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
24
Escape character is '^]'.
This is test text file. Have a nice day. Gold Cobra!
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 49355
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 57595
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:18 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
-rwx------ 1 user group
0 Sep 22 07:12 new.txt
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 50867
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$ telnet ftp.drivehq.com 49973
Trying 66.220.9.50...
Connected to ftp.drivehq.com.
Escape character is '^]'.
drwx------ 1 user group
0 Sep 22 06:53 active_from_mac
drwx------ 1 user group
138 Sep 18 06:14 My Documents
drwx------ 1 user group
1889 Sep 18 06:14 My Music
drwx------ 1 user group
3093195 Sep 18 06:14 My Pictures
drwx------ 1 user group
496205 Sep 18 06:14 PublicFolder
drwx------ 1 user group
0 Sep 18 11:41 test
drwx------ 1 user group
0 Sep 18 11:48 test2
drwx------ 1 user group
24332 Sep 18 06:14 wwwhome
drwx------ 1 user group
0 Sep 22 07:20 drivehqshare
-rwx------ 1 user group
19 Sep 18 06:30 filepc.txt.txt
Connection closed by foreign host.
MacBook-ariec86:~ ariec86$
25
FTP клиент (CyberDuck)
26
27
28
29

Similar documents