Exemplo n.º 1
0
            $p = $reshtml->find('p[class="qutinsubfont"]');
            $div = $reshtml->find('div[class="graphimg"]');
            $grp = $div[0]->first_child()->src;
            $img = $p[0]->first_child()->src;
        }
        $a = time();
        file_put_contents("tmp/{$a}.jpg", browse($img));
        file_put_contents("grp/{$a}.png", browse($grp));
        file_put_contents("tmp/{$a}.1.jpg", browse("{$server}/unsanswerit.php?iaodifu=1"));
        file_put_contents("tmp/{$a}.2.jpg", browse("{$server}/unsanswerit.php?iaodifu=2"));
        file_put_contents("tmp/{$a}.3.jpg", browse("{$server}/unsanswerit.php?iaodifu=3"));
        file_put_contents("tmp/{$a}.4.jpg", browse("{$server}/unsanswerit.php?iaodifu=4"));
        // graphic processing
        $str1 = processGraphic("grp/{$a}.png");
        // distance processing
        $str2 = processDistance("tmp/{$a}.jpg");
        // proceessing ends
        echo $str = $str1 + $str2;
    }
}
?>

<html>
	<head>
		<title>DESI BOYZ ADVANCE INSERTiON SYSTEM {FREAKARGE 4.0b}</title>
		<script type="text/javascript" src="./includes/keypress/keypress.js"></script>
		<script type="text/javascript">
			function c() {
				document.getElementById('imageAns').focus();
				keypress.register_many(combos);
				alert("loaded");
Exemplo n.º 2
0
function sendAnswereIt($iter)
{
    global $server;
    if (!file_exists("./answers/" . date('d-F') . ".json")) {
        return FALSE;
    }
    $html = browse("{$server}/AnswereIt.php");
    if (strstr($html, "AICompletion.php")) {
        return FALSE;
    }
    $reshtml = str_get_html($html);
    if ($reshtml && is_object($reshtml) && isset($reshtml->nodes)) {
        $p = $reshtml->find('p[class="qutinsubfont"]');
        $div = $reshtml->find('div[class="graphimg"]');
        $grp = $div[0]->first_child()->src;
        $img = $p[0]->first_child()->src;
    }
    $a = time();
    file_put_contents("tmp/{$a}.jpg", browse($img));
    file_put_contents("grp/{$a}.png", browse($grp));
    // graphic processing
    $str1 = processGraphic("grp/{$a}.png");
    // distance processing
    $str2 = processDistance("tmp/{$a}.jpg");
    // proceessing ends
    $str3 = $str1 + $str2;
    $ans = array();
    $ans = json_decode(file_get_contents("./answers/" . date('d-F') . ".json"), true);
    $hayKeys = array_keys($ans);
    $str = findClosest($str3, $hayKeys);
    if (isset($ans["{$str}"])) {
        $answer = $ans["{$str}"];
        $reshtml = str_get_html($html);
        $fieldList = array();
        if ($reshtml && is_object($reshtml) && isset($reshtml->nodes)) {
            $input = $reshtml->find('input');
            $loop = count($input);
            for ($i = 0; $i < $loop; $i++) {
                if (isset($input[$i]->attr["name"])) {
                    $fieldList[$input[$i]->attr["name"]] = $input[$i]->attr["value"];
                    if ($input[$i]->attr["value"] == "Type your answer here") {
                        if (isset($input[$i]->attr["style"])) {
                            if ($input[$i]->attr["style"] == 'border:0 none;') {
                                $fieldList[$input[$i]->attr["name"]] = $answer;
                            }
                        }
                    }
                }
            }
            $fieldList["x"] = rand(10, 50);
            $fieldList["y"] = rand(1, 15);
            $html = browse("{$server}/AnswereIt.php", 1, $fieldList);
            if (strstr($html, "AnswereItGraph.php")) {
                echo "\nANSWEREIT.{$iter} answered {$str} with answer : {$answer}";
                return TRUE;
            }
        }
    } else {
        echo "\nAnswer for this str not found : {$str}  original str : {$str3}";
        error_count();
        return TRUE;
    }
}
Exemplo n.º 3
0
            $grp = $div[0]->children(1)->src;
            //	$ans1 = $ans[0] -> src;
            //print_r($ans); exit();
        }
        $a = time();
        file_put_contents("ukbc/tmp/{$a}.jpg", browse($img));
        file_put_contents("ukbc/grp/{$a}.png", browse($grp));
        //	file_put_contents("ukbc/temp/$a.png", browse($ans1));
        file_put_contents("ukbc/tmp/{$a}.1.jpg", browse("{$server}/JWaXCZNAHZ.php?iaodifufewc=1"));
        file_put_contents("ukbc/tmp/{$a}.2.jpg", browse("{$server}/JWaXCZNAHZ.php?iaodifufewc=2"));
        file_put_contents("ukbc/tmp/{$a}.3.jpg", browse("{$server}/JWaXCZNAHZ.php?iaodifufewc=3"));
        file_put_contents("ukbc/tmp/{$a}.4.jpg", browse("{$server}/JWaXCZNAHZ.php?iaodifufewc=4"));
        // graphic processing
        $str1 = processGraphic("ukbc/grp/{$a}.png");
        // distance processing
        $str2 = processDistance("ukbc/tmp/{$a}.jpg");
        // proceessing ends
        echo $str = $str1 + $str2;
    }
}
?>

<html>
	<head>
		<title>DESI BOYZ ADVANCE INSERTiON SYSTEM {FREAKARGE 4.0b}</title>
		<script type="text/javascript" src="./includes/keypress/keypress.js"></script>
		<script type="text/javascript">
			/*		function c() {
			 document.getElementById('imageAns').focus();
			 keypress.register_many(combos);