Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GoTor HTTP service #219

Merged
merged 22 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
16 changes: 7 additions & 9 deletions src/modules/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@ def get_robots_txt(target, response):
requests.get(target+"robots.txt")
print(target+"robots.txt")
matches = findall(r'Allow: (.*)|Disallow: (.*)', response.text)
if matches:
for match in matches:
match = ''.join(match)
if '*' not in match:
url = main_url + match
robots.add(url)
for match in matches:
match = ''.join(match)
if '*' not in match:
url = main_url + match
PSNAppz marked this conversation as resolved.
Show resolved Hide resolved
robots.add(url)
PSNAppz marked this conversation as resolved.
Show resolved Hide resolved
cprint("Robots.txt found", 'blue')
print(robots)

Expand All @@ -100,9 +99,8 @@ def get_intel(link, response):
regex = r'''([\w\.-]+s[\w\.-]+\.amazonaws\.com)|([\w\.-]+@[\w\.-]+\.[\.\w]+)'''
KingAkeem marked this conversation as resolved.
Show resolved Hide resolved
matches = findall(regex, response.text)
print("Intel\n--------\n\n")
if matches:
for match in matches:
intel.add(match)
for match in matches:
intel.add(match)


def get_dot_git(target, response):
Expand Down
3 changes: 2 additions & 1 deletion src/torBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def main():
elif args.info:
execute_all(args.url)
else:
link_io.print_tree(args.url, args.depth)
if args.url:
KingAkeem marked this conversation as resolved.
Show resolved Hide resolved
link_io.print_tree(args.url, args.depth)
print("\n\n")


Expand Down