Skip to content

Commit

Permalink
🎉 v0.3 release - minor styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
k4m4 committed Jan 3, 2018
1 parent 44e8f54 commit 6239101
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions onioff.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def create_connection(address, timeout=None, source_address=None):

tor_ip = requests.get(ipcheck_url).text.replace('\n','')
if pure_ip == tor_ip:
nowPrint("\n[-] Unsuccessful Tor connection", True)
nowPrint("[-] Unsuccessful Tor connection", True)
nowPrint("\n[-] System exit", True)
os._exit(1)
else:
Expand Down Expand Up @@ -108,7 +108,7 @@ def checkOnion(onion):
return show

else:
nowPrint("\n[-] Lost Tor connection", True)
nowPrint("[-] Lost Tor connection", True)
nowPrint("\n[-] System exit", True)
os._exit(1)

Expand All @@ -130,15 +130,15 @@ def readFile(file):
q.put(onion)

else:
nowPrint("\n[-] Onion file is empty --> Please enter a valid file", True)
nowPrint("[-] Onion file is empty --> Please enter a valid file", True)
nowPrint("\n[-] System exit", True)
os._exit(1)

q.join()
myFile.close()

except IOError:
nowPrint("\n[-] Invalid onion file --> Please enter a valid file path", True)
nowPrint("[-] Invalid onion file --> Please enter a valid file path", True)
nowPrint("\n[-] System exit", True)
os._exit(1)

Expand Down Expand Up @@ -185,7 +185,7 @@ def main():
print '\nHave a great day! :)'
os._exit(1)
except:
nowPrint("\n[-] Tor offline --> Please make sure Tor is running", True)
nowPrint("[-] Tor offline --> Please make sure Tor is running", True)
nowPrint("\n[-] System exit", True)
os._exit(1)

Expand All @@ -205,7 +205,7 @@ def inspect():

for onion in argv:
if not onion.startswith('http') and not onion.startswith('https'):
nowPrint("\n[-] No onion URL found --> Please enter a valid URL", True)
nowPrint("[-] No onion URL found --> Please enter a valid URL", True)
nowPrint("\n[-] System exit", True)
os._exit(1)
else:
Expand All @@ -228,7 +228,7 @@ def inspect():
else:
OutFile.write('{0} - {1}'.format(k, v[0]) + '\n')
except IOError:
nowPrint("\n[-] Invalid path to out file given --> Please enter a valid path", True)
nowPrint("[-] Invalid path to out file given --> Please enter a valid path", True)
nowPrint("\n[-] System exit", True)
os._exit(1)
except KeyboardInterrupt:
Expand Down

0 comments on commit 6239101

Please sign in to comment.