cURL Command Enable SSH Hikvision IP Camera/NVR

IPCAMPR34

Young grasshopper
Joined
Apr 23, 2015
Messages
31
Reaction score
0
I would like to use curl to enable telnet on my Hikvision NVR, I sniffed the traffic using WireShark but I am unable to find the right link to use in the curl command.

Any help?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,963
Reaction score
6,794
Location
Scotland
This might be a starting point, at least for telnet.


8.2.53 /ISAPI/System/Network/telnetd
/ISAPI/System/Network/telnetd
General Resource v2.0
GET
Description It is used to get the configurations of telnet.
Query None
Inbound Data None
Success Return Telnetd
PUT
Description It is used to set the configurations of telnet.
Query None
Inbound Data Telnetd
Success Return ResponseStatus
Notes:
Telnetd XML Block
<Telnetd version=“2.0” xmlns=”http://www.isapi.org/ver20/XMLSchema”>
<enabled> <!-- req, xs:boolean --> </enabled>
</Telnetd>
The developer docs can be downloaded from here : http://www.hikvisioneurope.com/portal/index.php?dir=Integration and Development Materials/03--Protocol/
 

mcx

Pulling my weight
Joined
Mar 26, 2014
Messages
98
Reaction score
102
I would like to use curl to enable telnet on my Hikvision NVR, I sniffed the traffic using WireShark but I am unable to find the right link to use in the curl command.

Any help?
I don't have NVR and my cams are fw 5.1 but this works with them

Code:
curl -T telnet_on.xml http://user:psw@IP:port/ISAPI/System/Network/telnetd
telnet_on.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Telnetd version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>true</enabled>
</Telnetd>
 

IPCAMPR34

Young grasshopper
Joined
Apr 23, 2015
Messages
31
Reaction score
0
I don't have NVR and my cams are fw 5.1 but this works with them

Code:
curl -T telnet_on.xml http://user:psw@IP:port/ISAPI/System/Network/telnetd
telnet_on.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Telnetd version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>true</enabled>
</Telnetd>
THANK YOU SOO MUCH!!! That worked like a charm, thanks for sharing.:)
 
Top