Added pastebin Support
This commit is contained in:
parent
4e3c3d968a
commit
59fba30c37
|
@ -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('./pastebin/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(8))
|
||||
r = requests.get(f'https://pastebin.com/raw/{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)
|
|
@ -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.")
|
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in New Issue