Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Articles

Fun PHP Script to Mass Text Message People

** Legal Disclaimer – I’m sure this is illegal to some extent and as such I do not endorse it, I share the code purely for educational purposes and am in no way responsible for anything bad that happens to you by using the code, especially being beat up by your siblings or ex’s. **

So I was bored a little and decided to look into how txtdrop.com works and I wrote a PHP Script that can send a text message to anybody using the txtdrop.com service. That was pretty easy, but then realized I didn’t have anything to send whoever I sent those messages… so I wrote another script that grabbed a random CNN feed.. and then a random story title from their random rss feed (They have like 20 different feeds) and then send that from a “random” person so that person couldn’t be blocked.
So here’s the final product:

 

( For a “prettier” code example please see my developer blog that has proper code highlighting: http://dev.blog.peterolds.es/2012/02/fun-php-script-to-mass-text-message/ )

#!/usr/bin/php -q
load($feedToLoad);
$output = $xmlDoc->saveXML();
$xml = new SimpleXMLElement($output);
$message = $xml->channel->title . ": ";
$message .= $xml->channel->item[ rand( 0, ( COUNT( $xml->channel->item ) - 1 ) ) ]->title;

echo $message;

$npa = AREA_CODE;
$exchange = FIRST_THREE;
$number = LAST_FOUR;
$email = rand( 10000, 99999 );

for ($i = 3; $i < count($argv); $i++){
	$message .= $argv[$i] . " ";
}
$message = trim($message);

$messageLimit = 145;
if (strlen($message) > $messageLimit) {
	$message = substr($message, 0, strrpos(substr($message, 0, ($messageLimit - 3)), ' ')) . '...';
}

$messageArr = array (
	"npa" => $npa,
	"exchange" => $exchange,
	"number" => $number,
	"email" => $email,
	"body" => $message,
	"submitted" => "1"
);

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://www.txtdrop.com/vista_send.php");
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_ENCODING, "gzip,deflate");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $messageArr);

curl_setopt($curl, CURLOPT_NOPROGRESS, 1);

$content = curl_exec($curl);
curl_close($curl);

echo "\n" . $content;
?>

 

This script is essentially ready to go.. all you have to do is switch out the $npa, $exchange and $number variables with the number that you want to spam… granted if you really wanted to you could hook that up to a $_GET variable and just grab that content via get.
So in the end the final result looks something like the video you will see below:
Please remember to be smart with this script.. I just wrote it out of an educational interest and the phone you see being spammed in the video is my phone.
Articles

Duxter’s first competition!

Quote:  http://duxter.com/beta/blog/1/entry-16-new-weekly-prize-week-1-modern-warfare-3/

————————

We obviously aren’t in expansion mode yet, we are still diligently developing new features, and refining old ones. That being said, we recognize that the community is more fun for all of you, when your friends (and potential friends) are on Duxter. In order to help you get some of those people on board, we are starting a new weekly incentive prize. We are going to start this out by giving away 1 copy of MW3, if this turns out to be successful, we will create bigger, better, and MORE prizes. Hopefully this works out, we’d be happy to give away XBOXs, PS3s, games, and SWAG galore. Lets get this started off right.

Each week Duxter will be giving an award to the member who brings the most new members on.

Rules:

In order to gain credit for a new member, the member must join through your unique member link. These can be found in the “beta invites” logo in the site header. Whether you share the link, share on facebook, or email the link to a new user, you will get credit. The only time you won’t get credit, is if someone joins by word of mouth (as we cant track this)
Only individuals are eligible (no teams, groups, companies etc… We will be creating different incentive plans for you)
One registration per person. We track IP addresses, if you or one of your fiends attempt to register multiple accounts from the same computer, those additional accounts will NOT count toward your total
Prize:

The user who brings in the most new members will be entitled to 1 FREE copy of Call of Duty: Modern Warfare 3. Winner will be judged at 11:59 PST on Monday November 7th. If you have already pre-ordered this game, we WILL allow you exchange this copy of MW3 for another game of equal or lesser value. Game copy will be on ANY system you choose.

*Note you will receive more beta invites if you use all 20 of yours

————————

Now… I’m not trying to promote myself by any means (I’m a Duxter developer) but I strongly suggest you join Duxter so you too can earn cool prizes like this! Simply click on this link to register: http://duxter.com/3/1301521434


Links

Spinning Image

A small Silverlight applet I wrote.

Articles

New Blog!

So I’ve decided to split my blog up into two parts. One which is this will be my personal random stuff blog and the new one (http://dev.blog.peterolds.es) will be mainly for my programming documentation that one might find. Hope you enjoy the less confusion!

Articles

Twitch.TV now supported on GamingSynergies

We’ve had a few requests to allow the embedding of Twitch.TV media streams on the site. And well.. I’m proud to say you can now input your Twitch Channel name and an embed window will be generated for you. To input your channel name simply edit your profile and at the bottom you should see something called Twitch Stream.

Granted I know right now it doesn’t look the greatest but more will come :) I promise.
Video

Strangely Enough a really fun song.

Ok as crazy as this sounds and as crazy as this song is, it’s really quite catchy. Enjoy.

Articles

Re: Is my computer all-knowing?

So a few days ago I was watching “The Tourist”  using DivX and noticed that my computer was using 14.3 Gigs of RAM!… I suppose my computer cached the entire movie to my RAM.

Quotes

Quote of the Day – September 22

Don't strive to make your presence noticed, but to make your absence felt.

Quotes

In regards to the new FaceBook changes

- Facebook does Dr.Seuss -

Do you like your new profile?
Would you use it for a while?
Would you like it in your house?
Would you click it with your mouse?

Doesn't matter if you don't,
We just don't care if you won't.
Send your feedback here or there...
We won't read it anywhere!

We fix things that are not broke
'Cause we think it's quite a joke!
We're in charge of this whole scene.
Next we'll turn your profile green!!

- Friendly Facebook User

Facebook changes are great.

Articles

Is my computer all-knowing?

So I just recently upgraded the RAM in my computer from 8 GB to 16 GB and was stoked at the possibilities I’d have – The main reason I upgraded is because my Ram was slowly starting to reach my 8 GB, with a few tasks open I was easily hitting 6 Gigs of Ram and there happened to be a sale on Newegg for Ram so I thought I’d upgrade… I guess it’s a good thing I did as now that I’m on 16 Gigs my computer seems to think it can be less efficient with it’s RAM. Currently I’m using 7,751 MB of Ram which would be seriously pushing my 8 GB lol..

Well.. I guess I won’t worry about it until I start hitting 15 Gig’s of Ram usage.