From e9bbd0f73a25a2fb99d89accc32cba40e13fad9b Mon Sep 17 00:00:00 2001 From: Kate Saikishore Date: Wed, 25 Mar 2020 21:57:58 +0530 Subject: [PATCH] Xml file needed for further project development The temparay folder dosn't apper for the people and its hard to find the saved XML file , the extension of the files changes for every reload so lets make the change to XML apper where it doesn't take more space for every scan nmap uses the same .XML file. --- src/Nmap/Nmap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nmap/Nmap.php b/src/Nmap/Nmap.php index 4e56b33..53cac1f 100644 --- a/src/Nmap/Nmap.php +++ b/src/Nmap/Nmap.php @@ -57,7 +57,7 @@ public static function create() public function __construct(ProcessExecutor $executor = null, $outputFile = null, $executable = 'nmap') { $this->executor = $executor ?: new ProcessExecutor(); - $this->outputFile = $outputFile ?: tempnam(sys_get_temp_dir(), 'nmap-scan-output.xml'); + $this->outputFile = $outputFile ?: 'nmap-scan-output.xml'; $this->executable = $executable; // If executor returns anything else than 0 (success exit code), throw an exeption since $executable is not executable.