Issue: NO-NAME-BRAND IPCAM PTZ camera used by an all-volunteer security team who continually keep forgetting to put the camera back in its home position
Looking to use an autohotkey process to kick this camera back to its home position every 5 to 15 minutes.
Using Wireshark I have determined that the Web Interface sends the following CGI command
http://<ipaddress>.<port>/web/cgi-bin/hi3510/param.cgi?cmd=preset&-status=1&-number=1
Tried sending this CGI command using curl in a BAT file but expect that this fails because the camera requires authentication not present in this string
Wireshark provides some details as to how the web interface authentication is being done using GET HTTP/1.1 but not following how to include this in a one-line CGI Command
GET / HTTP/1.1
GET /web/index.html HTTP/1.1
Severity level: Chat
Group: Sequence
Host: <ipaddress>:<port>
Connection: keep-alive
Cache-Control: max-age=0
Authorization: Basic <some encrypted code>=
Credentials: <user>:<passwd>
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
If-None-Match: "59a47afb.1311"
If-Modified-Since: Mon, 28 Aug 2017 13:20:11 DST
Some CGI manuals suggest the credentials can be included in the string as in &-usr=<user>&-pw=<password>
Can anyone share some Examples of how this might work?
This camera is on a public network and are not concerned about its overall security which is why it is a cheap no-name-brand just used to help our all-volunteer security team see out on extreme weather days.
Thanks in advance