swisskyrepo / SSRFmap

Automatic SSRF fuzzer and exploitation tool
MIT License
2.99k stars 521 forks source link

Error parameter not recognized in JSON body request #37

Closed slicingmelon closed 5 months ago

slicingmelon commented 3 years ago

Hi,

I have the following request saved from burp to a file: image

And I am running the tool as follows: python3 ssrfmap.py -r /home/user/Desktop/ssrfmap2.txt -p file_url -m portscan --ssl

I get the following error: [ERROR]:No injection point found ! (use -p)

For some reason, it cannot parse parameter from the request file.

danielserbu commented 1 year ago

Hi, I encountered the same problem and I solved it by properly formatting the JSON inside the request. Alongside the error you posted, I also had "[WARNING]:Bad Format or Raw data !" Solution: Make sure to have the JSON string in one single line like: {"file_url": "https://mylovelyurly.com/imagepng", "some_other_param": "ok"} Same as in the example https://github.com/swisskyrepo/SSRFmap/blob/master/data/request2.txt