Overview: (you can skip this part)
After seeing that college student Christopher Soghoian built a NWA boarding pass generator, I thought wow, clever, now maybe the TSA will see how stupid and broken their security measures actually are. Well, not even a day later I found out how stupid I was. Instead of making security changes, Congressman Edward Markey (D-Mass) called for Mr. Soghoian's immediate arrest. Brilliant! The FBI then showed up at his house and served him with some papers ordering him to take the generator down immediately. (I think an email or a phone call would have been just as effective). He took it down. No biggie, right? Wrong. At 2 am that night they bust out his window and take all his computer stuff. Necessary? Apparently. After all, he made a boarding pass generator.
Now, I'm going to show you an ANYTHING generator. Warning: this is extremely dangerous PHP code that will probably get your house (and mine) raided. Good thing they'll never figure out my name.
If you just want to see the final result, here's my Gold Star Generator.
Code:
The actual PHP code (I named mine anything_generator.php):
$template = file_get_contents('generator_template.html'); foreach ($_REQUEST as $name=>$value) $template = str_replace($template, "##$name##", $value); echo $output; ?>
Note, this PHP is the hard part. He was already given the NWA boarding pass template by going to View Source in his browser. Also note, he's a grad student and I'm only undergrad so he's probably much smarter and his PHP code much shorter.
Here's the form you fill out (goldstar_generator.html):
Gold Star Generator
On to the template. (generator_template.html):
CONGRATULATIONS ##job## ##name## YOU GET A GOLD STAR
##job##
##name##Please accept this GOLD STAR for:
##reason##How it works:
Simple. On the form make the input names anything you want to use on the template. Put these variables into the template just like I did. Done. 3 lines of PHP can get your house raided.Since Chris already made the NWA boarding pass, here's some other generators that WILL get you in trouble too.
DO NOT MAKE THESE UNDER ANY CIRCUMSTANCES:
- TSA Badges
- Driver's licenses
- Passports
- Subway stamps
- Coupons
- Bottle return slips
- Lift tickets
Please check out my Gold Star Generator and if you make one for Congressman Edward Markey please fax it to his office at .
Technorati Tags: boarding pass, generator
Comments
Anonymous (not verified)
Wed, 04/13/2011 - 04:19
Permalink
Tory Burch Reva flats
It's been great time to read your article, really informative thanks keep it up.