Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $carrierArray = array("@csouth1.com", "@txt.att.net", "@messaging.sprintpcs.com", "@tmomail.net", "@vtext.com", "@wireless.bellsouth.com", "@bellsouthtips.com", "@blsdcs.net");
- $argCount = count($argv);
- for($i = 0; $i < $argCount; $i++)
- {
- if(strcmp($argv[$i], "-t") == 0)
- {
- $timesToRun = (int)$argv[$i + 1];
- $i++;
- }
- else if(strcmp($argv[$i], "-c") == 0)
- {
- if(strcmp($argv[$i + 1], "csouth") == 0) $carrier = 0;
- else if(strcmp($argv[$i + 1], "att") == 0) $carrier = 1;
- else if(strcmp($argv[$i + 1], "sprint") == 0) $carrier = 2;
- else if(strcmp($argv[$i + 1], "tmobile") == 0) $carrier = 3;
- else if(strcmp($argv[$i + 1], "verizon") == 0) $carrier = 4;
- else if(strcmp($argv[$i + 1], "bsouth") == 0) $carrier = 5;
- else if(strcmp($argv[$i + 1], "bsouthbb") == 0) $carrier = 6;
- else if(strcmp($argv[$i + 1], "bsouthm") == 0) $carrier = 7;
- else $error = 1;
- $i++;
- }
- else if(strcmp($argv[$i], "-n") == 0)
- {
- $number = $argv[$i + 1];
- $i++;
- }
- else if(strcmp($argv[$i], "test.php") == 0)
- {
- // Don't do anything
- }
- else
- {
- $error = 1;
- }
- }
- if($error or ($argCount == 1))
- {
- print("Usage: php test.php -c [carrier] -n [phone number] -t [number]\n");
- print("Possible carriers: [parameter to use]\n");
- print("Cellular South: csouth\n");
- print("AT&T: att\n");
- print("Sprint: sprint\n");
- print("T-Mobile: tmobile\n");
- print("Verizon: verizon\n");
- print("Bell South: bsouth\n");
- print("Bell South (Blackberry): bsouthbb\n");
- print("Bell South Mobility: bsouthm\n");
- exit(1);
- }
- $email = $number . $carrierArray[$carrier];
- for($i = 0; $i < $timesToRun; $i++)
- {
- mail($email, "You lost the game.", "TEST", "FROM: ", "-f fuckoff@and.die");
- sleep(1);
- }
- ?>
Add Comment
Please, Sign In to add comment