Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zad1
- a) Połączyć ze wszystkimi hostami wirtualnymi.
- GET /index.html HTTP/1.1
- host: student.pl
- HTTP/1.1 200 OK
- Date: Wed, 06 Nov 2019 07:21:44 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- Last-Modified: Tue, 07 Nov 2017 09:34:32 GMT
- ETag: "51-55d61473dda00"
- Accept-Ranges: bytes
- Content-Length: 81
- Content-Type: text/html
- Hej! Znajdujesz się na stronie (student.pl) alias www.student.pl plik index.html
- GET /index.html HTTP/1.1
- host: wykladowca.pl
- HTTP/1.1 401 Authorization Required
- Date: Wed, 06 Nov 2019 07:22:59 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- WWW-Authenticate: Basic realm="Podaj has▒o"
- Content-Length: 401
- Connection: close
- Content-Type: text/html
- <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- <html><head>
- <title>401 Authorization Required</title>
- </head><body>
- <h1>Authorization Required</h1>
- <p>This server could not verify that you
- are authorized to access the document
- requested. Either you supplied the wrong
- credentials (e.g., bad password), or your
- browser doesn't understand how to supply
- the credentials required.</p>
- </body></html>
- ---------------------------------------------------------------
- b) Pobrać stronne index.html
- GET /index.html HTTP/1.1
- host: student.pl
- HTTP/1.1 200 OK
- Date: Wed, 06 Nov 2019 07:25:24 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- Last-Modified: Tue, 07 Nov 2017 09:34:32 GMT
- ETag: "51-55d61473dda00"
- Accept-Ranges: bytes
- Content-Length: 81
- Content-Type: text/html
- Hej! Znajdujesz się na stronie (student.pl) alias www.student.pl plik index.html
- Pobrać stronę zabezpieczoną na hasło.
- GET /index.html HTTP/1.1
- host: wykladowca.pl
- Authorization: Basic d3lrbGFkb3djYTp3eWtsYWRvd2Nh
- HTTP/1.1 200 OK
- Date: Wed, 06 Nov 2019 07:36:58 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- Last-Modified: Tue, 07 Nov 2017 09:35:18 GMT
- ETag: "58-55d6149fbc180"
- Accept-Ranges: bytes
- Content-Length: 88
- Content-Type: text/html
- Hej! Znajdujesz się na stronie (wykladowca.pl) alias www.wykladowca.pl plik in dex.html
- ---------------------------------------------------------------
- c) Pobrać stronę, która nie istnieje na serwerze i odczytać kod błędu.
- GET /fake.html HTTP/1.1
- host: student.pl
- HTTP/1.1 404 Not Found
- Date: Wed, 06 Nov 2019 07:40:22 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- Last-Modified: Tue, 22 Nov 2011 10:08:00 GMT
- ETag: "67-4b24ffa662000"
- Accept-Ranges: bytes
- Content-Length: 103
- Content-Type: text/html
- Hej! Znajdujesz się na stronie www.student.pl <br><br>
- <B>Niestety nastšpił błšd <h1>404</h1></b>
- KOD BLEDU: 404
- ---------------------------------------------------------------
- d) Pobrać tylko nagłówek odpowiedzi z serwera.
- HEAD /index.html HTTP/1.1
- host: student.pl
- HTTP/1.1 200 OK
- Date: Wed, 06 Nov 2019 07:42:49 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- Last-Modified: Tue, 07 Nov 2017 09:34:32 GMT
- ETag: "51-55d61473dda00"
- Accept-Ranges: bytes
- Content-Length: 81
- Content-Type: text/html
- ---------------------------------------------------------------
- e) Sprawdzenie ważności strony. Sprawdzić, jakie jest pole Last-Modified
- ---------------------------------------------------------------
- f) Pobrać rysunek a1.gif
- GET /a1.gif HTTP/1.1
- host: student.pl
- HTTP/1.1 200 OK
- Date: Wed, 06 Nov 2019 07:45:57 GMT
- Server: Apache/2.4.41 (Win32) OpenSSL/1.0.2s
- Last-Modified: Fri, 26 Apr 2002 09:21:14 GMT
- ETag: "1524-39f83b0179680"
- Accept-Ranges: bytes
- Content-Length: 5412
- Content-Type: image/gif
- GIF89a÷ccc˙11111c1cccccc11cccccccccksĽĽ{ĽĽ{ľľľľc1ν˝ÎÎĽĆĆľÎνÖÖĆĆĆĆÖÖĆŢŢÎ1ÎÎÎÎÎÎŢŢÖççŢďďçďďď÷÷÷÷÷÷˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ţH° *\Č°ĄĂ#JHą˘Ĺ3jÜČąŁÇ CI˛¤É(SŞ\ɲĽË0cĘISĽ5sęÜiň&7y
- JT˘ĎH]ĘtŠ¤PhJľjMD*`ŞŐpÁ͡h×Ęp\KNź¸˛U'ěâ
- CKV`š4SĚÇĺ,ÂóŔ
- 0`F|´éŰB5`:ëÎ>Ç}xď^۸çÔĄšóć
- ĂřqĺŘŘÎ]zAŘÔţ×ÎNžŚn˝ÔŤ[G^ž}Ë
- đ3ĚčrzńěÝëG ž
- ř3'fŕĹś^kű%Čü'kťíe`m ÔŕÁF
- đV á$mŘ Ě=ç\t(îÔh#¨ĽČ]w1ćäA D#9~ľŁ=zxĄeEŁGéB9@ViĐfPÂ' ŃöPuTTYŐYfŮofÉ$S.ů"ńUYhU2
- ¤k#ę[čąÜî8WgőZkă:[Žš-Ü˝vßzT}eęÄ\|b*şčzÂPĂl×5Uc jşévţEE?ÚŠ_J[Ş~Ň)Žś ˇÖ$ëŹČÚjZ7éP_F@c]śš$
- ´iş| ëR˘ţh¨\cdŻgáÍúŹ$ 8Vî°ŮŠĄA"R7`lÎ r
- ¨î´ZťdŔk
- Rg 3łö^
- 5Đ02É~FpîÉëFÜnË.{TĚHÓÁ˝K
- Hw03u$<_ÎOĚŔąr7qÖ3Îxąť]ŇaČţ"ßűtÚjłMÓŔôüĺnˇËrÝv-łŘIďšČó0ŕţBz"c^|BĂ
- ˝$×_äŢ"@ôä}[NŔô;ZC0lę)>Îşń°p/@Ô$ßkHún n×č đđÄkx|ëxONň0ď|ŮkĎÄ]ďđwž]ö˝gĎćdpá?´?âóL¸
- śńoç
- <çMzÓŤÁč5ŘI?Q
- Đéâ+)ŠÝ ě'AJQT$ŔHÖĎ<šd%iŠĚ=.s'
- Nt¤ůŁćyq4ä!eRCEv&ťÉŕöúLrqü%-#M鸨Äf6ľÉFn&R>ţ¤ü(ž´s WH@Ń8ĎQ2¨Ůçőާ=
- Ž/.XA@ò#ď0
- tŢA]"ł#zsYÁV°EÄđÍN&ŞH¤ýiFTđRÚÔ".
- éMw
- ާ@u
- &đÓ 5!9eéŕĚ;#Tt:<ĄŠN=hB/R2ŞkD ËX!bľJNKŻ>ÓŹCĄ\IV´śľŹë
- ]_éĚ0Î'>eŤ$iŐKŢ5~}ëXKX§Ţqd}Ś2s2Ô˘îDćLgW]éLĹNV"ľŞbӚ̞îąX%IRË9ŘŃó~đQ+2á
- ˤ˛2Éđ/Ňá$xÁ,ńILá&+°WĂřˇä@PLcŘŘ%ZuÉ
- *`÷ŘÇ-˛sźă#säÇ+špJÜd'?9É+ąJ\d+{Ę(9ń-Pe/wĚ&Ńrţtuld3cÍŞĹqI¸Üf7żËióH¨\g;ßŮĂs^rIRŔf?Î rHR0ôŮĐ5ĆłHÔźč |@Ŕ>ł¤-čJ_:Ó&A4G(íÔĄŢtGÍScŐPuTTYPuTTYPuTTYőLőźWĂ:%˛žKméWß$šŤ1bë_Ť$Ř!5ą{ml ;"ťÖ
- ÝlgŤ§]Ö¨]mk:#ž~
- úŘOţś÷ÓŞTą!ąöđ{ˇ%n)ŮvJ@&_SóOţGÎđĎ8ŔőînúÚ/Ůö{Ü(ý˛ÖpD,-mŕ?§ć>Ůú70đ;şă?ÉęgÔzşýřŻÁŔ$űš'7ťWů'á]ÂzŰ!` ÎťŔ\fEśˇľ nçz}ćN÷ş[ âŇ*Ö˝
- 8@řŘX ¨~ď7$ęŽq8ű,h7\!~Č+xďr!<h>h@¸Ex
- _1
- 4¸0?Č
- T1
- Czág
- TxVh˝Z¸
- %Ń `=5Ré¸nć
- *Č" hj¸lŘnhW´őč$Zo¨Ě%sh}nČJöuŚUGýCNč^L%WuřGúő^Q>'ݸóľá^(DŮzřU×) ľÇsNń¨]?^{YH×ŐąaÇö¨řŔýřIiyzÉaőéŠ1onXň6mČHćŰ(#i&šŠm šţ(\
- (ů/ +3Ii'Ů#A
- HEšWv,¨KIGéIéaFăYI
- \ŮLkHIwa)Růeeůsg%!2×nůk)pr9tŠ&wx×Ç}éś)
- G
- ľiAĆľ)¨IĂIA5ţđÓńĐé1)XŇbrÍ)ĎáŢiŁóuőiâ˝s ŤćéĆšę źá"jÝ)ÖÓ
- J
- şiďôNÚ&8s$'& !bĄÜ)ňŮĄÁ÷Ů`ŚWPWs&ą8"éŇ$+Ę=.q 7Ł4ş 2eĹ1go5đ J˘MJa0ő¤5ŕѢőáqŞ%X˘ę)& s(ńqĄJ
- ŚaJvç!%ôůo>:ĽĆYÖ2jc¤ńštEQŁ
- ú˘]§Ę¤;áâwŚńđI%8c|ă4=¸
- PsÔŮ&_q39ł3%ăúĘ`ę?57ĽGŇŚüiM6uTTYg*~ŃD Š*OÚŞ2Ź5đpT¨UÁ5QÓ>ďÉĽ!ŇĎ8
- Ź MđAr˛z˘Č*2ĐVÇŹŞPâĘŤÂŞż
- PŃqţ¨ćy˘BÚ
- ´RË{lZą¨şTáŤę?ÔĘŽąUa°.°Đł°QĽ KdęYŇz/;í$a"ëţxlóŞZzKúúułz.3Ť¨ávZVťGŇ/ąędT´
- áąČ fzęZ¨Ë[ű°ĄĽëzśĆúŚ*Áśĺ9Ź3ţÉqëTđɡűłEaQzŰąÔůŁ".Ť{2|á ŹÓ!3Iő>Őʡnű¸Q¤úśĆŠś-)ň04ý"3ËŻů=:šTšťůˇŰŁ&ęˇk*¨2ĺťU
- ťVqĹ
- ´Ä[ź(ţëť@źÉB.ÍkťSšj˛¨Ť; U
- Ťg4Đť4ztý˝Â[JżęTk&Ť)§0ńžŢK´lęźi;ž^"uK0ÍŃŔż
- ˝Ŕ[ż%!ŔúR
- žHşŃ
- ŞČ
- ń UňS\hĚ~Ë Z
- lVŠłĚ"ÔŻúÄQLÁáĘkAN
- ˘čČślTŃÝŁZlA
- vöÓô´QÄĚÍâ[VŃföÓ@Ô×K¸2Ă\ľF1tP;,PÔ[-ePŤÁ!Ń˝ĹŘ^˘ŹŘ
- LňQőDŔzÉ2ĂÁçĎŻÜĐťlÉUţÎuYVąŃÚ´Qľ;ż\Ď
- ĘŤhIH˘lĚĄ<Ęʸ^-ńËÄŠĎŘČžěKÁŰžaĎşýť,Ρ\ĺhÍűě
- Ü)y8 °fŮÍWúĚE]U
- jř<W
- í×@ ,ż=ŮśuĎÄM[ţl+ËĎÜÖŃ}ÝŘ
- ÎEUxŮz\.ÁĐşLФ|gĚß<\śÍÎ=Iö
- ---------------------------------------------------------------
- ZAD2
- a.Rozesłać listu do wszystkich uczestników zajęć.
- 220 DESKTOP-8C77PU7.poczta.student.pl ESMTP MailEnable Service, Version: 10.27-- ready at 11/06/19 08:54:38
- hello student.pl
- 503 Bad sequence of commands
- helo student.pl
- 250 Requested mail action okay, completed
- mail from: <pai05@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai01@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai02@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai03@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai04@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai06@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai07@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai08@poczta.student.pl>
- 250 Requested mail action okay, completed
- data
- 354 Start mail input; end with <CRLF>.<CRLF>
- Jarek Spyrka
- .
- .
- 250 Requested mail action okay, completed
- quit
- 221 Service closing transmission channel
- ---------------------------------------------------------------
- b. Wysłać list do nieistniejącego użytkownika
- rcpt to: <fake@poczta.student.pl>
- 550 Requested action not taken: mailbox unavailable or not local.
- **************
- c. Wysłać list od nieistniejącego użytkownika.
- helo student.pl
- 250 Requested mail action okay, completed
- mail from: <fake@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai04@poczta.student.pl>
- 250 Requested mail action okay, completed
- data
- 354 Start mail input; end with <CRLF>.<CRLF>
- fake jarek.
- .
- 250 Requested mail action okay, completed
- quit
- 221 Service closi
- ---------------------------------------------------------------
- d. Wysłać list z polami nagłówka
- 220 DESKTOP-8C77PU7.poczta.student.pl ESMTP MailEnable Service, Version: 10.27-- ready at 11/06/19 09:00:32
- helo student.pl
- 250 Requested mail action okay, completed
- mail from: <pai06@poczta.student.pl>
- 250 Requested mail action okay, completed
- rcpt to: <pai01@poczta.student.pl>
- 250 Requested mail action okay, completed
- data
- 354 Start mail input; end with <CRLF>.<CRLF>
- Subject:Pai2019
- TEST nAGLOWKA
- .
- 250 Requested mail action okay, completed
- 503 Bad sequence of commands
- quit
- 221 Service closing transmission channel
- ---------------------------------------------------------------
- e. Sprawdzić zawartość swojej skrzynki odbiorczej
- +OK Welcome to MailEnable POP3 Server
- user pai05
- +OK
- pass pai05
- +OK
- stat
- +OK 7 1384
- list
- +OK 7 1384
- 1 198
- 2 257
- 3 186
- 4 186
- 5 177
- 6 194
- 7 186
- .
- retr 1
- +OK 186 octets
- Received: from student.pl ([10.0.0.163]) by poczta.student.pl with
- MailEnable ESMTP; Wed, 6 Nov 2019 08:30:48 +0100
- Testowa tresc emaila KK
- Return-Path: <pai07@poczta.student.pl>
- ---------------------------------------------------------------
- f. Odczytać nagłówki listów.
- top 1
- +OK
- Received: from student.pl ([10.0.0.163]) by poczta.student.pl with
- MailEnable ESMTP; Wed, 6 Nov 2019 08:30:48 +0100
- Mikolaj i Vlad
- Return-Path: <pai06@poczta.student.pl>
- ---------------------------------------------------------------
- g. Spróbować przeczytać nieistniejący list.
- retr 15
- -ERR No such message
- ---------------------------------------------------------------
- h. Usunąć listy
- list
- +OK 7 1384
- 1 198
- 2 257
- 3 186
- 4 186
- 5 177
- 6 194
- 7 186
- .
- dele 1
- +OK
- list
- +OK 6 1198
- 2 257
- 3 186
- 4 186
- 5 177
- 6 194
- 7 186
- .
- ---------------------------------------------------------------
- 3. Połączyć się protokołem FTP z serwerem ftp (Klient usługi).
- a. Przetestować działanie podstawowych komend protokołu ftp.
- Microsoft Windows [Version 10.0.18362.418]
- (c) 2019 Microsoft Corporation. Wszelkie prawa zastrzeżone.
- C:\Windows\system32>ftp
- ftp> open 10.0.0.4 21
- Connected to 10.0.0.4.
- 220-FileZilla Server 0.9.60 beta
- 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
- 220 Please visit https://filezilla-project.org/
- 202 UTF8 mode is always enabled. No need to send this command.
- User (10.0.0.4:(none)): pai05
- 331 Password required for pai05
- Password:
- 230 Logged on
- ftp> ls
- 200 Port command successful
- 150 Opening data channel for directory listing of "/"
- 226 Successfully transferred "/"
- ftp> status
- Connected to 10.0.0.4.
- Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On
- Debugging: Off ; Hash mark printing: Off .
- ftp>
- ftp> mkdir qwe
- 257 "/test" created successfully
- ftp> cd test
- 250 CWD successful. "/test" is current directory.
- ftp> quit
- 221 Goodbye
- C:\Windows\system32>
- ---------------------------------------------------------------
- b) Przesłać plik na serwer
- C:\Users\student\Desktop>ftp
- ftp> open 10.0.0.4 21
- Connected to 10.0.0.4.
- 220-FileZilla Server 0.9.60 beta
- 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
- 220 Please visit https://filezilla-project.org/
- 202 UTF8 mode is always enabled. No need to send this command.
- User (10.0.0.4:(none)): pai05
- 331 Password required for pai05
- Password:
- 230 Logged on
- ftp> send test.txt plik.txt
- 200 Port command successful
- 150 Opening data channel for file upload to server of "/plik.txt"
- 226 Successfully transferred "/plik.txt"
- ftp> ls
- 200 Port command successful
- 150 Opening data channel for directory listing of "/"
- plik.txt
- test
- 226 Successfully transferred "/"
- ftp: 18 bytes received in 0.00Seconds 18000.00Kbytes/sec.
- ftp> quit
- 221 Goodbye
- ---------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement