Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Sanchez authored and Miguel Sanchez committed Dec 14, 2022
1 parent 19976d1 commit 94ab79e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions utils/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def scan(url: str) -> str:
if page_links not in duplicate_links:
links_l.append(page_links)
for link in links_l:
with open("output/spider.txt", "a") as f:
f.writelines(link)
try:
with open("output/spider.txt", "w") as f:
f.writelines(link)
except PermissionError:
pass

5 changes: 3 additions & 2 deletions utils/loginscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ async def get_responses(client, link_paths: str):
found_adminlinks = []
r = await client.get(link_paths)
if r.status_code == 200 and "404" not in r.text and "Page Not Found" not in r.text:
found_adminlinks.append(link_paths)
print(f"{Fore.MAGENTA}[+] {Fore.CYAN}-{Fore.WHITE} Login: {Fore.GREEN} {', '.join(map(str,found_adminlinks))}")
found_adminlinks.append(link_paths + "\n")
with open("output/loginpages.txt") as f:
f.writelines(found_adminlinks)
except RuntimeError:
pass
except ValueError:
Expand Down
2 changes: 2 additions & 0 deletions utils/osdetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ def osdetection_scan(url: str):
print(f"{Fore.MAGENTA}[+] {Fore.CYAN}-{Fore.WHITE} OS: {Fore.RED} Not Detected!")
print(f"{Fore.MAGENTA}[+] {Fore.CYAN}-{Fore.WHITE} OS: {Fore.GREEN} {os}")
except scapy.error.Scapy_Exception:
pass
except PermissionError:
pass

0 comments on commit 94ab79e

Please sign in to comment.