Created
December 17, 2017 21:14
-
-
Save KINGSABRI/a17228cf12bb2963a5ef8d800922eb6e to your computer and use it in GitHub Desktop.
RubyNmap
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
#!/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