microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 284 forks source link

Issue specifying the host address #762

Closed hydroculator closed 1 year ago

hydroculator commented 1 year ago

Description

I'm having difficulty figuring out exactly how and where to specify the host address.

In these examples, the URL has been replaced with

to protect the innocent. "http://" not included. If I used it, I specify it below.

If I put this in the command line: --host <address name> --target_port 443 Then I get this: "400 Bad Request The plain HTTP request was sent to HTTPS port"

If I do this: --host https://<address name> --target_port 443 I get this: "Unknown error: 'Exception Creating Socket: [Errno -2] Name or service not known'"

If I do neither, and specify those in the settings.json file instead, I get:

    "target_ip": "<address name>",
    "target_port": 443,

"400 Bad Request The plain HTTP request was sent to HTTPS port"

and with this:

    "target_ip": "https://<address name>",
    "target_port": 443,

I get: "Unknown error: 'Exception Creating Socket: [Errno -2] Name or service not known'"

I've swapped out

with the IP address and get the same thing...

Any suggestions how to get this to work? Thanks

hydroculator commented 1 year ago

I was using the no_ssl option to prevent a different error. If I removed that and went with disable_cert_validation instead, the connection is made.

IrfanSyed-PSC commented 1 year ago

I am facing the same problem, how did you solve the problem ? Did you use https in the host or not ? and I do not see "disable_cert_validation" anywhere in the options. How do I provide that ?