<?php
if(isset($_POST['urls'])) {
$urls = explode("\n", trim((string)$_POST['urls']));
$sh = time() % rand(1000,9999) * rand(10,99); $sh .= '.sh';
$f = fopen($sh, 'w');
foreach($urls as $k=>$v) {
fwrite($f, '/usr/bin/cutycapt --url='.trim($v).' --out=img'.$k.'.png'."\n");
}
fclose($f);
system('/usr/bin/xvfb-run --server-args="-screen 0, 1024x768x24" /bin/bash '.$sh);
foreach($urls as $k=>$v) {
echo '<img src="img'.$k.'.png">
';
}
}
?>
<form action="capt.php" method="POST">
<textarea name="urls"></textarea>
<input type="submit">
</form>
root@laptop:/home/iam# grub-probe -t device /
/dev/sda6
root@laptop:/home/iam# grub-probe -t drive /
(/dev/sda,msdos6)