Fix: bug using output option

This commit is contained in:
sundowndev 2018-12-14 14:56:23 +01:00
parent 89e1b2b7f1
commit 76eb594566
2 changed files with 30 additions and 3 deletions

View File

@ -15,9 +15,6 @@ except:
print('\033[91m[!] Missing requirements. Try running python3 -m pip install -r requirements.txt')
sys.exit()
# Reset text color at exit
atexit.register(lambda: print(Style.RESET_ALL))
def banner():
print(" ___ _ _____ __ ")
print(" / _ \ |__ ___ _ __ ___ \_ \_ __ / _| ___ __ _ __ _ ")
@ -60,6 +57,13 @@ parser.add_argument('-u', '--update', action='store_true',
args = parser.parse_args()
def resetColors():
if not args.output:
print(Style.RESET_ALL)
# Reset text color at exit
atexit.register(resetColors)
# If any param is passed, execute help command
if not len(sys.argv) > 1:
parser.print_help()

23
re.txt Normal file
View File

@ -0,0 +1,23 @@
___ _ _____ __
/ _ \ |__ ___ _ __ ___ \_ \_ __ / _| ___ __ _ __ _
/ /_)/ '_ \ / _ \| '_ \ / _ \ / /\/ '_ \| |_ / _ \ / _` |/ _` |
/ ___/| | | | (_) | | | | __/\/ /_ | | | | _| (_) | (_| | (_| |
\/ |_| |_|\___/|_| |_|\___\____/ |_| |_|_| \___/ \__, |\__,_|
|___/
PhoneInfoga Ver. v1.0.0-rc2
Coded by Sundowndev

[!] ---- Fetching informations for 33651968838 ---- [!]
[*] Running local scan...
[+] International format: +33 6 51 96 88 38
[+] Local format: 0651968838
[+] Country code: +33
[+] Location: France
[+] Carrier:
[+] Area: France
[+] Timezone: Europe/Paris
[*] The number is valid and possible.
[*] Scan finished.