claustro
(Andrea)
1
Hi guys ,
I am trying to activate and deactivate my alarm using a post command that I sniffed with wireshark
The syntax is this
curl -i -X POST \
-H "Content-Type:application/x-www-form-urlencoded" \
-d "tk=mysecrettoken \
-d "mod=sce" \
-d "par=now" \
-d "qindex=0" \
'http://192.168.0.92/cgi-bin/web.cgi'
Or this one
http://192.168.0.92/cgi-bin/web.cgi?tk=mysecreetcode&mod=do_sce&par=4&qindex=0
I tried to follow some tutorial but I am missing some basic knowledge to follow them .
Can someone point me in the right direction?
Thank you
Spiro
2
Perhaps along the lines of below. May not need -k or -s. Don’t know what you have already tried.
command_line:
- switch:
name: whatever
command_on: 'curl -X POST -k -s "http://192.168.0.92/cgi-bin/web.cgi?tk=mysecreetcode&mod=do_sce&par=4&qindex=0"'
claustro
(Andrea)
3
Thank you very much for answering you I mannaged to accomplish my need using your suggestion and also using a shell
alarm_totale: curl -i -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "tk=token" -d "mod=do_sce" -d "par=0" -d "qindex=0" 'http://192.168.0.92/cgi-bin/web.cgi?'
Thank you!