Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Jun 9, 2023

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from RetroPackets June 9, 2023 22:06
Copy link
Author

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to GitHub API limits, only the first 60 comments can be shown.

def parser_error(self):
banner()
print("Usage: python " + sys.argv[0] + " [Options] use -h for help")
print(f"Usage: python {sys.argv[0]} [Options] use -h for help")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function parser_error refactored with the following changes:

parser.add_argument('-o', '--output', required=False)
args = parser.parse_args()
return args
return parser.parse_args()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function parse_args refactored with the following changes:

Comment on lines -70 to +69
if (url == []):
if not url:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function urlExtract refactored with the following changes:

Comment on lines -105 to +119
if(args.dorkfile):
if args.dorkfile:
with open(dorks) as f:
while True:
line = f.readline()
if not line:
if not (line := f.readline()):
break
else:
driver = helium.start_firefox(headless=False)
go_to('https://www.google.com/search?q=site:doxbin.com | site:instagram.com | site:facebook.com | site:youtube.com | site:zerobin.net | site:pastebin.com | site:skidbin.net | site:hastebin.com | site:twitter.com | site:linkedin.com | site:pinterest.com | site:tumblr.com | site:snapchat.com | site:reddit.com | site:github.com | site:gitlab.com | site:pornhub.com | site:whatsapp.com \ site:tiktok.com "' + test +'"')
input_(line)
time.sleep(5)
flow()
driver = helium.start_firefox(headless=False)
go_to('https://www.google.com/search?q=site:doxbin.com | site:instagram.com | site:facebook.com | site:youtube.com | site:zerobin.net | site:pastebin.com | site:skidbin.net | site:hastebin.com | site:twitter.com | site:linkedin.com | site:pinterest.com | site:tumblr.com | site:snapchat.com | site:reddit.com | site:github.com | site:gitlab.com | site:pornhub.com | site:whatsapp.com \ site:tiktok.com "' + test +'"')
input_(line)
time.sleep(5)
flow()

else:
line = args.dork
driver = helium.start_firefox(headless=False)
time.sleep(5)
go_to('https://www.google.com/search?q="' + test + '"')
go_to(f'https://www.google.com/search?q="{test}"')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function exechaha refactored with the following changes:

Comment on lines -133 to +136
if(args.output):
file1 = open(args.output+'.txt', 'w')
for i in clean(final):
file1.write(i.strip()+'\n')
file1.close()
if args.output:
with open(f'{args.output}.txt', 'w') as file1:
for i in clean(final):
file1.write(i.strip()+'\n')
else:
for i in clean(final):
print(f"{Fore.YELLOW}[{Fore.GREEN}ϟ{Fore.YELLOW}] {Fore.BLUE}" + i)
print(f"{Fore.YELLOW}[{Fore.GREEN}ϟ{Fore.YELLOW}] {Fore.BLUE}{i}")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function main refactored with the following changes:

Comment on lines -24 to +28
print(Fore.WHITE+'# Commands')
print('python geo-recon.py --help or -h (Display help)')
print('python geo-recon.py 138.121.128.19 --nmap or -n (Nmap standard use)')
print('python geo-recon.py 138.121.128.19 (Standard use, infos about IP)')
print('python geo-recon.py --commands or -c (Display commands availables )')
print(f'{Fore.WHITE}# Commands')
print('python geo-recon.py --help or -h (Display help)')
print('python geo-recon.py 138.121.128.19 --nmap or -n (Nmap standard use)')
print('python geo-recon.py 138.121.128.19 (Standard use, infos about IP)')
print('python geo-recon.py --commands or -c (Display commands availables )')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function listCommand refactored with the following changes:

Comment on lines -8 to +13
r = requests.get('http://ip-api.com/json/'+syA1)
r = requests.get(f'http://ip-api.com/json/{syA1}')
response = json.loads(r.text)

#Iterate the data, filter & print ( data for specific fields
#print ( sys.argv[1] )
print ( Fore.WHITE + "Country: "+ response["country"])
#print ( sys.argv[1] )
print(f"{Fore.WHITE}Country: " + response["country"])
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function getGeo refactored with the following changes:

response = json.loads(r.text)
ip = (response["ip"])
return ip
return response["ip"]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function myIp refactored with the following changes:

Comment on lines -27 to +28
'FullName': str(FullName)+" / "+str(data['entry'][0]["profileUrl"]),
'FullName': f"{str(FullName)} / "
+ str(data['entry'][0]["profileUrl"])
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function gravatar refactored with the following changes:

Comment on lines -31 to +34
if rep["available"]:
out.append({"name": name,"domain":domain,"method":method,"frequent_rate_limit":frequent_rate_limit,
"rateLimit": False,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None})
elif rep["message"]=="You cannot use this email address.":
if (
rep["available"]
or rep["message"] == "You cannot use this email address."
):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function voxmedia refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant