Advertisement
Tobiahao

PAI2

Nov 3rd, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. -- 1 --
  2. a)
  3. GET / HTTP/1.1
  4. host: student.pl
  5.  
  6. b)
  7. GET /index.html HTTP/1.1
  8. host: student.pl
  9.  
  10. c)
  11. GET /index.html HTTP/1.1
  12. host: student.pl
  13.  
  14. d)
  15. GET /null.html HTTP/1.1
  16. host: student.pl
  17. # https://www.base64encode.org/
  18. # admin:pass
  19. authorization: Basic YWRtaW46cGFzcw==
  20.  
  21. e)
  22. HEAD / HTTP/1.1
  23. host: student.pl
  24.  
  25. f)
  26. GET /image.gif HTTP/1.1
  27. host: student.pl
  28.  
  29.  
  30. -- 2 --
  31. a) (port: 25)
  32. HELO student.pl
  33. MAIL FROM: GR311A@student.pl
  34. RCPT TO: GR312A@student.pl
  35. DATA
  36. Treść maila tutaj
  37. .
  38. QUIT
  39.  
  40. b)
  41. HELO student.pl
  42. MAIL FROM: GR311A@student.pl
  43. RCPT TO: nieistniejacy@uzytkownik.pl
  44. DATA
  45. Treść maila tutaj
  46. .
  47. QUIT
  48.  
  49. c)
  50. HELO student.pl
  51. MAIL FROM: nieistniejacy@uzytkownik.pl
  52. RCPT TO: GR312A@student.pl
  53. DATA
  54. Treść maila tutaj
  55. .
  56. QUIT
  57.  
  58. d)
  59. HELO student.pl
  60. MAIL FROM: nieistniejacy@uzytkownik.pl
  61. RCPT TO: GR312A@student.pl
  62. DATA
  63. From: Grupa311A <GR311A@student.pl>
  64. To: Grupa312A <GR312A@student.pl>
  65. Subject: Mail z naglowkami
  66.  
  67. Zawartosc maila z naglowkami
  68. .
  69. QUIT
  70.  
  71. e) (port: 110)
  72. USER GR312A@student.pl
  73. PASS pass
  74. STAT
  75. LIST
  76. QUIT
  77.  
  78. f)
  79. USER GR312A@student.pl
  80. PASS pass
  81. LIST
  82. TOP 1
  83. TOP 2
  84. TOP 3
  85. QUIT
  86.  
  87. g)
  88. USER GR312A@student.pl
  89. PASS pass
  90. LIST
  91. RETR 10
  92. QUIT
  93.  
  94. h)
  95. USER GR312A@student.pl
  96. PASS pass
  97. LIST
  98. DELE 1
  99. DELE 2
  100. DELE 3
  101. LIST
  102. QUIT
  103.  
  104. -- 3 --
  105. a, b, c, d) (cmd)
  106. OPEN 127.0.0.1 21
  107. LS
  108. SEND G311A.txt G311A_SERWER.txt
  109. RECV G311A_SERWER.txt G311A_PC.txt
  110. LS
  111. QUIT
  112.  
  113. -- 4 --
  114. a) (putty - 127.0.0.1:21)
  115. USER admin
  116. PASS pass
  117. PASV (127, 0, 0, 1, 233, 251) --> 233*256+251 -- port, otwieramy drugi terminal z tym portem
  118. LIST
  119. MKD TMP
  120. RETR TEST_FILE.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement