Javascript FaceBook Auto Friend Add for iMacros

Posted by k | Posted in Black Hat, Facebook, Scripts | Posted on 28-01-2010

Black Hat SEO used to be about link building, the more the best. Now it’s all about friends.
Even Google, on its search pages results, now shows the tweets from the people with more followers on top.
It’s crucial to start working on gathering a lot of friends, the black hat way, of course.

Here’s a simple Javascript you can use on iMacros to auto add friends from application walls.

Open the file and change the configuration settings. It’s pretty easy to run.
This works best if you create the Facebook accounts with sexy female names and pictures.
You should also play a little of Mafia Wars or the Facebook application you choose to attack, prior to running the script.

As a bonus tip, you can also find the big groups dedicated to that application and use that id on the script. Don’t forget to change the mobInviteMessage to something like “add me lvl xxx”. (lvl means level and xxx is a number)
For instance, for Mafia Wars: http://www.facebook.com/group.php?gid=77452967759 or 92696586274 or 123756645559

And the best part of this is that they will be the ones inviting you to be their friends and not the opposite, so, you’re in peace with Facebook!

Get the file here: FaceBook Auto Friend Add

Setting cron from PHP

Posted by k | Posted in Black Hat, Scripts | Posted on 20-11-2009

When you do a web search for cron and PHP, you always find how to run PHP from cron, but there’s no info what-so-ever on how to set cron from PHP.

Doing BH means dealing with a lot of automated tasks. Automation on PHP means cron: crons that run scripts that do web spidering, process data, scrap content, auto post, you name it.

Doing REAL BH, requires more complex scripting: scripts that dynamically change the cron: that’s to say change the cron table according to external conditions, found by the script itself.

It’s not rocket science, and you only need to know two things:

  • 1.To format a classical unix timestamp to cron, you need to use this: $cron_formated_date = date("i H d m *", $timestamp);
  • 2.To set a cron from PHP, you need to write the above + the command to call to a text file and call shell_exec ("crontab /home/user/mycronfile.txt");

Knowing those two tricks, you’re free to create anything.

Adding a new line to your actual cron table
$comandstring = $cron_formated_date." /usr/local/php5/bin/php /home/user/myphpscript.php > /home/user/myphpscriptoutput.txt 2>&1";
$actualcron = shell_exec ("crontab -l");
$newcron = $actualcron."$comandstring\n";
$f = fopen ("mycronjobtemp.txt","w");
fwrite($f, $newcron);
fclose($f);
shell_exec ("crontab /hone/user/mycronjobtemp.txt");

How do I delay my cron 15 minutes?
$temp_cron_date = date("Y-m-d H:i:s", $timestamp);
$new_cron_formated_date = date("i H d m * ", (strtotime("+15 min", strtotime($temp_cron_date))));

How do I list my cron table?
shell_exec ("crontab -l");

How do I clear my cron table?
shell_exec ("crontab -r");

How do I reset my cron table?
Save the crons you always run to a txt file and load that file to the cron table to reset it.

How do I create random crons?
I leave that to you.

Why are random crons very important?

  • 1. Because Google is smarter than ever and will detect your auto content feeding pattern. (Unless you make a clever use of WP and postpone your posts on a random base)
  • 2. Feeds where you’re getting the content from detect your pattern and ban your IP. It has happened to me reading RSS feeds from major newspapers.