Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Template Shares
Reply
  #1  
Old 09-07-13, 21:37
eckeO5's Avatar
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Post TS Hit & Run Detection Tool
Does some1 know how this toolīs gonna work?

I mean as i thought tool must/shall show users have not seeded files long enough, and/or users with too low ratio.

or I do not understand this tool properly!?

may be some1 can help.

greetz ecke
Reply With Quote
The Following User Says Thank You to eckeO5 For This Useful Post:
FENIX (10-07-13)
  #2  
Old 11-07-13, 01:27
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
ITS A Hit & Run Detection WHO DOWNLOAD FILES AND DO NOT SEED THEM BACK TO SITE OR RATIO OF 1.1
Reply With Quote
  #3  
Old 11-07-13, 03:57
lafouine022's Avatar
lafouine022 lafouine022 is offline
Support FR
 
Join Date: Feb 2010
P2P
Posts: 119
Exclamation
I just saw it
attention

Attention

This test is thank you to give me your result





IN include/cron/
remplace your old weekly_clenups.php
by this

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  if (!defined ('IN_CRON'))
  {
    exit ();
  }

 //////hit and run by fouini FIX/////////////////
require INC_PATH . '/functions_pm.php';
 
$seedT = 1 * 60 * 60; /// add your temp = hour ex: temp * 60 *60

    $query = mysql_query ('SELECT s.id, s.torrentid, s.userid, s.seedtime, t.name, u.username FROM snatched s INNER JOIN torrents t ON (s.torrentid=t.id) INNER JOIN users u ON (s.userid=u.id) WHERE s.seeder = \'no\' and t.banned = \'no\' and s.seedtime < ' . $seedT . '');

      while ($HR = mysql_fetch_assoc ($query))
      {
        $subject = 'Hit and run detect';
        $msg = 'this torrent was not enough seeder : [URL=details.php?id=' . $HR['torrentid'] . ']' . htmlspecialchars ($HR['name']) . '[/URL]';
        send_pm ($HR['userid'], $msg, $subject, 0);
        
        mysql_query( "DELETE FROM snatched WHERE id = ".$HR['id']."" );
        mysql_query( "UPDATE users SET timeswarned = timeswarned + 1 WHERE id = ".$HR['userid']."" );
          
      }
//////   

?>
after just wait... or run several times this files in tracker setting/Manage cron job

Last edited by lafouine022; 11-07-13 at 04:57.
Reply With Quote
The Following 3 Users Say Thank You to lafouine022 For This Useful Post:
eckeO5 (12-07-13), FENIX (11-07-13), Titya (12-07-13)
  #4  
Old 12-07-13, 07:52
eckeO5's Avatar
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default
Hello lafouine022.

Today after work i will test it. i will tell results then.
Thank you man.

A fine day to all

Last edited by Krypto; 12-07-13 at 09:59. Reason: No need to Quote a post above your own!
Reply With Quote
  #5  
Old 12-07-13, 23:48
Titya's Avatar
Titya Titya is offline
Senior Member
 
Join Date: Dec 2010
Hungary
Posts: 30
Default
Quote:
Originally Posted by [URL="http://www.bvlist.com/members/lafouine022-10499.html"
lafouine022[/URL]]ITS A Hit & Run Detection WHO DOWNLOAD FILES AND DO NOT SEED THEM BACK TO SITE OR RATIO OF 1.1

It's not perfect because it can detect whatever the user just began, and it is completely filled ...
Reply With Quote
  #6  
Old 13-07-13, 01:27
lafouine022's Avatar
lafouine022 lafouine022 is offline
Support FR
 
Join Date: Feb 2010
P2P
Posts: 119
Wink
the first file is a test!
OK adjustement this exemple detect
seed 24h on 1 week after leech /torrent

edit line 9 and 10

PHP Code:
<?php
if ( !defined"IN_CRON" ) )
{
    exit( );
}
//////hit and run by fouini FIX/////////////////
require INC_PATH '/functions_pm.php';
 
$seedT 24 60 60/// add your temp = hour ex: temp * 60 *60
$Tcomp TIMENOW 604800/// 604 800 sec for 1 week

    
$query mysql_query ('SELECT s.id, s.torrentid, s.userid, s.seedtime, t.name, u.username FROM snatched s INNER JOIN torrents t ON (s.torrentid=t.id) INNER JOIN users u ON (s.userid=u.id) WHERE s.finished = \'yes\' and t.banned = \'no\' and s.uploaded < s.downloaded and s.seedtime < '.$seedT.' and UNIX_TIMESTAMP(s.completedat) < \'' $Tcomp '\'') or sqlerr(__FILE__,__LINE__);

    while (
$HR mysql_fetch_assoc ($query))
    {
        
$subject 'Hit and run detect';
        
$msg 'Vous avez pas Seeder ce torrent assez lomgtemps : [URL=details.php?id=' $HR['torrentid'] . ']' htmlspecialchars ($HR['name']) . '[/URL] . [URL=userdetails.php?id=' $HR['userid'] . ']1 Avertisement[/URL] vous a ete ajouter!';
        
send_pm ($HR['userid'], $msg$subject0);
        
        
mysql_query"DELETE FROM snatched WHERE id = ".$HR['id']."" );
        
