PDA

View Full Version : http eventtrigger payloads



yonu
October 10th, 2015, 09:57 PM
ok this maysound stupid but I can't seem to get a payload to pass using the triggerevent.ihtml here is the command I am using for testing


curl http://192.168.1.112:80/gir/triggerEvent.lhtml?es=EventString&ed=18&km=KeyMod& pld1=payload1&pld2=payload2

any thoughts,

Yonu

Ron
October 11th, 2015, 09:49 AM
not sure if the forum did that but there is a space in the URL (which shouldn't be there) and km should be numerical

yonu
October 11th, 2015, 10:03 AM
ok the space was a typo when i retyped it in the post I tried changing km to a 0 but I still get nothing no matter what I put in the payloads.

any other thoughts?
yonu

Ron
October 11th, 2015, 10:05 AM
Do you get an event at all or just no payloads?

yonu
October 11th, 2015, 10:07 AM
yeah the even itself comes through but nothing else after eventstring

Ron
October 11th, 2015, 10:17 AM
I tried doing http://localhost/gir/triggerEvent.lhtml?ed=23&es=hello&pld1=asdf&pld2=qwer from a browser and that works... trying curl.

Ron
October 11th, 2015, 10:20 AM
interestingly when I use Curl ( on Windows mind you ) the ampersands are being interpreted by Windows as end-of-command ( maybe not unlike unix )



'es' is not recognized as an internal or external command,
operable program or batch file.
'pld1' is not recognized as an internal or external command,
operable program or batch file.
'pld2' is not recognized as an internal or external command,
operable program or batch file.


Changing the command to



C:\Tools\curl>curl "http://localhost/gir/triggerEvent.lhtml?ed=23&es=hello&pld1=asdf&pld2=qwer"


does the trick.

yonu
October 11th, 2015, 01:04 PM
the quotes did it never thought about having to quote them

Yonu