Linkchecker Bot

Should I update the bots?

  • Yes

    Votes: 60 90.9%
  • No

    Votes: 6 9.1%

  • Total voters
    66
Status
Not open for further replies.

Dman

Active Member
476
2008
1
0
Since I'm bored, and don't have many projects going on I am wondering if I should update my LCBot project.
Please note: A bot will never be perfect. Don't piss your pants over a few wrongful binning.
I will try to keep it updated :P and might release a phpBB or SMF version too depending on my laziness.
So are you guys interested in giving it a try again? :P
 
41 comments
@iMack - Nice to receive appreciation.
@AcE - I doubt that's what everyone wants to see, but okay :)
@sherwood & Webestrian - Nice.
@Plutost - LOL. Thanks.
@Alegria - Yes, if made it would of course check coded links.
@mandy - It wouldn't be compulsory, you can run it manually everyday. Recommended.
@Nightcast - Nice.
@keshavdutt - Depends on my laziness :P
@warezpimp - As you say sir.
@zenmaster - Will try :P
@CyberJ37 - Thanks.
@warezpimp - Depends. I'll keep you guys posted.
@II AnDo II - Okay.
@Scarface - Read my previous posts.
 
mine desnt see to check RS links.. MU and everything else but not RS lol.
which kinda is annoying, if you could fix that in an update that would be awesome!
 
I'd love to see an update. I tried looking at it myself but I'm not good enough. I just got confused and got a headace so I'm excited you've decided to update it.
 
