leeching a whole section from other forums?

applepod124

New Member
well sharpleech but is is only for windows and can only leech from warez sites. I don't have a link. just google it.
 

GameSlim.com

New Member
i Found this vbForum Leecher thing, it's online and easy to configure.. but I'm getting an error running it.. Something like "DATA you are trying to post is lesser than or more than your current table columns".. something like that. i'm using vb3.8.2, i'm guessing this one was designed for an older version of VB.

I hope someone can take a look at the code and make it work for 3.8.2

There are 3 files:
0config0.php
checkuserandpass.php
leecher.php

0config0.php
Code:
<?
############################## Database Settings ##############################
	//	Prefix that your vBulletin tables have in the database.
	$dbprefx = "table_prefx";
	
	//	This is the hostname or IP address and port of the database server.
	$DBhost = "localhost";

	//	This is the username and password you use to access MySQL.
	$DBuser = "database_user";
	$DBpass = "database_password";


	//	This is the name of the database where your vBulletin will be located.
	$DBname = "database_name";
############################## Admin login ##############################
	//	This is the username and password you use to access Admin Control Panel.
	$user = "pishfarz";
	$pass = "pishfarz";
?>



checkuserandpass.php
Code:
<?

$username=$_POST['username'];
$password=$_POST['password'];
require("0config0.php");
if ($username == $user and $password == $pass) {
setcookie("login", "yes");
print '<meta http-equiv="refresh" content="2; URL=leecher.php">';
print 'Redirecting to your control panel ...';
}else{  
print '<meta http-equiv="refresh" content="2; URL=index.php">';
print 'Redirecting ( Username or password is not true ) ...';
}
?>



