Add something new to Virb:

Virb

Are you sure you want to delete that?

or Cancel

 

Posted on Jun 20, 2008

Hacking Friends with

First, I feel it's appropriate to add a short word of warning. This is a bad article. It violates the Terms of Service on any site you'd deem worth it. Plus, I don't even do this. Honest. No, seriously, I don't.


Ok, fine. I did test this on a couple sites just for fun. What?


Firefox iMacros Addon


iMacros Firefox Addon


The first thing you need is the infinitely handy Firefox addon iMacros.


iMacros allows you to automate Firefox tasks. Record and replay repetitious work. "If you love the Firefox web browser, but are tired of repetitive tasks like visiting the same sites every days, filling out forms, and remembering passwords, then iMacros for Firefox is the solution you've been dreaming of!" Yeah well, we're using it for the power of evil, in this case.


Finding Users


For this example, we're going to use a site called BlogCatalog, but really any site will do.


The first thing you need is a userlist or some way to easily jump from user to user without much fuss. Luckily BlogCatalog gives us a page in their directory that outputs a random assortment of users.


alt


We can reload this page over and over, each time giving us a choice of randomly selected users to choose from. We're only interested in the first box on the top left though. This will be the link we click to visit a random BlogCataloger's page each time.


Randomization


As anyone who has done an Armorsmith grind in Star Wars Galaxies back in the day will tell you, a good macro needs some random delays. That's why I use iMacro's ability to run Javascript rather than just recording a standard macro.


With Javascript, I can assign my loops as well as generate a random number variable to insert into various PAUSE lines of the resulting macro.


The Codez


Note: You do need to do some editing for this to work correctly for you. Particularly the x and y coordinates for the thumbnail. If you can't figure that part out for yourself, I question whether you should be participating in this little experiment anyway.



var macro;
var jsLF = "\n";
var i, retcode, errtext;
var MyDelay;
var MyPosts;

/* Define the Looping */
iimDisplay("Loops");

for ( i = 1; i < = 50; i++) {
iimDisplay("loop "+i);

/* Assign a Random Delay for Hax0ring */
MyDelay = Math.round(10*Math.random());
iimDisplay("Random wait t="+MyDelay);

/* Create the Macro */
macro = "CODE:";
macro += "SET !ERRORIGNORE YES" + jsLF;
macro += "URL GOTO=http://www.blogcatalog.com/user" + jsLF;
macro += "WAIT SECONDS=" + MyDelay + jsLF;
macro += "CLICK X=19 Y=188" + jsLF;
macro += "WAIT SECONDS=" + MyDelay + jsLF;
macro += "TAG POS=1 TYPE=A ATTR=TXT:Add To My Friends" + jsLF;
macro += "WAIT SECONDS=" + MyDelay + jsLF;

retcode = iimPlay(macro);
if (retcode < 0) { // an error has occured
errtext = iimGetLastError();
alert(errtext);
}

if (retcode < 0) { // an error has occured
errtext = iimGetLastError();
alert(errtext);
break;
}

}

Can Has Friends


Basically, what iMacro does is run through my Javascript as if it were running through a standard macro. The javascript sets the variables, such as the loop and delay between actions (MyDelay) from the random number generated.


The result is an output of a new macro upon each run of the Javascript. This new macro has single-use delay values between each line. So, for example, if I'm running the Javascript 3 times, the first run will pause for 4 seconds between actions, the next will be 2 and then next might be 10. How exciting.


Now don't run off to follow everyone on Twitter, Plurk or the other hundreds of networks out there. Like I said, this is obviously against most sites' Terms of Service and will likely get you banned if you abuse it.


Use your macroz skillz 4 guud.



Related posts







Loading comments...

Likes

Details

Viewed 46 times

© 2008 Travis Vocino

virb.com/t/677011
tweet!

Flag this text post!

Flag this text post as:

or Cancel

 

Advertisement

Flag this profile!

Flag this profile as:

or Cancel