basedir o logo
This commit is contained in:
1 parent
89a7613f9e
commit
641f214899
4 files changed
+6
-4
No files matched your search
@@ -28,7 +28,7 @@ foreach ($inputs as $arg => $value) {
|
||||
|
||||
$tempPath = tempnam(sys_get_temp_dir(), 'scan_').".xml";
|
||||
|
||||
exec("sudo nmap$args -oX '$tempPath' $targets 2>&1", $stderr, $code);
|
||||
exec($sudo ? "sudo " : "" . "nmap$args -oX '$tempPath' $targets 2>&1", $stderr, $code);
|
||||
if ($code) {
|
||||
http_response_code(500);
|
||||
die(implode("<br/>\n", $stderr));
|
||||
|
||||
Reference in new issue
Block a user