Skip to content

Instantly share code, notes, and snippets.

@KINGSABRI
Created December 17, 2017 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KINGSABRI/a17228cf12bb2963a5ef8d800922eb6e to your computer and use it in GitHub Desktop.
Save KINGSABRI/a17228cf12bb2963a5ef8d800922eb6e to your computer and use it in GitHub Desktop.
RubyNmap
#!/usr/bin/env ruby
# list databases on MySQL servers. Must have login credential
Nmap::Program.scan do |task|
task.ports = 443
task.script = 'smb-security-mode'
# check the script params
# https://nmap.org/nsedoc/scripts/smb-security-mode.html
# https://nmap.org/nsedoc/lib/smb.html#script-args
# https://nmap.org/nsedoc/lib/smbauth.html#script-args
# and edit below line
# task.script_params = 'param1=<value>,'param2=<value>'
task.targets = '<server>'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment