Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bbot/core/helpers/simhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ def __init__(self, bits=64):
@staticmethod
def compute_simhash(text, bits=64, truncate=True, normalization_filter=None):
"""
Static method for computing SimHash that can be used with multiprocessing.
Static method for computing a SimHash fingerprint.

This method is designed to be used with run_in_executor_mp() for CPU-intensive
SimHash computations across multiple processes.
Designed to be called via run_in_executor_cpu(): the work is short and the
input is truncated to ~3KB inside the helper, so a thread pool avoids the
pickle/spawn overhead of a process pool.

Args:
text (str): The text to hash
Expand Down
4 changes: 0 additions & 4 deletions bbot/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ class WordlistError(BBOTError):
pass


class CurlError(BBOTError):
pass


class PresetNotFoundError(BBOTError):
pass

Expand Down
3 changes: 1 addition & 2 deletions bbot/modules/generic_ssrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ async def test(self, event):
post_data_list = [(subdomain_tag, post_data), (subdomain_tag_lower, post_data_lower)]

for tag, pd in post_data_list:
# Send raw body (not URL-encoded) so payload URLs like http://... reach the
# server literally — matching old curl -d behavior.
# Send raw body (not URL-encoded) so payload URLs like http://... reach the server literally.
raw_body = "&".join(f"{k}={v}" for k, v in pd.items())
r = await self.generic_ssrf.helpers.request(url=test_url, method="POST", body=raw_body)
if r:
Expand Down
Loading
Loading