[Fix #11] Fix OpenSSL bug & colorama
This commit is contained in:
parent
30226cc436
commit
268787dce8
|
@ -13,7 +13,9 @@ def banner():
|
||||||
print(" Coded by Sundowndev")
|
print(" Coded by Sundowndev")
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
print("\n \033[92m")
|
from colorama import Fore, Style
|
||||||
|
|
||||||
|
print("\n " + Fore.GREEN + Style.NORMAL)
|
||||||
banner()
|
banner()
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -59,6 +61,7 @@ try:
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import requests
|
import requests
|
||||||
|
import urllib3
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
import html5lib
|
import html5lib
|
||||||
import phonenumbers
|
import phonenumbers
|
||||||
|
@ -72,6 +75,14 @@ except:
|
||||||
print('\033[91m[!] Missing requirements. Try running pip install -r requirements.txt')
|
print('\033[91m[!] Missing requirements. Try running pip install -r requirements.txt')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
requests.packages.urllib3.disable_warnings()
|
||||||
|
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL'
|
||||||
|
try:
|
||||||
|
requests.packages.urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST += 'HIGH:!DH:!aNULL'
|
||||||
|
except AttributeError:
|
||||||
|
# no pyopenssl support used / needed / available
|
||||||
|
pass
|
||||||
|
|
||||||
if args.update:
|
if args.update:
|
||||||
def download_file(url, target_path):
|
def download_file(url, target_path):
|
||||||
response = requests.get(url, stream=True)
|
response = requests.get(url, stream=True)
|
||||||
|
@ -512,7 +523,7 @@ def scanNumber(InputNumber):
|
||||||
|
|
||||||
print(code_info + "Scan finished.")
|
print(code_info + "Scan finished.")
|
||||||
|
|
||||||
print('\n')
|
print('\n' + Style.RESET_ALL)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if args.output:
|
if args.output:
|
||||||
|
@ -529,11 +540,11 @@ try:
|
||||||
sys.stdout = args.output
|
sys.stdout = args.output
|
||||||
banner()
|
banner()
|
||||||
else:
|
else:
|
||||||
code_info = '\033[97m[*] '
|
code_info = Fore.RESET + Style.BRIGHT + '[*] '
|
||||||
code_warning = '\033[93m(!) '
|
code_warning = Fore.YELLOW + Style.BRIGHT + '(!) '
|
||||||
code_result = '\033[1;32m[+] '
|
code_result = Fore.GREEN + Style.BRIGHT + '[+] '
|
||||||
code_error = '\033[91m[!] '
|
code_error = Fore.RED + Style.BRIGHT + '[!] '
|
||||||
code_title = '\033[1m\033[93m'
|
code_title = Fore.YELLOW + Style.BRIGHT
|
||||||
|
|
||||||
# Verify scanner option
|
# Verify scanner option
|
||||||
if not args.scanner in scanners:
|
if not args.scanner in scanners:
|
||||||
|
|
Loading…
Reference in New Issue