Message
Message
def clear():
if os.name == 'nt': os.system('cls')
else: os.system('clear')
class color:
BLUE = Fore.BLUE + Style.BRIGHT
WHITE = Fore.WHITE + Style.BRIGHT
RESET = Fore.RESET + Style.RESET_ALL
RED = Fore.RED + Style.BRIGHT
class Color:
RED = Fore.RED + Style.BRIGHT
WHITE = Fore.WHITE + Style.BRIGHT
RESET = Fore.RESET + Style.RESET_ALL
ASCII_ART = r"""
██████ ███▄ █ █ ██ ██████ ▄▄▄▄ ▄▄▄ ██████
▓█████
▒██ ▒ ██ ▀█ █ ██ ▓██▒▒██ ▒ ▓█████▄ ▒████▄ ▒██ ▒ ▓█
▀
░ ▓██▄ ▓██ ▀█ ██▒▓██ ▒██░░ ▓██▄ ▒██▒ ▄██▒██ ▀█▄ ░ ▓██▄
▒███
▒ ██▒▓██▒ ▐▌██▒▓▓█ ░██░ ▒ ██▒▒██░█▀ ░██▄▄▄▄██ ▒ ██▒▒▓█
▄
▒██████▒▒▒██░ ▓██░▒▒█████▓ ▒██████▒▒░▓█ ▀█▓ ▓█
▓██▒▒██████▒▒░▒████▒
▒ ▒▓▒ ▒ ░░ ▒░ ▒ ▒ ░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░░▒▓███▀▒ ▒▒ ▓▒█░▒ ▒▓▒ ▒ ░░░
▒░ ░
░ ░▒ ░ ░░ ░░ ░ ▒░░░▒░ ░ ░ ░ ░▒ ░ ░▒░▒ ░ ▒ ▒▒ ░░ ░▒ ░ ░ ░
░ ░
░ ░ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
░
░ ░ ░ ░ ░ ░ ░ ░ ░
░
░
╔═══════════════════════════╗
║ Snusbase Tool ║
║ discord.gg/yNncy89F4k ║
╚═══════════════════════════╝
═══════════════════════════════════════════════════════════════════════════════════
═════════════
[1] -> Search with a email ║ [4] -> Search with password
[2] -> Search with a pseudo ║ [5] -> Search with a hash
passw<ord
[3] -> Search with full name ║ [6] -> Search with a ip adress
═══════════════════════════════════════════════════════════════════════════════════
══════════════════
║ "Exit" = close the tool ║
╚════════════════════════════════════════════╝
"""
SEARCH_TYPES = ["email", "username", "name", "password", "hash", "lastip"]
key = 'c2J5anRoa29mdDR5YWltYndjanFwbXhzOGh1b3Zk'
mensaje_base64_bytes = key.encode('utf-8')
mensaje_decodificado_bytes = base64.b64decode(mensaje_base64_bytes)
apiKey = mensaje_decodificado_bytes.decode('utf-8')
url = 'https://api-experimental.snusbase.com/data/search'
headers = {
'Auth': apiKey,
'Content-Type': 'application/json'
}
payload = {
'terms': [search_input],
'types': [search_type],
'wildcard': False
}
def display_results(results):
if not results:
print(f"{Color.RED}\n[+] No results found in the DB")
else:
for database, entries in results.items():
for entry in entries:
for key, value in entry.items():
if key == 'lastip':
print(f"{Color.WHITE}[+] {key}: {value} (Get Location)")
else:
print(f"[+] {Color.WHITE}{key}: {value}")
print('-' * 50)
def get_location(ip):
url = f'http://ip-api.com/json/{ip}'
response = requests.get(url)
if response.status_code == 200:
data = response.json()
print(f"{Color.WHITE}[+] Location for IP {ip}: {data['city']},
{data['region']}, {data['country']}")
else:
print(f"{Color.RED}[!] Error: {response.text}{Color.ENDC}")
def main():
clear()
title = f"{Color.RED}{ASCII_ART}[+] SnusBase Search Engine"
print(title)
search(search_input, search_type)
while True:
ip = input(color.RED + "[+] Enter IP to get location (or) 'exit' to quit:
")
if ip.lower() == 'exit':
print(color.RESET)
clear()
break
get_location(ip)
if __name__ == "__main__":
main()