Tobiahao

PAI2

Nov 3rd, 2018
141
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: [email protected]
  34. DATA
  35. Treść maila tutaj
  36. .
  37. QUIT
  38.  
  39. b)
  40. HELO student.pl
  41. MAIL FROM: [email protected]
  42. DATA
  43. Treść maila tutaj
  44. .
  45. QUIT
  46.  
  47. c)
  48. HELO student.pl
  49. MAIL FROM: [email protected]
  50. DATA
  51. Treść maila tutaj
  52. .
  53. QUIT
  54.  
  55. d)
  56. HELO student.pl
  57. MAIL FROM: [email protected]
  58. DATA
  59. From: Grupa311A <[email protected]>
  60. To: Grupa312A <[email protected]>
  61. Subject: Mail z naglowkami
  62.  
  63. Zawartosc maila z naglowkami
  64. .
  65. QUIT
  66.  
  67. e) (port: 110)
  68. PASS pass
  69. STAT
  70. LIST
  71. QUIT
  72.  
  73. f)
  74. PASS pass
  75. LIST
  76. TOP 1
  77. TOP 2
  78. TOP 3
  79. QUIT
  80.  
  81. g)
  82. PASS pass
  83. LIST
  84. RETR 10
  85. QUIT
  86.  
  87. h)
  88. PASS pass
  89. LIST
  90. DELE 1
  91. DELE 2
  92. DELE 3
  93. LIST
  94. QUIT
  95.  
  96. -- 3 --
  97. a, b, c, d) (cmd)
  98. OPEN 127.0.0.1 21
  99. LS
  100. SEND G311A.txt G311A_SERWER.txt
  101. RECV G311A_SERWER.txt G311A_PC.txt
  102. LS
  103. QUIT
  104.  
  105. -- 4 --
  106. a) (putty - 127.0.0.1:21)
  107. USER admin
  108. PASS pass
  109. PASV (127, 0, 0, 1, 233, 251) --> 233*256+251 -- port, otwieramy drugi terminal z tym portem
  110. LIST
  111. MKD TMP
  112. RETR TEST_FILE.txt
Advertisement
Add Comment
Please, Sign In to add comment