Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netconf over ssh support #1825

Closed
wants to merge 14 commits into from
2 changes: 1 addition & 1 deletion scripts/ssh-auth-methods.nse
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
categories = {"auth", "intrusive"}

local username = stdnse.get_script_args("ssh.user") or rand.random_alpha(5)
portrule = shortport.port_or_service(22, 'ssh')
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

function action (host, port)
local result = stdnse.output_table()
Expand Down
2 changes: 1 addition & 1 deletion scripts/ssh-brute.nse
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ categories = {
'intrusive',
}

portrule = shortport.port_or_service(22, 'ssh')
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

local arg_timeout = stdnse.get_script_args(SCRIPT_NAME .. ".timeout") or "5s"

Expand Down
2 changes: 1 addition & 1 deletion scripts/ssh-hostkey.nse
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
categories = {"safe","default","discovery"}


portrule = shortport.port_or_service(22, "ssh")
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

postrule = function() return (nmap.registry.sshhostkey ~= nil) end

Expand Down
2 changes: 1 addition & 1 deletion scripts/ssh-publickey-acceptance.nse
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ local usernames = stdnse.get_script_args "ssh.usernames"
local knownbad = stdnse.get_script_args "knownbad"
local publickeys = stdnse.get_script_args "ssh.publickeys"
local publickeydb = stdnse.get_script_args "publickeydb" or nmap.fetchfile("nselib/data/publickeydb")
portrule = shortport.port_or_service(22, 'ssh')
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

function action (host, port)
local result = stdnse.output_table()
Expand Down
2 changes: 1 addition & 1 deletion scripts/ssh-run.nse
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ categories = {
'intrusive',
}

portrule = shortport.port_or_service(22, 'ssh')
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

local username = stdnse.get_script_args 'ssh-run.username'
local cmd = stdnse.get_script_args 'ssh-run.cmd'
Expand Down
2 changes: 1 addition & 1 deletion scripts/ssh2-enum-algos.nse
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
categories = {"safe", "discovery"}


portrule = shortport.port_or_service(22, "ssh")
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

-- Build onto lists{} and possibly modify parsed{} based on whether the
-- algorithm name-lists are identical between the server-to-client and
Expand Down
2 changes: 1 addition & 1 deletion scripts/sshv1.nse
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ categories = {"default", "safe"}
-- true


portrule = shortport.port_or_service(22, "ssh")
portrule = shortport.port_or_service({22, 830}, {"ssh", "netconf-ssh"})

action = function(host, port)
local socket = nmap.new_socket()
Expand Down