Pay Per Install
Signup to Zangocash today!


Installscash

Go Back   Pay Per Install > Pay-Per-Install.org > Pay Per Install

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-15-2008, 09:09 PM
Banned
 
Join Date: Feb 2008
Location: Phoenix Arizona
Posts: 274
Reputation: 0
kaev is on a distinguished road
Send a message via MSN to kaev
Default Tutorial: Auto Creating .rar files with diferen't sizes and names

Well seeing as I gave you guys a case study I'd feel bad if I didn't give a simple example of how to generate a few thousand files on your home pc. Just a heads up this post is going to be quite long and won't delve too deeply into anything, it assumes general knowledge of php/mySQL. This is not meant to be a step by step guide but rather a quick and dirty example. Furthermore I really don't have the time to play tech support unless you want to pay my hourly fee so I would really appreciate it if everyone actually tried to learn how to do this on their own.

To do this on a home windows machine you're going to need a few tools, first off you're going to need server software. I like WAMP:

Install PHP 5 Apache MySQL on Windows : WampServer

Alright after you've got that installed and running you're going to need an sql database to take file names from. What I like to do is search google for databases pertaining to adult videos,video game names, or warez releases. Don't give up because you're having problems finding one, take some time to practice your googlefu. If you're looking to buy one
Seocracy.com

has a few good ones for sale, as well as some free ones I haven't looked into.

Next you're going to need to import the database into mySQL through phpmyadmin. Google this step if you don't know how.

Alright so now you've got a database, where hopefully one of the fields is a good title for .rar files. Take a video games db from Seocracy for example where one of the database fields is the game title.

Next we're going to need to write up a quick a dirty little php script that will do the following.
1.)Connect to the databse
2.)Grab the field which contains the title
3.)Copy a .rar file
4.)rename it to the field name + .rar
5.) append data to the original file so that the file size slowly increases and the hash changes.
6.)go onto the next entry

This is a very very very rough example of this, it works, and does exactly as mentioned above and nothing more. I'd recommend learning some php and writing a much better one, the one I use has way more options than this as well as a GUI but it took me way too long to code to simply give out as a free gift .

Code:
<?php

$file = 'ack.rar';
$text="1234567890";



	
$connection = @mysql_connect('localhost','root','');

if(!$connection)
{
	exit(mysql_error());
}
if(!mysql_select_db('warez1'))
{
	exit(mysql_error());
}

$website_query ="select id, title from warez";

$website_result= mysql_query($website_query);

$website_row = mysql_fetch_array($website_result);


while($website_row = mysql_fetch_array($website_result))
{
print($website_row['title']);
echo " Completed </br>";
$fileopen = fopen("$file", 'a', 1);
$newfile = $website_row['title'] . ".rar";

fwrite($fileopen, $text);
fclose($fileopen);

if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
}
}


?>
Alright so this one connects to a database named warez1, copies a file named ack.rar, adds 10 bytes onto it(thats what the $text variable is for) Then goes onto the next title. The reason I use .rar files here is because you can append data to them without corrupting them like a .zip.

You're going to need to change a few things, like for example in this database the field title, contained the name of the database. Where as if you took one of seocracy's game databases you would need to change all instances of title to GAME.

So basically you need to save this as whatever.php, drop it in wamp/www and then run the file through your browser to generate your files in whatever folder all this is in. You will also need an original .rar file containg your exe similar to the mIRC method.

Final notes: I realize a lot of this is going to go over some peoples heads and not everyone understands this stuff. Don't get frustrated. Don't ask me stupid questions trying to get a more elaborate step by step. Actually google some of this, learn how it works. You want to make money from home? Start treating it like a job and less like a vacation, you could have taught yourself all this in under a week given 4 hours a day.

On that note I'm going to post a site that should be able to teach you how to do all of this really easily. I really urge the people that don't understand php/sql/whatever to actually go through these because I'm not going to be answering questions like, "How do I figure out what field in the database has something I can use for my .rar titles?"

So are you a newbie to sql/php/setting up WAMP/ etc? Alright all these can be answered by one easy to do class thats completely free and really awesome.
PHP Video Tutorials Like to watch the video instead of reading the book?
The first 13 or so are free and if you actually read through them you'll be able to do everything in this little guide and more. This shouldn't take more than a day or two to get through and will benefit you infinitely in your online quest for awesome amounts of cash.

