Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ optional arguments:
-x, --exit_early Exit scan on first finding
-m METHOD, --method METHOD
HTTP method to use (e.g GET, POST) Default: POST
-e ENDPOINT, --endpoint ENDPOINT
Add a endpoint to the end of the input url
-l LOG, --log LOG Specify a log file
-q, --quiet Quiet mode will only log issues found
-t TIMEOUT, --timeout TIMEOUT
Expand All @@ -74,6 +76,8 @@ Use -x/--exit_early to exit the scan of a given server when a potential issue is

Use -m/--method \<method> to specify a different HTTP verb from POST (i.e GET/PUT/PATCH/OPTIONS/CONNECT/TRACE/DELETE/HEAD/etc...)

Use -e/--endpoint \<endpoint> to append a endpoint to the end of the input url

Use -l/--log \<file> to write output to file as well as stdout

Use -q/--quiet reduce verbosity and only log issues found
Expand Down
10 changes: 9 additions & 1 deletion smuggler.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def print_info(msg, file_handle=None):
Parser.add_argument('-v', '--vhost', default="", help="Specify a virtual host")
Parser.add_argument('-x', '--exit_early', action='store_true',help="Exit scan on first finding")
Parser.add_argument('-m', '--method', default="POST", help="HTTP method to use (e.g GET, POST) Default: POST")
Parser.add_argument('-e', '--endpoint', help="Add a endpoint to the end of the input url")
Parser.add_argument('-l', '--log', help="Specify a log file")
Parser.add_argument('-q', '--quiet', action='store_true', help="Quiet mode will only log issues found")
Parser.add_argument('-t', '--timeout', default=5.0, help="Socket timeout value Default: 5")
Expand Down Expand Up @@ -438,10 +439,17 @@ def print_info(msg, file_handle=None):
server[0] = "https://" + server[0]

params = process_uri(server[0])
if Args.endpoint != None:
if Args.endpoint[0] != "/":
endpoint = "/"+Args.endpoint
else:
endpoint = Args.endpoint
else:
endpoint = params[2]

method = server[1].upper()
host = params[0]
port = params[1]
endpoint = params[2]
SSLFlagval = params[3]
configfile = Args.configfile

Expand Down