diff --git a/ghost-com.py b/ghost-com.py new file mode 100644 index 0000000..23bf38d --- /dev/null +++ b/ghost-com.py @@ -0,0 +1,35 @@ +import string +import threading +import random +import requests +import platform + +from colorama import Fore, init + +if platform.system() != 'Linux': + init(convert=True) + +def save_url(content): + with open('./ghostbin-com/hits.txt', 'a+') as f: + f.write(content + '\n') + + +def check_urls(): + while True: + code = ''.join(random.choice(string.ascii_lowercase + string.digits + string.ascii_uppercase) for i in range(5)) + r = requests.get(f'https://ghostbin.com/paste/{code}') + if r.status_code == 404: + print(f'[{Fore.RED}404{Fore.RESET}] => {r.url}') + else: + save_url(r.url) + print(f'[{Fore.GREEN}{r.status_code}{Fore.RESET}] => {r.url}') + + +def main(threads): + if threading.active_count() <= threads: + t = threading.Thread(target=check_urls) + t.start() + + +thread = int(input("How many threads: ")) +main(thread) diff --git a/ghostbin-com/checker.py b/ghostbin-com/checker.py new file mode 100644 index 0000000..4311bdc --- /dev/null +++ b/ghostbin-com/checker.py @@ -0,0 +1,18 @@ +''' + This will most likely blow your pc up, so use your brain, read the code and think of what can happen. +''' + +import requests + +file_name = input("File name of the ghostbin.co valid brutes: ") +f = open(file_name).read().split('\n') + +def save_content(file, content): + with open(file, 'a+', encoding='utf-8') as f: + f.write(content) + +for link in f: + r = requests.get(link + '/raw') + save_content(link.split('/')[4], r.text) +f.close() +print("Finished.") diff --git a/ghostbin-com/hits.txt b/ghostbin-com/hits.txt new file mode 100644 index 0000000..4cf54c7 --- /dev/null +++ b/ghostbin-com/hits.txt @@ -0,0 +1 @@ +https://ghostbin.com/paste/JkOtR