Skip to content

Commit

Permalink
switching to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Jan 21, 2025
1 parent 9103acf commit 87724ca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bbot/modules/output/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def report(self):
for param, count in sorted_parameters:
if include_count:
# Include the count of each parameter in the output
self.file.write(f"{count}:{param}\n")
self.file.write(f"{count}\t{param}\n")
else:
# Only include the parameter name, effectively deduplicating by name
self.file.write(f"{param}\n")
Expand Down
38 changes: 19 additions & 19 deletions bbot/test/test_step_2/module_tests/test_module_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ def check(self, module_test, events):
parameters_file = module_test.scan.home / "parameters.txt"
with open(parameters_file) as f:
data = f.read()
assert "2:q" in data
assert "1:age" in data
assert "1:fit" in data
assert "1:id" in data
assert "1:jqueryget" in data
assert "1:jquerypost" in data
assert "1:size" in data
assert "2\tq" in data
assert "1\tage" in data
assert "1\tfit" in data
assert "1\tid" in data
assert "1\tjqueryget" in data
assert "1\tjquerypost" in data
assert "1\tsize" in data

# after lightfuzz is merged, these will be the correct parameters to check

# assert "3:test" in data
# assert "2:blog-post-author-display" in data
# assert "2:csrf" in data
# assert "2:q2" in data
# assert "1:age" in data
# assert "1:fit" in data
# assert "1:id" in data
# assert "1:jqueryget" in data
# assert "1:jquerypost" in data
# assert "1:q1" in data
# assert "1:q3" in data
# assert "1:size" in data
# assert "3\ttest" in data
# assert "2\tblog-post-author-display" in data
# assert "2\tcsrf" in data
# assert "2\tq2" in data
# assert "1\tage" in data
# assert "1\tfit" in data
# assert "1\tid" in data
# assert "1\tjqueryget" in data
# assert "1\tjquerypost" in data
# assert "1\tq1" in data
# assert "1\tq3" in data
# assert "1\tsize" in data

0 comments on commit 87724ca

Please sign in to comment.