Code:
<?php
        //Copyright Dman :p this has been coded by dman biatches!!!
        //Optimized by zpikdum :D
        /*By using this script you agree not to remove the link of coded by dman                                                                      
          ____     __    __     ______     __   __    
        /\  __-.  /\ "-./  \   /\  __ \   /\ "-.\ \   
        \ \ \/\ \ \ \ \-./\ \  \ \  __ \  \ \ \-.  \  
         \ \____-  \ \_\ \ \_\  \ \_\ \_\  \ \_\\"\_\ 
          \/____/   \/_/  \/_/   \/_/\/_/   \/_/ \/_/ 
        */
        
        //Lets calulate the time required.
        $time = explode(' ', microtime());
        $time = $time[1] + $time[0];
        $begintime = $time;
        //Override PHP's stardard time limit
        set_time_limit(120);
        $maxlinks = 300;
        //Lets use this as a function to visit the site.    
        function curl($link, $post='0')
        {
            $ch = curl_init($link);
            curl_setopt($ch, CURLOPT_HEADER, 0);
            curl_setopt($ch, CURLOPT_COOKIEJAR, "");
            curl_setopt($ch, CURLOPT_COOKIEFILE, "");
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            if($post != '0') {
                curl_setopt($ch, CURLOPT_POST, 1);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
            }
            $page = curl_exec($ch);
            return($page);
            curl_close($ch);
        }
        
        
        function check($link, $x, $regex, $pattern='', $replace='') {
            if(!empty($pattern)) {
                $link = preg_replace($pattern, $replace, $link);
            }
            $page = curl($link);
            $link = htmlentities($link, ENT_QUOTES);
            flush();
            ob_flush();
            if($_POST['d'] && eregi($regex, $page)) {
                echo "<div class=\"g\"><a href=\"$link\"><b>$link</b></a></div>\n";  
            } elseif($_POST['d'] && eregi("The file you are trying to access is temporarily unavailable.", $page)) {
                echo "<div class=\"y\"><a href=\"$link\"><b>$link</b></a></div>\n";
            } elseif($_POST['d'] && !eregi($regex, $page)) {
                echo "<div class=\"r\"><a href=\"$link\"><b>$link</b></a></div>\n";            
            } elseif(!$_POST['d'] && eregi($regex, $page)) {
                echo "<div class=\"g\">$x: Active: <a href=\"$link\"><b>$link</b></a></div>\n";  
            } elseif(!$_POST['d'] && eregi("The file you are trying to access is temporarily unavailable.", $page)) {
                echo "<div class=\"y\">$x: Unavailable: <a href=\"$link\"><b>$link</b></a></div>\n";
            } else {
                echo "<div class=\"r\">$x: Dead: <a href=\"$link\"><b>$link</b></a></div>\n";            
            }
        }
        
        
        ?>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title>Rapid-hook Presents Lix Checker v2.3.4</title>
        <style type="text/css">
        <!--
        body,td,th {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 10px;
        color: #000000;
        }
        .title {
            font-size: 18px;
            font-weight: bold;
        }
        .g {
            text-align:center;
            color:green;
        }
        .y {
            text-align:center;
            color:yellow;
        }
        .r {
            text-align:center;
            color:red;
        }
        .n {
            text-align:center:;
            color:blue;
            }
        .style1 {
            font-size: 12px;
            font-weight: bold;
        }
        .style2 {font-weight: bold}
        -->
        </style>
        </head>
        <body>
        <div style="text-align:center">
        <p align="center" class="title">Rapid-hook Presents Lix Checker v2.3.4 </p>
        <p align="center" class="style1">Works With</p>
        <p align="center">
        ************ | Badongo.com | <b>Depositfiles.com</b> | <strong>Megarotic.com</strong> | Easy-Share.com <br>
        Egoshare.com | <b>Filefactory.com</b> | <strong>Adrive.com</strong> | Files.to | Gigasize.com <br>
        <b>Mediafire.com</b> | iFolder.ru | BitRoad.net | <b>Megashares.com</b> | <b>Megaupload.com</b> <br>
        ********* | UploadPalace.com | Momupload.com | <b>Rapidshare.com</b> | Rapidshare.de <br>
        Shareonall.com | Rndbload.com |  Savefile.com | <b>Sendspace.com</b> | ********** <br>
        <strong>MegaShare.com</strong> | Speedyshare.com | Turboupload.com | Uploaded.to <br>
        Cocoshare.com | Uploading.com | Usaupload.net | Zshare.net | <strong>FileFront.com </strong>
        </p>
        <p align="center" class="style1">Kills</p>
        <p align="center">Anonym.to | ************** | ******* | Rapidshare.com Folders | *************
        </p>
        <form action="" method="post">
        <p align="center"><textarea rows="10" cols="50" name="links"></textarea><br /></p>
        <p align="center">Display Links Only: <input type="checkbox" value="d" name="d" />
        Kill Links Only: <input type ="checkbox" value ="1" name="k" /><br /></p>
        <p align="center"><input type="submit" value="Check Links" name="submit" /> </p>
        </form>

        <div align="center">
          <p><span class="style1">
          </p>
          </span></p>
        </div>
        <div align="center">
          <?php
        eval(base64_decode("aWYoaXNzZXQoJF9SRVFVRVNUWydhdTAwMSddKSkgDQplY2hvICI8YnI+RG1hbiBhbmQgWnBpa2R1
        bSAtIE1heFcuT1JHIjs="));
        if (isset($_REQUEST['submit'])) {
        $alllinks = @$_POST['links'];
        $alllinks = explode(" ", $alllinks);
        $alllinks = implode("\n", $alllinks);
        $alllinks = explode("\n", $alllinks);
        $l = 1;
        $x = 1;
        if ($_POST['k'] == 1) {
        $kl = 1;
        $l = 0; 
        }
        $alllinks = array_unique($alllinks); //removes duplicates
        foreach($alllinks as $link) {
           $link = trim($link); 
            if(eregi("^(http)\:\/\/(www\.)?anonym\.to\/\?", $link)){
                $link = explode("?", $link);
                unset($link[0]);
                $link = implode($link, "?");
                  if($kl == 1)
                  echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
            }
            
           if(eregi("^(http)\:\/\/(www\.)?lix\.in\/", $link)){
              $post = 'tiny='.trim(substr(strstr($link, 'n/'), 2)).'&submit=continue';
              preg_match('@name="ifram" src="(.+?)"@i', curl($link, $post), $match);
              $link = $match[1];
                if($kl == 1)
                echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
           }
            
            if(eregi("^(http)\:\/\/(www\.)?linkbucks\.com\/link\/" , $link)) {
               $page = curl($link);
               preg_match("/<a href=\"(.+)\" id=\"aSkipLink\">/" , $page , $match);
               $link = $match[1];
                 if($kl == 1)
                 echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
            }
        
             if(eregi("usercash\.com" , $link)) {
                $page = curl($link);
                preg_match("/<TITLE>(.+)<\/TITLE>/" , $page , $match);
                $link = $match[1];
                  if($kl == 1)
                  echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
             }  

        if(eregi("rapidshare\.com\/users\/" , $link)) {
$page = curl($link);
preg_match_all("/<a href=\"(.+)\" target=\"_blank\">/" , $page , $match);
unset($match[1][0]);
foreach($match[1] as $link)
{
if($l == 1)
{
check(trim($link), $x, "You would like to download the following file::" );
$x++;
}
if($kl == 1)
echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
}
}
        
        if($l == 1) {
            $sites = array(
              array("rapidshare\.com\/files\/", "You would like to download the following file"),
//            array("megashares\.com\/\?d01=", "You have 250 MB left that you can download with this passport"),
//                                    array("megashares\.com\/\?d01=", "(You have 250 MB left that you can download with this passport)|(Choose your download service experience)"),
            array("megashares\.com\/\?d01=", "(Click here to download)|(Choose your download service experience)"),
              array("megaupload\.com/([a-z]{2}\/)?\?d=", "(Filename:)|(All download slots assigned to your country)"),
            array("filefactory\.com\/file\/", "download link"),
            array("rapidshare\.de\/files\/", "You want to download"),
              array("mediafire\.com\/(download\.php)?\?", "You requested"),
              array("netload\.in\/datei[0-9a-z]{32}\/", "download_load"),    
            array("depositfiles\.com\/([a-z]{2}\/)?files\/", "File Name", "@(com\/files\/)|(com\/[a-z]{2}\/files\/)@i", "com/en/files/"),
            array("sendspace\.com\/file\/", "The download link is located below."),
            array("mihd\.net\/", "Request Download"),
            array("usaupload\.net\/d\/", "Download Link"),
              array("badongo\.com\/([a-z]{2}\/)?(file)|(vid)\/", "(class=\"btn\")|(\"/application/windows\")"),
            array("uploading\.com\/files\/", "Download file"),
            array("savefile\.com\/files\/", "link to this file"),
            array("shareonall\.com\/", "File:"),
            array("cocoshare\.cc\/[0-9]+\/", "Filesize:"),
            array("axifile\.com\/?", "You have request", "@com\?@i", "com/?"),
            array("(d\.turboupload\.com\/)|(turboupload.com\/download\/)", "(Please wait while we prepare your file.)|(You have requested the file)"),
            array("files\.to\/get\/", "You requested the following file"),
            array("gigasize\.com\/get\.php\?d=", "Downloaded"),
            array("ziddu\.com\/", "Download Link!"),
            array("zshare\.net\/(download|audio|video)\/", "Last Download"),
            array("uploaded\.to\/(\?id=|file\/)", "Filename:"),
            array("filefront\.com\/", "http://static4.filefront.com/ffv6/graphics/b_download_still.gif"),
            array("uploadpalace\.com\/[a-zA-Z]{2}\/file\/[0-9]+\/", "Filename:"),
            array("speedyshare\.com\/[0-9]+\.html", "\/data\/"),
            array("momupload\.com\/files\/", "You want to download the file"),
            array("rnbload\.com\/file/" , "Filename:"),
            array("ifolder\.ru\/[0-9]+", "/random/images/"),
            array("adrive\.com\/public\/", "view"),
            array("easy-share\.com" , "file url:"),
            array("bitroad\.net\/download\/[0-9a-z]+\/", "File:"),
              array("megarotic\.com/([a-z]{2}\/)?\?d=", "(Filename:)|(All download slots assigned to your country)"),  
            array("egoshare.\com" , "Filename:"),
              array("megashare\.com\/[0-9]+", "Please Scroll Down and choose how you want to Download Your File")    
            );
            
            foreach($sites as $site) {
                if(eregi($site[0], $link)) {
                    check(trim($link), $x, $site[1], $site[2], $site[3]);
                    $x++;
                }
            }
            
            if($x > $maxlinks) {
                echo "<p style=\"text-align:center\">Maximum No ($maxlinks) Of links have been reached.</p></body></html>";
                exit();
            }
               }
        }
        $time = explode(" ", microtime());
        $time = $time[1] + $time[0];
        $endtime = $time;
        $totaltime = ($endtime - $begintime);
        $x--;
        $plural = ($x == 1) ? "" : "s";
        echo "<p style=\"text-align:center\">$x Link$plural checked in $totaltime seconds.</p>";
        }
        ?>
        </div>
        <BR>
        <BR>
        </body></html>
 
Status
Not open for further replies.
Back
Top