Skip to content

Commit

Permalink
🎉 v0.3 release - python 2.6 & 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
k4m4 committed Jan 3, 2018
1 parent 462de8d commit 690d73b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions onioff.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
╚██████╔╝██║ ╚████║██║╚██████╔╝██║ ██║
╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ v0.3
""" + END + BLUE +
'\n' + '{}Onion URL Inspector ({}ONIOFF{}){}'.format(YELLOW, RED, YELLOW, BLUE).center(67) +
'\n' + 'Made with <3 by: {}Nikolaos Kamarinakis ({}k4m4{}){}'.format(YELLOW, RED, YELLOW, BLUE).center(67) +
'\n' + 'Version: {}0.3{}'.format(YELLOW, END).center(57) + '\n')
'\n' + '{0}Onion URL Inspector ({1}ONIOFF{2}){3}'.format(YELLOW, RED, YELLOW, BLUE).center(67) +
'\n' + 'Made with <3 by: {0}Nikolaos Kamarinakis ({1}k4m4{2}){3}'.format(YELLOW, RED, YELLOW, BLUE).center(67) +
'\n' + 'Version: {0}0.3{1}'.format(YELLOW, END).center(57) + '\n')


def nowPrint(msg, error=False, ext=False, heavy=False):
Expand Down Expand Up @@ -94,15 +94,15 @@ def checkOnion(onion):
except:
response2 = 'UNAVAILABLE'

show = ("[O] " + onion + " ({}ACTIVE{}) ==> '" + response2 + "'").format(GREEN, END)
show = ("[O] " + onion + " ({0}ACTIVE{1}) ==> '" + response2 + "'").format(GREEN, END)
gathered[onion] = 'ACTIVE', response2
else:
response = str(response).strip().replace(':','')
response2 = 'UNAVAILABLE (Onion Inactive)'
if len(response) > 2:
show = ("[O] " + onion + " ({}INACTIVE{}) - " + str(response).strip()).format(RED, END)
show = ("[O] " + onion + " ({0}INACTIVE{1}) - " + str(response).strip()).format(RED, END)
else:
show = ("[O] " + onion + " ({}INACTIVE{})").format(RED, END)
show = ("[O] " + onion + " ({0}INACTIVE{1})").format(RED, END)
gathered[onion] = 'INACTIVE', response2

return show
Expand Down

0 comments on commit 690d73b

Please sign in to comment.