Skip to content

Instantly share code, notes, and snippets.

@JoyGhoshs
Created October 4, 2021 06:45
Show Gist options
  • Save JoyGhoshs/330288689998a0c66ecc50bb8a4c519f to your computer and use it in GitHub Desktop.
Save JoyGhoshs/330288689998a0c66ecc50bb8a4c519f to your computer and use it in GitHub Desktop.
import requests
import sys
from bs4 import BeautifulSoup
from colorama import Fore, Style
def leakix_search(ip):
get = requests.get(f'https://leakix.net/host/{ip}')
comp = BeautifulSoup(get.content, 'lxml')
search = comp.find_all('pre',class_="rounded p-1 wrap")
for data in search:
print(f'{Fore.RED}[+]{Fore.WHITE} {ip} {Fore.RED}[LEAK]{Fore.WHITE}')
print()
print(Fore.CYAN+data.get_text()+Fore.WHITE)
leakix_search(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment