Skip to content

Trues in ifs removed #17

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
14 changes: 7 additions & 7 deletions dorknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
for line in ins:
dork_list.append(line)

if args.verbose == True:
if args.verbose:
print "[" + t.magenta("~") + "]" + line

except IOError as e:
print "\n[" + t.red("!") + "]Could not read dork list"
if args.verbose == True:
if args.verbose:
print "\nAn IO Error was raised with the following error message: "
print "\n %s" % (e)

Expand Down Expand Up @@ -108,13 +108,13 @@ def proxy(PROXY_HOST,PROXY_PORT):
def search():
link_list = []

if set_proxy == True:
if set_proxy:
# the --nogui option doesn't seem to want to play nice with
# The way in which i configure the proxy, if the user chose
# to employ one
driver = proxy(IP, PORT)
#elif args.nogui == True:
# driver = webdriver.Firefox(firefox_options=options)
# elif args.nogui == True:
# driver = webdriver.Firefox(firefox_options=options)
else:
driver = webdriver.Firefox()

Expand All @@ -123,7 +123,7 @@ def search():
driver.get("http://google.com")
except Exception as e:
print "\n[" + t.red("!") + "]A connection could not be established"
if args.verbose == True:
if args.verbose:
print "An error was raised with the following error message: "
print "\n %s" % (e)
break
Expand Down Expand Up @@ -185,7 +185,7 @@ def search():

outfile.close()

if args.verbose == True:
if args.verbose:
with open("results.log", "r") as infile:
for line in infile:
print "[" + t.magenta("~") + "]" + line
Expand Down