Skip to content

Commit

Permalink
Removed more unnecessary time sleeps
Browse files Browse the repository at this point in the history
  • Loading branch information
vil committed Jan 26, 2025
1 parent 0ad583d commit 86c01b7
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 22 deletions.
9 changes: 0 additions & 9 deletions .fleet/run.json

This file was deleted.

1 change: 0 additions & 1 deletion h4xtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def main() -> None:

while True:
print_banner()
time.sleep(1)
print_menu()
user_input = printer.inp(f"Tool to execute : \t")

Expand Down
1 change: 0 additions & 1 deletion utils/email_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Holehe:
@timer.timer
def __init__(self, email) -> None:
printer.info(f"Trying to find sites where {Style.BRIGHT}{email}{Style.RESET_ALL} is used, thanks to holehe.")
time.sleep(1)
try:
result = subprocess.run(["holehe", email], capture_output=True, text=True, check=True)
output = self._format_output(result.stdout)
Expand Down
3 changes: 1 addition & 2 deletions utils/leak_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def __init__(self, target) -> None:
response.raise_for_status()
data = response.json()

printer.info(f"Trying to find information for {Style.BRIGHT}{target}{Style.RESET_ALL}...")
time.sleep(1)
printer.info(f"Trying to find information for the {target_type} {Style.BRIGHT}{target}{Style.RESET_ALL}...")

for key, value in data.items():
if key == "data":
Expand Down
2 changes: 0 additions & 2 deletions utils/local_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Scan:
def __init__(self) -> None:
if os.name == "nt":
printer.info("Windows system detected..!\n")
time.sleep(1)
try:
user_info_list = []

Expand Down Expand Up @@ -71,7 +70,6 @@ def __init__(self) -> None:
import pwd
import grp
printer.info("Linux system detected..!\n")
time.sleep(1)
try:
user_info_list = []

Expand Down
1 change: 0 additions & 1 deletion utils/web_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def __init__(self, url) -> None:
printer.info(f"Trying to scrape links from {Style.BRIGHT}{self.url}{Style.RESET_ALL} and its linked pages as well...")
printer.warning("This may take a while depending on the sizes of the sites.")

time.sleep(0.5)
asyncio.run(self.scrape_links(self.url, recursive=True))
printer.success(f"Scraping linked pages completed..!")
else:
Expand Down
1 change: 0 additions & 1 deletion utils/websearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def parse_and_print_results(self, response_text, query) -> None:
else:
printer.info(f"Searching for {Style.BRIGHT}{query}{Style.RESET_ALL} [{headers['User-Agent']}]")

time.sleep(1)
for result in results:
self.print_search_result(result)

Expand Down
1 change: 0 additions & 1 deletion utils/whois_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def __init__(self, domain) -> None:
try:
q = whoisdomain.query(domain)
printer.info(f"Trying to find the information of {Style.BRIGHT}{domain}{Style.RESET_ALL}...")
time.sleep(1)
for key in q.__dict__:
printer.success(key, "-", q.__dict__[key])
except Exception as e:
Expand Down
2 changes: 0 additions & 2 deletions utils/wifi_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def __init__(self) -> None:
@staticmethod
def scan_windows() -> None:
printer.info(f"Windows system detected... Performing {Style.BRIGHT}netsh{Style.RESET_ALL} scan...")
time.sleep(1)
try:
output = subprocess.check_output(["netsh", "wlan", "show", "networks"])
Scan.parse_output(output.decode("utf-8"), "windows")
Expand All @@ -47,7 +46,6 @@ def scan_windows() -> None:
@staticmethod
def scan_linux() -> None:
printer.info(f"Linux system detected... Performing {Style.BRIGHT}nmcli{Style.RESET_ALL} scan...")
time.sleep(1)
try:
output = subprocess.check_output(["nmcli", "dev", "wifi"])
Scan.parse_output(output.decode("utf-8"), "linux")
Expand Down
2 changes: 0 additions & 2 deletions utils/wifi_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Scan:
def __init__(self) -> None:
if os.name == "nt":
printer.info("Windows system detected..!\n")
time.sleep(1)
try:
output = subprocess.check_output("netsh wlan show profiles", shell=True).decode("utf-8")
profile_names = [line.split(":")[1].strip() for line in output.splitlines() if
Expand Down Expand Up @@ -55,7 +54,6 @@ def __init__(self) -> None:

else:
printer.info("Linux system detected..!\n")
time.sleep(1)
try:
output = subprocess.check_output(['nmcli', '-f', 'NAME,UUID', 'connection', 'show'])
connections = re.findall(r'(\S+)\s+([0-9a-f-]{36})', output.decode())
Expand Down

0 comments on commit 86c01b7

Please sign in to comment.