hikvision-tftpd
hikvision-tftpd copied to clipboard
TFTP option error and odd follow-up packet
Camera sent an option that TFTP server didn't like: blksize: 1400.tsi.e
phil@del:~/Downloads/hik$ sudo ./hikvision_tftpd.py
\Setting block size to 512
Serving 23458645-byte digicap.dav (block size 512, 45818 blocks)
read request options: {'0': '', 'blksize': '1400.tsi.e'}
Traceback (most recent call last):
File "./hikvision_tftpd.py", line 191, in
So I commented-out line 128 and TFTP server transfered file.
NOTE: I have transfered file before without this problem...
phil@del:~/Downloads/hik$ sudo ./hikvision_tftpd.py Setting block size to 512 Serving 23458645-byte digicap.dav (block size 512, 45818 blocks) Sat Feb 10 22:49:00 2024: Replied to magic handshake request. read request options: {'0': '', 'blksize': '1400.tsi.e'} Sat Feb 10 22:49:08 2024: sending options ack Sat Feb 10 22:49:08 2024: 1 / 45818 [ ] Sat Feb 10 22:49:08 2024: 2 / 45818 [ ] ... Sat Feb 10 22:49:36 2024: 45818 / 45818 [#####################################################] Sat Feb 10 22:49:36 2024: done! Sat Feb 10 22:50:03 2024: received unexpected handshake bytes '53574b4807000000000000000000000000000000' from 192.0.0.64:58913
53574b48 is 'SWKH' - a string in dav file.
I don't know if it worked or not... I bricked this camera years ago and thought I'd have another go...
Model: DS-2CD2032F-I Originally with V5.3.0_150513 Flashing IPC_R0_EN_STD_5.4.5_170123.zip