mysql_query"UPDATE users SET timeswarned = timeswarned + 1 WHERE id = ".$HR['userid']."" );
        
mysql_query"INSERT INTO ts_hit_and_run (userid, torrentid, added) VALUES ('".$HR['userid']."','".$HR['torrentid']."','".TIMENOW."')");
    }
//////////      
?>
ps: if you want you can do a verification by day or hour by adding the code between / / / / / / and / / / in another file include/cron/files

Last edited by lafouine022; 14-07-13 at 09:24.
Reply With Quote
The Following 2 Users Say Thank You to lafouine022 For This Useful Post:
eckeO5 (14-07-13), Marco (16-07-13)
  #7  
Old 14-07-13, 11:17
eckeO5's Avatar
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default
hello lafouine022,

today i will test and get results for that.

thank you very much for your special help.

greetz ecke

Bump: So i have tested with the following edit in line 9 & 10:

Quote:
$seedT = 2 * 60 * 60; /// add your temp = hour ex: temp * 60 *60
$Tcomp = TIMENOW - 86400; /// 86400 sec for 1 day
result:

user downloaded 1 torrent.
seeding it for i.e. hours.
after that i stopped seeding.

Bump: User is in List TS Hit & Run Detection Tool round about 2-3 h after he stopped seeding.

but after that nothing more happens. ((

Bump:
Quote:
Originally Posted by lafouine022 View Post
the first file is a test!
OK adjustement this exemple detect
seed 24h on 1 week after leech /torrent

edit line 9 and 10

PHP Code:
<?php
if ( !defined"IN_CRON" ) )
{
    exit( );
}
//////hit and run by fouini FIX/////////////////
require INC_PATH '/functions_pm.php';
 
$seedT 24 60 60/// add your temp = hour ex: temp * 60 *60
$Tcomp TIMENOW 604800/// 604 800 sec for 1 week

    
$query mysql_query ('SELECT s.id, s.torrentid, s.userid, s.seedtime, t.name, u.username FROM snatched s INNER JOIN torrents t ON (s.torrentid=t.id) INNER JOIN users u ON (s.userid=u.id) WHERE s.finished = \'yes\' and t.banned = \'no\' and s.uploaded < s.downloaded and s.seedtime < '.$seedT.' and UNIX_TIMESTAMP(s.completedat) < \'' $Tcomp '\'') or sqlerr(__FILE__,__LINE__);

    while (
$HR mysql_fetch_assoc ($query))
    {
        
$subject 'Hit and run detect';
        
$msg 'Vous avez pas Seeder ce torrent assez lomgtemps : [URL=details.php?id=' $HR['torrentid'] . ']' htmlspecialchars ($HR['name']) . '[/URL] . [URL=userdetails.php?id=' $HR['userid'] . ']1 Avertisement[/URL] vous a ete ajouter!';
        
send_pm ($HR['userid'], $msg$subject0);
        
        
mysql_query"DELETE FROM snatched WHERE id = ".$HR['id']."" );
        
mysql_query"UPDATE users SET timeswarned = timeswarned + 1 WHERE id = ".$HR['userid']."" );
        
mysql_query"INSERT INTO ts_hit_and_run (userid, torrentid, added) VALUES ('".$HR['userid']."','".$HR['torrentid']."','".TIMENOW."')");
    }
//////////      
?>
ps: if you want you can do a verification by day or hour by adding the code between / / / / / / and / / / in another file include/cron/files
iīve tested this weekly_cleanups.php

it seems that it doesnīt work correctly.
Reply With Quote
  #8  
Old 12-03-17, 16:12
XGODY's Avatar
XGODY
Guest
 
Posts: n/a
Default
This tool as never worked nor will it this the only downside of this code when I get time I'll rewrite this and will do the clean up at same time can not do one file all have to match to work

Last edited by XGODY; 12-03-17 at 19:24.
Reply With Quote
  #9  
Old 13-03-17, 09:40
fireknight's Avatar
fireknight fireknight is offline
VIP
 
Join Date: Aug 2010
Australia
Posts: 134
Default
@XGODY

You do realize that this thread is about 4 years old.
People have moved on - or found something else that works.

If you can solve the issues - go ahead.
But you maybe trying to solve something - that has long been forgotten.
Or people have simply just moved on from Xam's shit.

Don't get me the wrong way.
I think people are awesome when they solve an issue with code ( regardless of it age ).
And make the answer available to everyone for free.
That just shows the commitment of this community.
So please carry on with your plans to solve issue.
I look forward to seeing your work.
Reply With Quote
  #10  
Old 13-03-17, 10:20
XGODY's Avatar
XGODY
Guest
 
Posts: n/a
Default
True on the date and yes it might have been too just looking about who I can help but I'll leave it..As you know it's not just one file it's many files that needs doing for this to work. But if I find time over this few moths I'll do it and test it it's not very hard to solve

Last edited by XGODY; 13-03-17 at 10:39.
Reply With Quote
Reply

Tags
detection , hit , run , tool

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 03:32. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.