@ 2015-09-29T03:54:34Z <?php
function match ($ip){
$file_check = '/var/log/iptables.log';
if (file_exists($file_check))
{
#$out=shell_exec('awk -v ip="$ip" \'$10 == ip\' /var/log/iptables.log');
#$out=shell_exec("grep 'SRC=10.1.1.103' /var/log/iptables.log || echo \$?");
#var_dump($out);
$out = shell_exec("(grep 'SRC=10.1.1.103' /var/log/iptables.log 2>&1 || echo \$?) && echo \$?"); var_dump($out);
}
else
{
echo "naah";
exit;
}
}
match($argv[1]);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Parse error: syntax error, unexpected token "match", expecting "(" in /in/1XKTe on line 3
Process exited with code 255 . Output for 5.4.0 - 5.4.45 , 7.4.33 Notice: Undefined offset: 1 in /in/1XKTe on line 24
naah Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.32 Notice: Undefined offset: 1 in /in/1XKTe on line 24
Warning: file_exists(): open_basedir restriction in effect. File(/var/log/iptables.log) is not within the allowed path(s): (/tmp:/in:/etc) in /in/1XKTe on line 7
naah Output for 7.3.32 - 7.3.33 naah preferences:dark mode live preview
263.91 ms | 401 KiB | 373 Q