MCPcopy Create free account
hub / github.com/Y0-kan/Log4jShell-Scan / get_fuzzing_headers

Function get_fuzzing_headers

log4j-scan.py:128–141  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

126 proxies = {"http": args.proxy, "https": args.proxy}
127
128def get_fuzzing_headers(payload):
129 fuzzing_headers = {}
130 fuzzing_headers.update(default_headers)
131 with open(args.headers_file, "r") as f:
132 for i in f.readlines():
133 i = i.strip()
134 if i == "" or i.startswith("#"):
135 continue
136 fuzzing_headers.update({i: payload})
137 if args.exclude_user_agent_fuzzing:
138 fuzzing_headers["User-Agent"] = default_headers["User-Agent"]
139
140 fuzzing_headers["Referer"] = f'https://{fuzzing_headers["Referer"]}'
141 return fuzzing_headers
142
143
144def get_fuzzing_post_data(payload):

Callers 1

scan_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected