Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Xml file needed for further project development #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Nmap/Nmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down