make cash with p2p and nfo’s
lets pick up another posting from harro, called the "part 2" from "make cash with p2p".
i like it how he does the renaming after searches from real people in warez channels on the efnet but what i really like is to get the filenames before people search for it.
so lets scrape a release/nfo source!
all you need is php, a internet connection ...
doesn't matters if the script runs on a server or on your local machine. it's only important that php or your webserver has write rights to the shared directory ($conf['dir']), the directory is correct set (slash at the end, like in the example), your p2p application uses this folder too and your exe and zip file (as harro described it) from rasermedia (or whatever you use) is also correct configurated.
... and this file:
Permalink to this Snippet
for my more skilled readers i have a small patch to make it more fun and prevent duplicate content warnings from a few p2p applications.
first install rar on your linux box. debian: apt-get install rar
now replace this part:
if( !file_exists( $conf['dir'].$name.'.zip' ) ) {
copy( $conf['zip'], $conf['dir'].$name.'.zip' );
}
with this:
if( !file_exists( $conf['dir'].$name.'.zip' ) ) {
file_put_contents( 'release.nfo', "--\r\n".$match[1]."\r\n--" );
$exec = 'rar a -afzip "'.$conf['dir'].$name.'.zip" '.$conf['exe'].' release.nfo -ep -s';
exec( $exec );
}
for both versions, with and without patch, it's the same like with every script here: i don't do any error handling or bug fixing... try it, if it doesn't work for you - fix it.
btw. you have to execute that script a few times an hour. like every 10 minutes. a cronjob would look like this:
*/10 * * * * php /your/file.php
remember that you have to use absolute pathes to use it with the cronjob above. to test it just change to your home directory with cd ~ and execute whats executed in your crontab... ;)
if you still not earning money: press ALT+F4.
... but if you understand what all this code means: start earning money!

if you want to donate me a few bucks for this, i think, really awesome idea - write me a comment and i'll contact you because i need a new pc! :P
Jun 3rd 2007
it seems file_put_contents worked with php5+ only,
is there a solution with fopen, fwrite, and fclose?
Jun 3rd 2007
if( !function_exists( 'file_put_contents' ) ) {define( 'FILE_APPEND', 1 );
function file_put_contents( $file, $data, $flag = false) {
$mode = ( $flag == FILE_APPEND ) ? 'a' : 'w';
$fp = fopen( $file, $mode );
if( $fp === false ) {
return 0;
}
else {
if( is_array( $data ) ) $data = implode( $data );
$bytes = fwrite( $fp, $data );
fclose( $fp );
return $bytes;
}
}
}
use this ;)
Jun 3rd 2007
awesome idea man, thanks for sharing!
im having a bit of problem with the 2nd version of the script (with rar).
when i run it, it generates the files but the zip ones are only 150 bytes each, it is only the filename and no content. also aMule its loading only a couple of the files from the share…
Jun 4th 2007
same problem with client mldonkey: all files have the same file size, so only one is shared.
and using the duplicate content hack does not help, i get zip files with the main.exe only…
Aug 3rd 2007
Hey man, love all the code, keep it coming. I donated a few bucks to you, and have more money on the way if some of this works out for me
Aug 9th 2007
thanks, a really cool idea :)
i built something really nice for that…
one question- all the exe files have the same hash, so my client is only sharing one of them… what can i do about it? you think adding some null’s at the end of the file would help?
nadav
Aug 9th 2007
create a .nfo file with some stupid infos in it like the name of the file etc. and include it.
(you can also add just a .sfv with some random string etc.)
Aug 10th 2007
you mean inside the zip?
yeah, i did it… the zip are okay… my client share them all
but the exe files are the problem. should i just not share them? only the zip?
Aug 13th 2007
Lots of people are doing this now, with the same filenames, so your best bet is to go to a different server, rather than efnet where 20 people are sparsing file names.
Aug 17th 2007
I’m taking from 5 different places :)
It works great. I get about 200-250 installs / day from p2p…
Aug 27th 2007
I’m sharing 20.000 files through limewire (all are zipped and only 22kb) but i’m getting maybe 10installs/day. How can I improve this? I can share more files but limewire can’t handle it :(