Access to the screenshot without login and password?

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
I'm not aware of a way to bypass the login, but you could base64 encode the user:password and amend it to the end of the link:
http://IP:PORT/ISAPI/streaming/channels/101/picture?auth=YWRtaW46MTIzNDU=
The "?auth=YWRtaW46MTIzNDU=" is the encoded string for user:admin with password:12345
This should automate the login. Not 100% sure this is what you are aiming for, but hopefully it's a lead.
upload_2019-10-8_23-33-14.png
 

H@MST3R

n3wb
Joined
Oct 6, 2019
Messages
4
Reaction score
0
Location
Poland
Thank you Steward for a great way, but it doesn't work.
... still requesting login and password :(
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,699
Reaction score
38,856
Location
Alabama
Thank you Steward for a great way, but it doesn't work.
... still requesting login and password :(
Many IP cams have in their settings, under "users", a checkbox for "anonymous user" so that login credentials are not required but I would not recommend it unless you can limit the cam to LAN access only.
 

H@MST3R

n3wb
Joined
Oct 6, 2019
Messages
4
Reaction score
0
Location
Poland
Now, the current Hikvision software does't have this option implemented :(
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
I managed to automate the login with a tweak to Firefox.
Try this in Firefox:
1. Type about:config in the address bar and press Enter.
2. Click "I accept the risk!" warning.
2. Right-click in the empty space and select New>Integer.
3. Enter the preference name as: network.http.phishy-userpass-length and 254 as the integer value.

Paste your amended link in the address bar:
http://admin:12345@192.168.1.64/ISAPI/streaming/channels/101/picture

This works for me. Not sure if this is possible with Chrome.
This tweak potentially opens up a phishing security risk. For example, if your default browser is Firefox and you click a phishing link, it probably won’t prompt you to confirm the action. Some due-diligence is required.
Keep us posted.
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
Forgot to mention, if you need to remove the setting right-click it and select reset. Close and re-open FF to complete the removal.
upload_2019-10-10_22-58-2.png
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
Ah, good to know.
In my testing with Hikvision (recent firmware) no anonymous/accounts with blank passwords are allowed. "<subStatusCode>riskPassword</subStatusCode>" is returned when trying to workaround it. The multiple browser aspect is another hurdle.

Overly complicated suggestion - You could setup a web server, create a web page that uses the WebSDK from Hikvision that fetches an image every X seconds or the live stream.
From there you could point METEO to the web server URL instead of the camera for the image using some JavaScript. Again, I'm clutching at straws here.

You could drop Hikvision for Vivotek cameras if you get fed-up, They allow anonymous login ;)
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,699
Reaction score
38,856
Location
Alabama
Overly complicated suggestion - You could setup a web server, create a web page that uses the WebSDK from Hikvision that fetches an image every X seconds or the live stream.
From there you could point METEO to the web server URL instead of the camera for the image using some JavaScript. Again, I'm clutching at straws here.
Pretty close to what I was thinking as well: have the cam FTP an image to a folder on a web site every so often, embed that <IMG SRC> with URL in the web page or have the METEO site fetch it.

You could drop Hikvision for Vivotek cameras if you get fed-up, They allow anonymous login ;)
I have a couple of Amcrests (re-branded Dahuas) that do also, so perhaps Dahua does, too.
 
Top