Skip to content

Commit

Permalink
rstrip lines when reading file input
Browse files Browse the repository at this point in the history
  • Loading branch information
mazen160 committed Dec 13, 2021
1 parent 1be1939 commit 5478df2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions log4j-scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def scan_url(url, callback_host):
if args.waf_bypass_payloads:
payloads.extend(generate_waf_bypass_payloads(f'{parsed_url["host"]}.{callback_host}', random_string))
for payload in payloads:
print(url, get_fuzzing_headers(payload) )
cprint(f"[•] URL: {url} | PAYLOAD: {payload}", "cyan")
if args.request_type.upper() == "GET" or args.run_all_tests:
try:
Expand Down Expand Up @@ -293,6 +294,7 @@ def main():
for i in f.readlines():
if i == "" or i.startswith("#"):
continue
i = i.rstrip()
urls.append(i)

dns_callback_host = ""
Expand Down

0 comments on commit 5478df2

Please sign in to comment.