Added ghostbin.com Support

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2021-06-03 14:26:17 +05:30
parent 73df8114fc
commit 4e3c3d968a
3 changed files with 54 additions and 0 deletions

35
ghost-com.py Normal file
View File

@ -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)

18
ghostbin-com/checker.py Normal file
View File

@ -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.")

1
ghostbin-com/hits.txt Normal file
View File

@ -0,0 +1 @@
https://ghostbin.com/paste/JkOtR