Tein tekoälyllä ja pythonilla tälläisen ip-osoitteiden kerääjän. Nyt voisin perustaa firman.
import libtorrent as lt
import time
def get_peers(torrent_path):
session = lt.session()
info = lt.torrent_info(torrent_path)
handle = session.add_torrent({'ti': info, 'save_path': '.'})
print("Fetching peer list...\n")
time.sleep(5) # Allow time for peer discovery
peers = handle.get_peer_info()
for peer in peers:
print(f"IP: {peer.ip}")
session.remove_torrent(handle)
torrent_file = "fitgirl.torrent" # Replace with your .torrent file
get_peers(torrent_file)
Graafinen käyttöliittymä olisi hyvä tuohon ja sellainen parannus että se automaattisesti kopioisi tekstitiedostoon ne ip osoitteet. Siitä voisi sitten erotella suomalaiset lataajat omaan listaansa. Ei tässä nyt muuta tällä kertaa.
Sen verran lisäystä tähän että graafinen käyttöliittymä on nyt työnalla...
Tässä tämän IP Imuttajan v1.0 koodi. Teen siitä exe tiedoston ehkä kenties huomenna niin saa sen windowsissa sitten toimimaan. Kiitos tekoälylle tästä.
import tkinter as tk
from tkinter import filedialog
import libtorrent as lt
import time
def get_peers(torrent_path):
session = lt.session()
info = lt.torrent_info(torrent_path)
handle = session.add_torrent({'ti': info, 'save_path': '.'})
print("Fetching peer list...\n")
time.sleep(5) # Allow time for peer discovery
peers = handle.get_peer_info()
for peer in peers:
print(f"IP: {peer.ip}")
session.remove_torrent(handle)
def on_button_click():
torrent_file = filedialog.askopenfilename(filetypes=[("Torrent files", "*.torrent")])
if torrent_file:
get_peers(torrent_file)
# Create the main window
root = tk.Tk()
root.title("IP Imuttaja v.1.0")
# Create and place the button
button = tk.Button(root, text="Valitse torrent tiedosto ja imuta", command=on_button_click)
button.pack(pady=20)
# Run the application
root.mainloop()
Edit: Windows imuttaja on nyt valmis. Ehkä laitan sen jakoon. Tallentaa valitun torrentin lataajien ip osoitteet tekstitiedostoon. Toimii tai ei.
imuttaja virustotal
Nyt lopetan tän sekoilun täällä. Tässä imuttaja github
GitHub - lollyboy142/imuttaja: Imuttaja torrent user ip sucking tool