Skip to content

Commit 0ccf3d6

Browse files
authored
Re-added first-hit from earlier pull request
Added first-hit back into the codebase as it was added into the application after this pr.
1 parent 5373e3e commit 0ccf3d6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/input.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def setup_parser():
4646
help='Ignore content lengths of specificed amount (default 0).'
4747
)
4848

49+
parser.add_argument(
50+
'--first-hit', dest='first_hit', action='store_true', default=False,
51+
help='Return first successful result. Only use in scenarios where you are sure no catch-all is configured (such as a CTF).'
52+
)
53+
4954
parser.add_argument(
5055
'--unique-depth', dest='unique_depth', type=int, default=1,
5156
help='Show likely matches of page content that is found x times (default 1).'
@@ -103,4 +108,4 @@ def setup_parser():
103108
help='Specify a user-agent to use for scans'
104109
)
105110

106-
return parser
111+
return parser

0 commit comments

Comments
 (0)