Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
fixup: Format Python code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jun 21, 2022
1 parent 7293198 commit 2b5e238
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scant3r/core/module_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def run(
opts = user_opts.copy()
opts["url"] = host
for _, current_module in self.modules.items():
loaded_mod = current_module.Main(http_opts,**opts)
loaded_mod = current_module.Main(http_opts, **opts)
if loaded_mod.tag != "recon":
continue
log.debug(f"Trynig to Start {loaded_mod}")
Expand Down
6 changes: 3 additions & 3 deletions scant3r/modules/firebase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@


class Main(Scan):
def __init__(self,http: httpSender, url: str,convert_body: bool = False, **_):
def __init__(self, http: httpSender, url: str, convert_body: bool = False, **_):
self.opts = {
"url": url,
}
super().__init__(http,"recon",convert_body)
}
super().__init__(http, "recon", convert_body)

def scan(self, target_host: str) -> Dict[str, str]:
firebase = FIREBASE_URL % target_host
Expand Down
16 changes: 12 additions & 4 deletions scant3r/modules/req_callback/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,29 @@


class Main(Scan):
def __init__(self,http: httpSender, methods: List[str], url: str,callback_time: int ,convert_body: bool = False, **_):
def __init__(
self,
http: httpSender,
methods: List[str],
url: str,
callback_time: int,
convert_body: bool = False,
**_,
):
self.opts = {
"url": url,
"methods": methods,
"callback_time": callback_time,
}
super().__init__(http,"scanner",convert_body)
}
super().__init__(http, "scanner", convert_body)

def start(self) -> Dict[str, str]:
report = {}
for method in self.opts["methods"]:
callback = Interactsh()
for protocole in proto:
new_url = insert_to_params_urls(
self.opts["url"], f"{protocole}:https://{callback.domain}",True
self.opts["url"], f"{protocole}:https://{callback.domain}", True
)
response = self.send_request(method, new_url)
if response.__class__.__name__ == "Response":
Expand Down
13 changes: 10 additions & 3 deletions scant3r/modules/ssti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@


class Main(Scan):
def __init__(self,http: httpSender, methods: List[str], url: str,convert_body: bool = False, **_):
def __init__(
self,
http: httpSender,
methods: List[str],
url: str,
convert_body: bool = False,
**_,
):
self.opts = {
"url": url,
"methods": methods,
}
super().__init__(http,"scanner",convert_body)
}
super().__init__(http, "scanner", convert_body)

def start(self) -> Dict[str, str]:
report = {}
Expand Down
13 changes: 10 additions & 3 deletions scant3r/modules/xss/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@


class Main(Scan):
def __init__(self,http: httpSender, methods: List[str], url: str,convert_body: bool = False, **_):
def __init__(
self,
http: httpSender,
methods: List[str],
url: str,
convert_body: bool = False,
**_,
):
self.opts = {
"url": url,
"methods": methods,
}
super().__init__(http,"scanner",convert_body)
}
super().__init__(http, "scanner", convert_body)

def start(self) -> Dict[str, str]:
report = {
Expand Down

0 comments on commit 2b5e238

Please sign in to comment.