Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for tcp_del_ports and udp_del_ports. Added tests for th…
…ese new functions.
- Loading branch information
Showing
5 changed files
with
288 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
<?xml version="1.0"?> | ||
<!-- nmap 3.27 scan initiated Tue Jul 1 14:48:03 2003 as: nmap -v -v -v -oX test.xml -O -sTUR -p 1-1023 localhost --> | ||
<nmaprun scanner="nmap" args="nmap -v -v -v -oX test.xml -O -sTUR -p 1-1023 localhost" start="1057088883" version="3.27" xmloutputversion="1.0"> | ||
<scaninfo type="connect" protocol="tcp" numservices="1023" services="1-1023"/> | ||
<scaninfo type="udp" protocol="udp" numservices="1023" services="1-1023"/> | ||
<verbose level="3"/> | ||
<debugging level="0"/> | ||
<host> | ||
<status state="up"/> | ||
<address addr="127.0.0.3" addrtype="ipv4"/> | ||
<hostnames> | ||
<hostname name="host_3" type="PTR"/> | ||
</hostnames> | ||
<ports> | ||
<extraports state="filtered" count="1644"/> | ||
<port protocol="tcp" portid="112"> | ||
<state state="open"/> | ||
<service name="rpcbind" version="2" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="113"> | ||
<state state="open"/> | ||
<owner name="identd"/> | ||
<service name="ident" product="OpenBSD identd" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="21"> | ||
<state state="open"/> | ||
<owner name="root"/> | ||
<service name="ftp" product="ProFTPD" version="1.2.5rc1" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="22"> | ||
<state state="open"/> | ||
<owner name="root"/> | ||
<service name="ssh" product="OpenSSH" version="3.4p1" extrainfo="protocol 1.99" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="25"> | ||
<state state="open"/> | ||
<owner name="root"/> | ||
<service name="smtp" product="Exim smtpd" version="3.35" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="26"> | ||
<state state="open"/> | ||
<service name="ssh" product="OpenSSH" version="3.6.1p1" extrainfo="protocol 1.99" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="80"> | ||
<state state="open"/> | ||
<owner name="www-data"/> | ||
<service name="http" product="Apache httpd" version="1.3.26" extrainfo="(Unix) Debian GNU/Linux" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="953"> | ||
<state state="open"/> | ||
<service name="rndc" method="table" conf="3"/> | ||
</port> | ||
<port protocol="tcp" portid="53"> | ||
<state state="open"/> | ||
<service name="dns" method="table" conf="3"/> | ||
</port> | ||
<port protocol="tcp" portid="8080"> | ||
<state state="filtered"/> | ||
<service name="https" method="table" conf="3"/> | ||
</port> | ||
</ports> | ||
</host> | ||
<runstats> | ||
<finished time="1057088900"/> | ||
<hosts up="1" down="0" total="1"/> | ||
<scaninfo type="connect" protocol="tcp" numservices="1023" services="1-1023"/> | ||
<scaninfo type="udp" protocol="udp" numservices="1023" services="1-1023"/> | ||
<verbose level="3"/> | ||
<debugging level="0"/> | ||
<host> | ||
<status state="up"/> | ||
<address addr="127.0.0.3" addrtype="ipv4"/> | ||
<hostnames> | ||
<hostname name="host_3" type="PTR"/> | ||
</hostnames> | ||
<ports> | ||
<extraports state="filtered" count="1644"/> | ||
<port protocol="tcp" portid="112"> | ||
<state state="open"/> | ||
<service name="rpcbind" version="2" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="113"> | ||
<state state="open"/> | ||
<owner name="identd"/> | ||
<service name="ident" product="OpenBSD identd" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="21"> | ||
<state state="open"/> | ||
<owner name="root"/> | ||
<service name="ftp" product="ProFTPD" version="1.2.5rc1" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="22"> | ||
<state state="open"/> | ||
<owner name="root"/> | ||
<service name="ssh" product="OpenSSH" version="3.4p1" extrainfo="protocol 1.99" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="25"> | ||
<state state="open"/> | ||
<owner name="root"/> | ||
<service name="smtp" product="Exim smtpd" version="3.35" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="26"> | ||
<state state="open"/> | ||
<service name="ssh" product="OpenSSH" version="3.6.1p1" extrainfo="protocol 1.99" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="80"> | ||
<state state="open"/> | ||
<owner name="www-data"/> | ||
<service name="http" product="Apache httpd" version="1.3.26" extrainfo="(Unix) Debian GNU/Linux" method="probed" conf="10"/> | ||
</port> | ||
<port protocol="tcp" portid="953"> | ||
<state state="open"/> | ||
<service name="rndc" method="table" conf="3"/> | ||
</port> | ||
<port protocol="tcp" portid="53"> | ||
<state state="open"/> | ||
<service name="dns" method="table" conf="3"/> | ||
</port> | ||
<port protocol="tcp" portid="8080"> | ||
<state state="filtered"/> | ||
<service name="https" method="table" conf="3"/> | ||
</port> | ||
</ports> | ||
</host> | ||
<runstats> | ||
<finished time="1057088900"/> | ||
<hosts up="1" down="0" total="1"/> | ||
<!-- Nmap run completed at Tue Jul 1 14:48:20 2003; 1 IP address (1 host up) scanned in 16.970 seconds --> | ||
</runstats> | ||
</runstats> | ||
</nmaprun> |
Oops, something went wrong.