Skip to content

Commit

Permalink
clean up debug
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Oct 8, 2024
1 parent b1fabdd commit 2f60624
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bbot/modules/lightfuzz_submodules/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def send_probe(self, probe):
probe = self.probe_value_outgoing(probe)
getparams = {self.event.data["name"]: probe}
url = self.lightfuzz.helpers.add_get_params(self.event.data["url"], getparams, encode=False).geturl()
self.lightfuzz.critical(f"lightfuzz sending probe with URL: {url}")
self.lightfuzz.debug(f"lightfuzz sending probe with URL: {url}")
r = await self.lightfuzz.helpers.request(method="GET", url=url, allow_redirects=False, retries=2, timeout=10)
if r:
return r.text
Expand Down Expand Up @@ -193,15 +193,13 @@ def probe_value_incoming(self, populate_empty=True):
probe_value = self.lightfuzz.helpers.rand_string(8, numeric_only=True)
self.lightfuzz.debug(f"probe_value_incoming (before modification): {probe_value}")
envelopes_instance = getattr(self.event, "envelopes", None)
self.lightfuzz.hugesuccess(envelopes_instance)
probe_value = envelopes_instance.remove_envelopes(probe_value)
self.lightfuzz.debug(f"probe_value_incoming (after modification): {probe_value}")
return probe_value

def probe_value_outgoing(self, outgoing_probe_value):
self.lightfuzz.debug(f"probe_value_outgoing (before modification): {outgoing_probe_value}")
envelopes_instance = getattr(self.event, "envelopes", None)
self.lightfuzz.hugesuccess(envelopes_instance)
outgoing_probe_value = envelopes_instance.add_envelopes(outgoing_probe_value)
self.lightfuzz.debug(f"probe_value_outgoing (after modification): {outgoing_probe_value}")
return outgoing_probe_value

0 comments on commit 2f60624

Please sign in to comment.