Pay Per Install
Earning4u

Zangocash is now Pinball Publisher Network

Join Loudmo


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

Reply
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Unread 08-14-2008, 09:47 PM
Regular User
 
Join Date: Aug 2008
Posts: 9
Reputation: 0
fatboy is on a distinguished road
Default

Ok, here is the script - nice and easy:

Code:
#!/usr/bin/perl -w

# This is the name of the file with all your random filenames in
$filenames = "names";

# Max size for created files (Mb)
$maxsize = 50;

open(NAMES, $filenames) || die "Cannot open $filenames for reading\n";

foreach(<NAMES>)
{
        chomp();
        $size = int(rand($maxsize));
        `dd if=/dev/zero of=$_ bs=1024k count=$size`;
}
close(NAMES);
In the same directory as you have this script, create a file called 'names'. In that file put the list of filenames you want to create, for example my test names file looks like:

Code:
filename1.exe
whatever.exe
musthaveapp.exe
As it stands, the script will create files with the names in that list up to 50Mb in size. To make the max size smaller or bigger, alter the number in the line:

$maxsize = 50;

So if you want 100Mb max size, change the 50 to a 100. If you want a Gb file change it to 1000.

Hope that helps you out - I have tested the script and it works fine
Don't forget me when you make the first million dollars!!

Last edited by fatboy : 08-14-2008 at 09:49 PM.
Reply With Quote
  #12 (permalink)  
Unread 08-15-2008, 05:30 AM
Weed is bad, gimme some
 
Join Date: Jun 2008
Posts: 167
Reputation: 3
TheRogue is on a distinguished road
Send a message via Yahoo to TheRogue
Default

Quote:
Originally Posted by fatboy View Post
Ok, here is the script - nice and easy:

Code:
#!/usr/bin/perl -w

# This is the name of the file with all your random filenames in
$filenames = "names";

# Max size for created files (Mb)
$maxsize = 50;

open(NAMES, $filenames) || die "Cannot open $filenames for reading\n";

foreach(<NAMES>)
{
        chomp();
        $size = int(rand($maxsize));
        `dd if=/dev/zero of=$_ bs=1024k count=$size`;
}
close(NAMES);
In the same directory as you have this script, create a file called 'names'. In that file put the list of filenames you want to create, for example my test names file looks like:

Code:
filename1.exe
whatever.exe
musthaveapp.exe
As it stands, the script will create files with the names in that list up to 50Mb in size. To make the max size smaller or bigger, alter the number in the line:

$maxsize = 50;

So if you want 100Mb max size, change the 50 to a 100. If you want a Gb file change it to 1000.

Hope that helps you out - I have tested the script and it works fine
Don't forget me when you make the first million dollars!!
yep it works like a charm:> but quick question, i dont have the names in the *.exe format, after creating the applications, can i rename'em in *.exe? something like mv * *.exe?
Reply With Quote
  #13 (permalink)  
Unread 08-15-2008, 06:13 AM
trophaeum's Avatar
Administrator
 
Join Date: Feb 2008
Posts: 1,227
Reputation: 10
trophaeum is on a distinguished road
Default

Code:
#!/bin/sh
for i in `ls`; do
mv ${i} ${i}.exe
done
Reply With Quote
  #14 (permalink)  
Unread 08-15-2008, 10:33 AM
Regular User
 
Join Date: Jun 2008
Posts: 71
Reputation: 3
josh78 is on a distinguished road
Send a message via MSN to josh78 Send a message via Yahoo to josh78
Default

that look good, but what about the file sizes? let's say i need the file to be with the real software size, how can i do that?
Reply With Quote
  #15 (permalink)  
Unread 08-24-2008, 08:14 AM
Regular User
 
Join Date: Apr 2008
Posts: 215
Reputation: 3
draculx is on a distinguished road
Default

Quote:
Originally Posted by fatboy View Post
sorry, by dummy file i mean a file that is of a size you want (eg 12Mb) but contains nothing. You bind your payload exe to that and make it run first.

But yes, if you have a list of names in a text file it is do-able or if you just want really random names (eg 2gy23jk.exe or something) thats easy to do as well


EDIT: Got confused, I meant the linux dd command, not the touch command to create certain sized files
I binded the fake exe to a payload but i ended up with a smaller file then the payload itself which i why i guess it did not run and infect. Any ideas?
Reply With Quote
  #16 (permalink)  
Unread 08-24-2008, 11:10 AM
Regular User
 
Join Date: Aug 2008
Posts: 10
Reputation: 0
0x90 is on a distinguished road
Default

draculx: you have to use /dev/urandom instead of /dev/zero but it will take a lot of time to generate files.
Reply With Quote
  #17 (permalink)  
Unread 08-24-2008, 01:16 PM
trophaeum's Avatar
Administrator
 
Join Date: Feb 2008
Posts: 1,227
Reputation: 10
trophaeum is on a distinguished road
Default

Quote:
Originally Posted by 0x90 View Post
draculx: you have to use /dev/urandom instead of /dev/zero but it will take a lot of time to generate files.
/dev/random will work as well and be FAR faster, sure its not perfect but meh
Reply With Quote
  #18 (permalink)  
Unread 08-24-2008, 03:07 PM
Regular User
 
Join Date: Apr 2008
Posts: 215
Reputation: 3
draculx is on a distinguished road
Default

i was trying to do the binding with redemption binder.
I`m supposed to use this code above in a php script? i`M confused here.
how do i run this code?
Reply With Quote
  #19 (permalink)  
Unread 08-24-2008, 03:55 PM
trophaeum's Avatar
Administrator
 
Join Date: Feb 2008
Posts: 1,227
Reputation: 10
trophaeum is on a distinguished road
Default

1 is a perl script, another is a shell script, if you dont know what your doing with those then your best to run away from this code about now
Reply With Quote
  #20 (permalink)  
Unread 08-24-2008, 08:22 PM
Regular User
 
Join Date: Apr 2008
Posts: 215
Reputation: 3
draculx is on a distinguished road
Default

alright, is there any other way for those with no coding knowledge?
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fake Files Generator + File Updaters -> $30 gabibeowulf Buy / Sell / Trade 7 10-29-2008 11:02 PM
Which host to choose for DRM file hosting (fake codecs, etc) FadeToBlack Pay Per Install 5 10-06-2008 04:54 PM
cant get the file generator to work... utzxubiru Pay Per Install 0 09-22-2008 11:29 AM
multi-file generator /renamer hippo Buy / Sell / Trade 4 08-14-2008 10:43 AM



All times are GMT. The time now is 10:04 AM.

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