诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
838 B

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