Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[Mod] Log Torrent File Downloads
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2012-06-28 02:30:52
This is a mod I wrote for my tracker because we have been having issues with one of our members downloading torrent files and using a hacked client to download the torrent without announcing to the tracker making IP bans and other methods of finding out who its (they are using a different IP address in the hacked client) useless.

This mod creates a Site Log entry every time a user downloads a torrent file so you can keep track of who has what torrent and compare it to the active peer list to see who might be cheating using a hacked client.

Known torrenttrader versions this works for:

2.06

2.08

may also work for older version and all in between as well as most svn versions

download.php

Find

mysql_close();
Add Before




//log download of torrent file

write_log("<b><font color='green'>Torrent File Downloaded:</font></b> <a href=\"".$site_config['SITEURL']."/torrents-details.php?id=$id\"><b>$name</b></a> was downloaded by <a href=\"".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."\"><b>".$CURUSER['username']."</b></a>.");






As you can see from the code it will also make links for the torrent and the user that is added to the log entry. I can add pictures if anyone wants but I think the code speaks for itself and hopefully this will come in handy for someone.
Unknown User
2012-06-28 03:50:13
its really serves not use to me.. if wanting to track what people dl then get an snatched list
Unknown User
2012-06-28 04:28:03
That's the problem this person is NOT announcing to the server but their IP is showing up in members' clients as a peer so any mod that tracks activity based on the client announcing to the tracker are useless.
Unknown User
2012-07-21 21:41:44
I know double posting is frowned on but I just wanted to mention an incident that this mod helped to resolve on my tracker. Several of my users reported a suspicious IP address in the peer list of their clients which was not showing up as a peer on the tracker. I checked my Site Log for all users who downloaded that torrent file and found one that was not showing up in the peer list of either torrent mentioned by my users. Doing a search I found a total of 40 torrent file downloads in the last month or so and the user was not a peer on any of them. I emailed the user and he got back to me saying he had not logged to the tracker in some time and that someone must have hijacked his account. Normally I wouldn't believe a story like that but this user has been on my tracker for some time and has a decent ratio so it made sense that if what he said is true then someone may be hacking in to member accounts and using them to download torrent files from the tracker and use a stealth client to download them without being caught by any snatch list or leecher detecting mod since the stealth client does not announce to the tracker. I only managed to find all this out thanks to this mod that I made logging all torrent file downloads otherwise I would still be trying to figure out who it was downloading the torrents.

Due to this incident I am planning on working on a mod that will keep a log of all torrent files downloaded by a user (as in the actual torrent file not just when it's completed like the snatch list mod does) as well as a mod to log user IP changes upon login rather then just when their client announces. If mods like this don't already exist I will post them here once they are completed. I just wanted to post this to help all of you understand that tracking the announce data alone is not a sure way of finding cheaters on your trackers as I have had to learn the hard way.
Unknown User
2012-07-21 22:15:48
With a snatchlist you can quite clearly see cheaters as many tend to just upload without even thinking about sending download with it, to finding whom downloaded a actual .torrent file is wasting resources u should just parse your webservers access log as this has all the relivant information. With a snatchlist i was able to find some dodgy torrent clients, and my friend Dent could back me up on this as it was his tracker where he showed me, basically the torrent got logged into the table and he was seeding without any uploaded / downloaded not being displayed and then someone may say well ok he may already have the torrent but the snatchlist i made for v2.08 explicitly only logs those users who wasn't a seeder in the first place.

Users bring it on themselfs... i travel through alot of trackers and see the announce url has:

http://sometracker.tld/announce.php?passkey=4934924942

being displayed on the details page, so you should warn users not to do this.

Their is a list of good mods that i will list here that makes it harder for users to cheat in the sense that u can catch them out:

1.) Disable DHT

2.) Ban Torrent Clients

3.) Snatchlist

4.) IP Log - In theory u could extend this mod to log ips that go into the announce because a user ip on the tracker could vary from the one their announcing with forexample a seedbox.

5.) Max downloads.
Unknown User
2012-07-22 06:04:27
I get that and I do plan on adding the snatchlist mod to my tracker now that there is a 2.08 version of it (never got it working right with the 2.07 svn I was working with before but it wasn't exactly written for that version at the time anyway) however my situation involved a stealth client which dId NOT announce itself to the tracker at all (meaning there was no tracking any suspicious activity by checking the announce.php file and the user never showed up as a peer for the torrents so it wasn't just a compromised announce url). Whoever did this was trying to download the torrents and didn't care about cheating to get good ratio seeing as how it seems that this person may have hijacked one of my users' accounts to do it (email contact with the user provided that information). This mod does the one thing that the snatchlist mod does not which is try and track who is using a stealth client to download torrents (or at least which account is being used to get the torrent files in the first place as all torrents are private on my tracker and I did do the Disable DHT mod). No announce means no IP to log and no ratio cheating to track. The only way that I could think of to track them was to find out which account was used to download the suspected torrent(s) which is all this mod does. Granted I could also try and track IP changes which can help out as well but I think this logging mod I wrote really helps narrow down the search especially when the first sign I have that something is going on is when my users tell me that there is an IP in their peer list that shouldn't be there and it never shows up on the tracker at all.

My biggest issue here is that so far everyone has just been telling me basically that my mod is useless and to use snatchlist instead (nothing against that mod as I do plan on using it) but, knowing how it works by keeping track of the data from the announce.php file modifications, I really doubt that it would have helped me here seeing as how there was never an announce to the server from the stealth client in the first place making the peer invisible to the tracker but not to other clients and only the downloading of the torrent file (and maybe a sudden difference in IP upon login of the user which was not logged) was the only sign I had to figure out which account was being used (my mod showed 40 torrent files downloaded in the last month from the user and said user told me he had not logged in to the tracker in some time). If you can point me to another mod that can help track a client that never announces to a tracker (or in this case identify a hijacked account as the source of the torrents being downloaded) then I'm all for it but until then I stand by this mod I wrote here. It's just frustrating when no one at least acknowledges that something you do at least has some use when you know it does even if they aren't going to use it. When it comes to tracker cheaters the more data you have to work with the easier it is for you to track them down.

Sorry for the long rant but hopefully you understand now why it is that I'm so defensive about this little mod that I wrote especially after how it helped me yesterday.
Unknown User
2012-07-22 15:44:48
well to me this addon is adding pointless entries in the db due to logging.. you know every thing you enter into the db can slow down other parts of the site..

mvp snatched list does the same amount of info but alot more.... i cant imagine my db size if i logged every time my members downloaded an torrent .........

if you want your site to crash then add it...
Unknown User
2013-02-24 14:58:17
Thanks a lot, exactly what I wanted, a permanent add to the site log is a good idea.... and MY DB cannot become too big as I do backups and the clear the current logs regular... it serves my needs perfect, thanks,
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728