1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

NSE committed

This commit is contained in:
fyodor
2006-12-11 00:34:26 +00:00
parent cc451cdb54
commit b361685be8
136 changed files with 23553 additions and 201 deletions

View File

@@ -0,0 +1,44 @@
id = "MS Windows shell"
description = "If port 8888 is open and it echos a specific string then we\
might have found an open MSWindows shell."
author = "Diman Todorov <diman.todorov@gmail.com>"
license = "See nmaps COPYING for licence"
categories = {"backdoor"}
portrule = function(host, port)
local decision
if
( port.number == 8888
or port.service == "auth")
and port.protocol == "tcp"
and port.state == "open"
then
decision = true
else
decision = false
end
return decision
end
action = function(host, port)
local status = 0
local result = ""
local client_ident = nmap.new_socket()
client_ident:connect(host.ip, port.number)
status, result = client_ident:receive_bytes(4096)
client_ident:close()
if string.match(result, "Microsoft Windows") then
return "Possible open windows shell found."
end
end