2
0

test116 848 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. EPRT
  6. PORT
  7. FAILURE
  8. EPRT refused
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. REPLY EPRT 500 we don't like EPRT now
  15. REPLY PORT 314 bluah you f00l!
  16. </servercmd>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. ftp
  22. </server>
  23. # EPRT is only sent when IPv6 is enabled
  24. <features>
  25. ipv6
  26. </features>
  27. <name>
  28. FTP download, failed PORT
  29. </name>
  30. <command>
  31. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P 1.2.3.4
  32. </command>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <errorcode>
  37. 30
  38. </errorcode>
  39. # Strip the port number but leave the rest
  40. <strippart>
  41. s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/
  42. s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/
  43. </strippart>
  44. <protocol>
  45. USER anonymous
  46. PASS ftp@example.com
  47. PWD
  48. EPRT |1|1.2.3.4|
  49. PORT 1,2,3,4,
  50. QUIT
  51. </protocol>
  52. </verify>
  53. </testcase>