Skip to content

Commit c7894f1

Browse files
committed
Split long lines and add comments
1 parent 37bf688 commit c7894f1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/auxiliary/scanner/wproxy/att_open_proxy.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,17 @@
3232

3333

3434
def report_wproxy(target, response):
35+
# We don't use the response here, but if we were a banner scraper we could
36+
# print or report it
3537
module.report_vuln(target[0], 'wproxy', port=target[0])
3638

3739

3840
if __name__ == "__main__":
39-
module.run(metadata, sonar.make_study(payload = b'\x2a\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00', pattern = b'^\\*\xce.{3}$', onmatch = report_wproxy))
41+
study = sonar.make_study(
42+
# Payload and pattern are given and applied straight to the socket, so
43+
# they need to be bytes-like
44+
payload = b'\x2a\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00',
45+
pattern = b'^\\*\xce.{3}$',
46+
onmatch = report_wproxy
47+
)
48+
module.run(metadata, study)

0 commit comments

Comments
 (0)