ucFTPd Hikvision DS-7700 strange behavior

Bradnvr

n3wb
Joined
Feb 3, 2018
Messages
26
Reaction score
9
So I've read this thread about passive/active.
FTP service on Hikvision 5.1.6

I stumbled upon this strange behavior on accident. When I successfully login, no matter if i toggle passive/active with the passive command, I usually don't get anything to list, until the third try.

Anyone have any clue why? I'd like to get this working correctly so I can use an FTP client, because obviously the FTP client wont retry the LS command over and over again like me..

reminds me of the saying... "crazy is trying the same thing over and over"

Code:
$ ftp -p 192.168.1.2
Connected to 192.168.1.2.
220 ucftpd(Jul  2 2012-22:13:49) FTP server ready.
Name (192.168.1.2): root
331 Password required for root
Password:

230 User root logged in
Remote system type is UNIX.
Using binary mode to transfer files.

ftp> ls
502 PASV not implemented.
Passive mode refused.

ftp> ls
502 PASV not implemented.
Passive mode refused.

ftp> ls
502 PASV not implemented.
Passive mode refused.

ftp> passive
Passive mode off.

ftp> ls
<ftpd_dbg>: have come to port mode,string:192,168,1,2,229,215

ftp> ls
200 PORT command successful.
<ftpd_dbg>: have come to port mode,string:192,168,1,2,170,221

ftp> ls
200 PORT command successful.
150 Opening BINARY mode data connection for ls
drwxrwxrwx   21 root     root          704 Feb 10 15:43 .
drwxrwxrwx   21 root     root          704 Feb 10 15:43 ..
-rw-r--r--    1 root     root            2 Feb 13 11:21 .sysstat.out
drwxrwxrwx    2 root     root         2048 Nov 14 02:52 bin
drwxr--r--    1 root     root         2048 Feb 10 11:13 dav0
drwxr--r--    1 root     root         2048 Feb 10 11:13 dav1
drwxr--r--    1 root     root         2048 Feb 10 11:17 dav2
drwxrwxrwt    6 root     root         1880 Feb 10 15:00 dev
drwxrwxrwx    4 root     root          704 Feb 12 15:28 etc
drwxr-xr-x    4 root     root            0 Feb 10 14:26 home
drwxrwxrwx    2 root     root          352 May 30 10:38 lib
drwxrwxrwx    3 root     root           96 Feb 12 11:44 mnt
drwxrwxrwx    3 root     root           96 Feb 10 11:23 opt
dr-xr-xr-x  259 root     root            0 Jan  1 00:00 proc
drwxrwxrwx    2 root     root           64 Mar 30 03:08 root
drwxrwxrwx    2 root     root          288 Jul  4 01:56 sbin
drwxrwxrwx    2 root     root           64 Mar 30 03:08 srv
drwxr-xr-x   11 root     root            0 Jan  1 00:00 sys
drwxrwxrwx    2 root     root           64 Mar 30 03:08 tmp
drwxrwxrwx    4 root     root          224 Feb 10 14:14 var
226 Transfer complete.

ftp>
 
Top