1<testcase> 2# Server-side 3<reply> 4# When doing LIST, we get the default list output hard-coded in the test 5# FTP server 6<datacheck> 7total 20 8drwxr-xr-x 8 98 98 512 Oct 22 13:06 . 9drwxr-xr-x 8 98 98 512 Oct 22 13:06 .. 10drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT 11-r--r--r-- 1 0 1 35 Jul 16 1996 README 12lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin 13dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev 14drwxrwxrwx 2 98 98 512 May 29 16:04 download.html 15dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc 16drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub 17dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr 18</datacheck> 19<servercmd> 20SLOWDOWN 21</servercmd> 22</reply> 23 24# Client-side 25<client> 26<server> 27ftp 28</server> 29 <name> 30FTP dir list, PORT with specified IP and slow response 31 </name> 32 <command> 33ftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP 34</command> 35</client> 36 37# Verify data after the test has been "shot" 38<verify> 39# Strip all valid kinds of PORT and EPRT that curl can send 40<strip> 41^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 42^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 43</strip> 44<protocol> 45USER anonymous 46PASS ftp@example.com 47PWD 48PORT 127,0,0,1,243,212 49TYPE A 50LIST 51QUIT 52</protocol> 53</verify> 54</testcase> 55