mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
use shortport library in PPTPversion script
This commit is contained in:
parent
b9d76ac933
commit
375f34f0ca
1 changed files with 2 additions and 11 deletions
|
|
@ -12,18 +12,9 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|||
categories = {"version"}
|
||||
|
||||
require "comm"
|
||||
require "shortport"
|
||||
|
||||
portrule = function(host, port)
|
||||
if
|
||||
port.number == 1723
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
portrule = shortport.portnumber(1723)
|
||||
|
||||
action = function(host, port)
|
||||
local payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue