PHP Class Nmap\Nmap

Author: William Durand ([email protected])
Author: Aitor García ([email protected])
Mostrar archivo Open project: willdurand/nmap Class Usage Examples

Public Methods

Method Description
__construct ( ProcessExecutor $executor = null, string $outputFile = null, string $executable = 'nmap' )
create ( ) : Nmap
disablePortScan ( boolean $disable = true ) : Nmap
disableReverseDNS ( boolean $disable = true ) : Nmap
enableOsDetection ( boolean $enable = true ) : Nmap
enableServiceInfo ( boolean $enable = true ) : Nmap
enableVerbose ( boolean $enable = true ) : Nmap
scan ( array $targets, array $ports = [] ) : Host[]
treatHostsAsOnline ( boolean $disable = true ) : Nmap

Private Methods

Method Description
parseHostnames ( SimpleXMLElement $xmlHostnames )
parseOutputFile ( $xmlFile )
parsePorts ( SimpleXMLElement $xmlPorts )

Method Details

__construct() public method

public __construct ( ProcessExecutor $executor = null, string $outputFile = null, string $executable = 'nmap' )
$executor Nmap\Util\ProcessExecutor
$outputFile string
$executable string

create() public static method

public static create ( ) : Nmap
return Nmap

disablePortScan() public method

public disablePortScan ( boolean $disable = true ) : Nmap
$disable boolean
return Nmap

disableReverseDNS() public method

public disableReverseDNS ( boolean $disable = true ) : Nmap
$disable boolean
return Nmap

enableOsDetection() public method

public enableOsDetection ( boolean $enable = true ) : Nmap
$enable boolean
return Nmap

enableServiceInfo() public method

public enableServiceInfo ( boolean $enable = true ) : Nmap
$enable boolean
return Nmap

enableVerbose() public method

public enableVerbose ( boolean $enable = true ) : Nmap
$enable boolean
return Nmap

scan() public method

public scan ( array $targets, array $ports = [] ) : Host[]
$targets array
$ports array
return Host[]

treatHostsAsOnline() public method

public treatHostsAsOnline ( boolean $disable = true ) : Nmap
$disable boolean
return Nmap