leecher.php
Code:
<?PHP
?>
<title>Vbulletin Leecher !</title>
<style type="text/css">
<!--
.input {
background-color:#FFCCCC; font-family:verdana; font-size:8pt; padding:4px; border:#000000 1px solid;}
-->
</style>
<body style="font-family:Verdana; font-size:9pt;">
<p style="padding:10px;">
<?PHP
############################### Login ###############################
if ($_COOKIE['login']!="yes") { ?>
<div align="center">
  <form id="form1" name="form1" method="post" action="checkuserandpass.php">
    <table border="0" align="center" cellpadding="8">
      <tr>
        <td>Username :</td>
        <td><input name="username" style="font-size:11pt; font-weight:bold" type="text" class="input" size="30" /></td>
      </tr>
      <tr>
        <td>Password :</td>
        <td><input name="password" style="font-size:11pt; font-weight:bold" type="password" class="input" size="30" /></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
          <input type="submit" name="submit" id="button" value="Submit" />
        </div></td>
      </tr>
    </table>
  </form>
  </div>
<? }else{
if (!$_POST['submit']) {
############################### Before Submit ###############################
?>
<div align="center">
  <form id="form1" name="form1" method="post" action="<?=$_SERVER['PHP_SELF'];?>">
    <table border="0" align="center" cellpadding="8">
      <tr>
        <td>File Name :</td>
        <td><input name="f" value="http://" type="text" class="input" size="80" /></td>
      </tr>
      <tr>
        <td>Source URL :</td>
        <td><input name="source" value="http://" type="text" class="input" size="80" id="source" /></td>
      </tr>
      <tr>
        <td>Fourm ID :<span class="style1"></span></td>
        <td><input name="fid" type="text" class="input" size="2" /></td>
      </tr>
      <tr>
        <td>User Name :</td>
        <td><input name="username" type="text" class="input" size="40" /></td>
      </tr>
      <tr>
        <td>User ID :</td>
        <td><input name="uid" type="text" class="input" size="3" /></td>
      </tr>
      <tr>
        <td>User Name 2 :</td>
        <td><input name="username2" type="text" class="input" size="40" /></td>
      </tr>
      <tr>
        <td>User ID 2 :</td>
        <td><input name="uid2" type="text" class="input" size="3" /></td>
      </tr>
      <tr>
        <td>User Name 3 :</td>
        <td><input name="username3" type="text" class="input" size="40" /></td>
      </tr>
      <tr>
        <td>User ID 3 :</td>
        <td><input name="uid3" type="text" class="input" size="3" /></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
          <input type="submit" name="submit" id="button" value="Submit" />
        </div></td>
      </tr>
    </table>
    <label></label>
  </form>
  </div>
<?
}
else
{
############################### After Submit ###############################
$file_name = $_POST['f'];
$file = @file_get_contents($file_name);
preg_match_all("|<a href=\"(.+)t-(.+)\">(.+)</a>|isU",$file,$aUrl);
$source = $_POST['source'];
require("0config0.php");
/* Connecting, selecting database */
$link = mysql_connect($DBhost, $DBuser, $DBpass) or die(mysql_error());
mysql_select_db($DBname) or die(mysql_error());
for ($i=0; $i < count($aUrl[2]); $i++) {
$num = $i+1;
print "$num. ";
$file2 = file_get_contents($source."t-".$aUrl[2][$i]);
preg_match_all("|<div class=\"username\">(.+)</div><div class=\"date\">(.+)</div></div><div class=\"posttext\">(.+)</div></div>|isU",$file2,$at);
$randomnum = 0;
$forumid = $_POST['fid'];
$userid = $_POST['uid']; 
$users[] = array($_POST['username'],$_POST['uid']);
$users[] = array($_POST['username2'],$_POST['uid2']);
$users[] = array($_POST['username3'],$_POST['uid3']);

if (!$TITLE = $aUrl[3][$i]) {$TITLE = "Dom.ir - Free Domain and Tools";}
print "$TITLE<br>";
$oo = 0;
$search = array ("|\<br /\>|isU","|\<br>|isU","|\'|","|\"|");
$replace = array ("","","\\\'","\\\"");
$TITLE = preg_replace($search, $replace, $TITLE);
while ($MESSAGE = $at[3][$oo]) {
if ($oo < 10) {
if (!$MESSAGE) { 
$MESSAGE = "Register Free Domain now at http://www.dom.ir "; }
if ($oo==0){
$randomnum = rand(0,2);
$USER_NAME = $users[$randomnum][0];
$userid = $users[$randomnum][1];
}else{
if ($at[1][$oo] == $at[1][0]) {
$USER_NAME = $users[$randomnum][0];
$userid = $users[$randomnum][1];
}else{
$randomnum2 = rand(0,2);
$USER_NAME = $users[$randomnum2][0];
$userid = $users[$randomnum2][1];
}
}
$search = array ("|\<br /\>|isU","|\<br>|isU","|\'|","|\"|");
$replace = array ("","","\\\'","\\\"");
$MESSAGE = preg_replace($search, $replace, $MESSAGE);
preg_match_all("/http:\/\/(.*)[\< \:\)\"\n]/Ui",$MESSAGE,$http);
for ($ii=0; $ii<count($http[1]); $ii++) {
$http[1][$ii] = "http://".$http[1][$ii];
$t30 = str_replace(array(".bmp",".jpg",".png",".gif",".jpeg"), "",$http[1][$ii]);
if ($t30 != $http[1][$ii] and substr($http[0][$ii],-1,1)!=")") {
$ii2 = $ii+1;
if (substr($http[0][$ii2],-1,1)==")") {
$tag_img = "[url=\"".substr(trim($http[0][$ii2]),0,-5)."will_remove_mishe".substr(trim($http[0][$ii2]),-5,-1)."\"][img]".trim($http[0][$ii])."[/img][/url]";
$http[0][$ii2] = trim($http[0][$ii2]);
$http[0][$ii2] = preg_replace("|\?|", "\\\?", $http[0][$ii2]);
$regex = "|(".$http[0][$ii2]."|isU";
$MESSAGE = @preg_replace($regex, "", $MESSAGE);
}else{
$tag_img = "\n[img]".trim($http[1][$ii])."[/img]\n";
}
$http[1][$ii] = trim($http[1][$ii]);
$http[1][$ii] = preg_replace("|\?|", "\\\?", $http[1][$ii]);
$regex = "|".$http[1][$ii]."|isU";
$MESSAGE = @preg_replace($regex, $tag_img, $MESSAGE);
}else{
$tag_url = "[url=\"".trim($http[1][$ii])."\"]".trim($http[1][$ii])."[/url]";
$regex = "|".trim($http[1][$ii])."|isU";
$regex = preg_replace("|\?|", "\\\?", $regex);
$MESSAGE = @preg_replace($regex, $tag_url, $MESSAGE);
}}
$MESSAGE = @str_replace("()", " ", $MESSAGE);
$MESSAGE = @str_replace("will_remove_mishe", "", $MESSAGE);
$sql_t_2 = "SELECT `threadid` FROM `" . $dbprefx . "thread` ORDER BY `threadid` DESC LIMIT 1";
$res_t_2 = mysql_query($sql_t_2) or die(mysql_error());
$row_t_2 = mysql_fetch_array($res_t_2);
if ($oo==0){$thid = $row_t_2[0]+1;}
$sql_p_2 = "SELECT `postid` FROM `" . $dbprefx . "post` ORDER BY `postid` DESC LIMIT 1";
$res_p_2 = mysql_query($sql_p_2) or die(mysql_error());
$row_p_2 = mysql_fetch_array($res_p_2);
$postid = $row_p_2[0]+1;
if ($oo==0){$paren=0;}else{$paren==$postid;}
$sql_p = "INSERT INTO `" . $dbprefx . "post` VALUES ('', $thid, $paren, '" . $USER_NAME . "', $userid, '" . $TITLE . "', " . time() . ", '" . $MESSAGE . "', 1, 0, '127.0.0.1', 0, 1, 0, 0, 0)";
$res_p = mysql_query($sql_p) or die(mysql_error());
if ($oo == 0) {
$sql_t = "INSERT INTO `" . $dbprefx . "thread` VALUES ('', '" . $TITLE . "', '', $postid, $postid, " . time() . ", $forumid, 0, 1, 0, 0, 0, '" . $USER_NAME . "', $userid, '" . $USER_NAME . "', " . time() . ", " . rand(2222,8888) . ", 0, '', 1, 0, 0, 0, 0, '', NULL)";
$res_t = mysql_query($sql_t) or die(mysql_error());
}
$sql_t_2 = "SELECT `threadid` FROM `" . $dbprefx . "thread` ORDER BY `threadid` DESC LIMIT 1";
$res_t_2 = mysql_query($sql_t_2) or die(mysql_error());
$row_t_2 = mysql_fetch_array($res_t_2);
$forumid2 = $row_t_2[0];
if ($oo==0){$the1="`threadcount`+1";}else{$the1="`threadcount`";}
$sql_f = "UPDATE `" . $dbprefx . "forum` SET `replycount` = `replycount`+1 , `threadcount` = ".$the1." , `lastpost` = '" . time() . "', `lastposter` = '" . $USER_NAME . "', `lastpostid` = '".$postid."', `lastthread` = '" . $TITLE . "', `lastthreadid` = '".$forumid2."' WHERE `forumid` = ".$forumid." LIMIT 1";
$res_f = mysql_query($sql_f) or die(mysql_error());
$sql_up = "UPDATE `" . $dbprefx . "user` SET `lastpostid` = '".$postid."' , `posts` = `posts`+1 WHERE `userid` = ".$userid." LIMIT 1";
$res_up = mysql_query($sql_up) or die(mysql_error());
if ($oo!=0){
$sql_up = "UPDATE `" . $dbprefx . "thread` SET `replycount` = `replycount`+1 WHERE `threadid` = ".$thid." LIMIT 1";
$res_up = mysql_query($sql_up) or die(mysql_error());
}
} $oo++; }
}
print "<br /><br />" . $i . " Thread Ba Movafaghiat Ersaal SHOOOD !!";
mysql_close($link) or die(mysql_error());
}
} 
?></p>
</body>
 

Mahdi

New Member
Have you ever tried Vbulletin BOT? for some people it works and sometime it does not.

Give me your cpanel account and i would try to do something for you.

I leeched about 11,000 threads to my forum. i am using Vbulletin BOT.

What is your forum address?!
 
Top