Good Luck everybody, feel free to ask questions, or for more elaboration if I skipped over something. But please please please take the time to learn some php/sql before you do that way we can keep this thread on the course of actual money making techniques and ideas rather than a php tech support thread. If you want one on one help, I charge by the hour :P

Last edited by kaev : 08-10-2008 at 03:48 PM. Reason: Error in the code thanks TurboD!
Reply With Quote
  #2 (permalink)  
Old 04-15-2008, 09:11 PM
Banned
 
Join Date: Feb 2008
Location: Phoenix Arizona
Posts: 274
Reputation: 0
kaev is on a distinguished road
Send a message via MSN to kaev
Default

Shit, I meant to post this under making money...
Reply With Quote
  #3 (permalink)  
Old 04-15-2008, 09:15 PM
Vip Member
 
Join Date: Mar 2008
Posts: 115
Reputation: 1
steeky is on a distinguished road
Default

thanks man.
Reply With Quote
  #4 (permalink)  
Old 04-15-2008, 09:42 PM
Banned
 
Join Date: Feb 2008
Location: Phoenix Arizona
Posts: 274
Reputation: 0
kaev is on a distinguished road
Send a message via MSN to kaev
Default

Quote:
Originally Posted by steeky View Post
thanks man.
Anytime hope you put it to good use
Reply With Quote
  #5 (permalink)  
Old 04-15-2008, 09:53 PM
chapster's Avatar
Vip Member
 
Join Date: Mar 2008
Posts: 166
Reputation: 1
chapster is on a distinguished road
Default

Ok, so... just one minor question......
How do I figure out what field in the database has something I can use for my .rar titles?


hahaha, just kidding. Great post man
Reply With Quote
  #6 (permalink)  
Old 04-15-2008, 09:53 PM
Regular User
 
Join Date: Mar 2008
Posts: 95
Reputation: 1
turboD is on a distinguished road
Default

nice1!
in the script, did u not wanna have it .rar instead of .zip ?
Reply With Quote
  #7 (permalink)  
Old 04-15-2008, 09:55 PM
Banned
 
Join Date: Feb 2008
Location: Phoenix Arizona
Posts: 274
Reputation: 0
kaev is on a distinguished road
Send a message via MSN to kaev
Default

Quote:
Originally Posted by turboD View Post
nice1!
in the script, did u not wanna have it .rar instead of .zip ?
Good catch let me fix that
Reply With Quote
  #8 (permalink)  
Old 04-15-2008, 09:58 PM
Banned
 
Join Date: Feb 2008
Location: Phoenix Arizona
Posts: 274
Reputation: 0
kaev is on a distinguished road
Send a message via MSN to kaev
Default

Quote:
Originally Posted by chapster View Post
Ok, so... just one minor question......
How do I figure out what field in the database has something I can use for my .rar titles?


hahaha, just kidding. Great post man
You know I love ya chap
Reply With Quote
  #9 (permalink)  
Old 04-15-2008, 11:35 PM
GeoffreyF67's Avatar
Vip Member
 
Join Date: Apr 2008
Posts: 567
Reputation: 1
GeoffreyF67 is on a distinguished road
Default

Code:
$Count = rand(20,150);

$Command = 'dd if=/dev/urandom of="./downloads/' . $Title . '.wmv" bs=87615 count=' . $Count;

exec($Command);
Only works on Linux but it sure rocks Throw that into the app above and create a lot of files

G-Man
Reply With Quote
  #10 (permalink)  
Old 04-16-2008, 02:01 AM
trophaeum's Avatar
Admin
 
Join Date: Feb 2008
Posts: 1,342
Reputation: 10
trophaeum is on a distinguished road
Default

Quote:
Originally Posted by GeoffreyF67 View Post
Code:
$Count = rand(20,150);

$Command = 'dd if=/dev/urandom of="./downloads/' . $Title . '.wmv" bs=87615 count=' . $Count;

exec($Command);
Only works on Linux but it sure rocks Throw that into the app above and create a lot of files

G-Man
save yourself a LOT of cpu time and use /dev/random, no need for perfectly random files
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 05:47 AM.

Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.