Search by

devitek / torrent-fake-seeder

CaporalDead

There is no license information available for the latest version (0.1) of this package.

Fake a torrent's seed

Package info

github.com/Devitek/torrent-fake-seeder

pkg:composer/devitek/torrent-fake-seeder

Statistics

Installs: 121

Dependents: 0

Suggesters: 0

Stars: 25

Open Issues: 0

0.1 2014-07-25 20:25 UTC

This package is auto-updated.

Last update: 2026-11-13 15:50:41 UTC


README

torrent-fake-seeder

A PHP proof of concept: report fake seeding statistics to a torrent tracker.

Packagist version Downloads

Installation ยท Usage

Trackers trust the upload figures that clients announce. This library shows how little it takes to exploit that: it reads a .torrent file, impersonates a known client (Azureus 4.5 or uTorrent 2.2.1) and announces upload progress to the tracker without sending any data.

Note

This is a demonstration, not a tool to inflate your ratio. Use it only against trackers you run or are allowed to test.

Installation

Requires PHP 8.4 or later.

composer require devitek/torrent-fake-seeder:dev-master

Usage

<?php

require_once 'vendor/autoload.php';

use Devitek\Net\Torrent\Client\Azureus\Azureus45;
use Devitek\Net\Torrent\Seeder;
use Devitek\Net\Torrent\Torrent;

$torrent = new Torrent('file.torrent');
$client  = new Azureus45();
$seeder  = new Seeder($client, $torrent);

$seeder->bind('update', function ($data) {
    echo $data['uploaded'] . ' MB at ' . $data['speed'] . ' MB/sec uploaded' . PHP_EOL;
});

$seeder->bind('error', function ($data) {
    echo $data['exception']->getMessage() . PHP_EOL;
});

$seeder->seed();

Swap Azureus45 for uTorrent221 (namespace Devitek\Net\Torrent\Client\uTorrent) to impersonate uTorrent instead.

Contributing

Issues and pull requests are welcome.

License

No license has been chosen yet, so all rights are reserved by default.

Devitek
Built and maintained by Devitek