SlideShare a Scribd company logo
NMAP Scripting Engine
[NSE]
Teaching an old dog new tricks
NMAP
Scans host/network for open ports.
Nmap scan report for 10.0.0.2
Host is up (0.054s latency).
Not shown: 994 closed ports
PORT STATE SERVICE
21/tcp open ftp
23/tcp open telnet
80/tcp open http
515/tcp open printer
631/tcp open ipp
9100/tcp open jetdirect
[NSE]
Auth
Discovery
DOS
Exploit
External
Fuzzer
Intrusive
Safe
Version
Vuln
Lets you add more checks to the same old
scans.
afp-brute.nse gopher-ls.nse ms-sql-info.nse smb-enum-shares.nse
afp-path-vuln.nse hddtemp-info.nse ms-sql-query.nse smb-enum-users.nse
afp-serverinfo.nse hostmap.nse ms-sql-tables.nse smb-flood.nse
afp-showmount.nse http-auth.nse ms-sql-xp-cmdshell.nse smb-os-discovery.nse
asn-query.nse http-brute.nse mysql-brute.nse smb-psexec.nse
auth-owners.nse http-date.nse mysql-databases.nse smb-security-mode.nse
auth-spoof.nse http-domino-enum-passwords.nse mysql-empty-password.nse smb-server-stats.nse
banner.nse http-enum.nse mysql-info.nse smb-system-info.nse
broadcast-dns-service-discovery.nse http-favicon.nse mysql-users.nse smbv2-enabled.nse
broadcast-dropbox-listener.nse http-form-brute.nse mysql-variables.nse smtp-commands.nse
broadcast-ms-sql-discover.nse http-headers.nse nat-pmp-info.nse smtp-enum-users.nse
broadcast-upnp-info.nse http-iis-webdav-vuln.nse nbstat.nse smtp-open-relay.nse
broadcast-wsdd-discover.nse http-malware-host.nse netbus-auth-bypass.nse smtp-strangeport.nse
citrix-brute-xml.nse http-methods.nse netbus-brute.nse sniffer-detect.nse
citrix-enum-apps.nse http-open-proxy.nse netbus-info.nse snmp-brute.nse
citrix-enum-apps-xml.nse http-passwd.nse netbus-version.nse snmp-interfaces.nse
citrix-enum-servers.nse http-php-version.nse nfs-ls.nse snmp-netstat.nse
citrix-enum-servers-xml.nse http-robots.txt.nse nfs-showmount.nse snmp-processes.nse
couchdb-databases.nse http-title.nse nfs-statfs.nse snmp-sysdescr.nse
couchdb-stats.nse http-trace.nse nrpe-enum.nse snmp-win32-services.nse
daap-get-library.nse http-userdir-enum.nse ntp-info.nse snmp-win32-shares.nse
daytime.nse http-vhosts.nse ntp-monlist.nse snmp-win32-software.nse
db2-das-info.nse http-vmware-path-vuln.nse oracle-brute.nse snmp-win32-users.nse
db2-discover.nse iax2-version.nse oracle-enum-users.nse socks-open-proxy.nse
dhcp-discover.nse imap-capabilities.nse oracle-sid-brute.nse sql-injection.nse
dns-cache-snoop.nse informix-brute.nse p2p-conficker.nse ssh2-enum-algos.nse
dns-fuzz.nse informix-query.nse path-mtu.nse ssh-hostkey.nse
dns-random-srcport.nse informix-tables.nse pgsql-brute.nse sshv1.nse
dns-random-txid.nse ipidseq.nse pjl-ready-message.nse ssl-cert.nse
dns-recursion.nse irc-info.nse pop3-brute.nse ssl-enum-ciphers.nse
dns-service-discovery.nse irc-unrealircd-backdoor.nse pop3-capabilities.nse sslv2.nse
dns-zone-transfer.nse iscsi-brute.nse pptp-version.nse stuxnet-detect.nse
domcon-brute.nse iscsi-info.nse qscan.nse svn-brute.nse
domcon-cmd.nse jdwp-version.nse realvnc-auth-bypass.nse targets-traceroute.nse
domino-enum-users.nse ldap-brute.nse resolveall.nse telnet-brute.nse
drda-brute.nse ldap-rootdse.nse rmi-dumpregistry.nse upnp-info.nse
drda-info.nse ldap-search.nse rpcinfo.nse vnc-brute.nse
finger.nse lexmark-config.nse script.db vnc-info.nse
firewalk.nse modbus-discover.nse skypev2-version.nse wdb-version.nse
ftp-anon.nse mongodb-databases.nse smb-brute.nse whois.nse
ftp-bounce.nse mongodb-info.nse smb-check-vulns.nse wsdd-discover.nse
ftp-brute.nse ms-sql-brute.nse smb-enum-domains.nse x11-access.nse
ftp-libopie.nse ms-sql-config.nse smb-enum-groups.nse
ftp-proftpd-backdoor.nse ms-sql-empty-password.nse smb-enum-processes.nse
giop-info.nse ms-sql-hasdbaccess.nse smb-enum-sessions.nse
Scripts that exist
Brute Force
MySQL
VNC
SVN
Discovery
Whois
Stuxnet
SMB
Malware
Http-malware-host
Smtp-strangeport
Version
Socks
SSL
X11
Get on the bleeding edge
Get yourself the newest, latest and greatest
version of NMAP first. 5.36TEST3
svn co --username guest --password "" 
svn://svn.insecure.org/nmap/
The basic basics
description = [[
Spiders an HTTP server looking for URLs containing queries vulnerable to an SQL
injection attack..
]]
require('url')
– … and/or dependencies of other NSE scripts
author = "Eddie Bell"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"intrusive", "vuln"}
---
-- @args sql-injection.start The path at which to start spidering; default <code>/</code>.
-- @args sql-injection.maxdepth The maximum depth to spider; default 10.
--
-- @output
-- PORT STATE SERVICE
-- 80/tcp open http
-- | sql-injection: Host might be vulnerable
-- | /a_index.php?id_str=1'%20OR%20sqlspider
-- | /a_index.php?id_str=1'%20OR%20sqlspider
-- | /a_index.php?id_str=2'%20OR%20sqlspider
That wasn't C ...
Lua whoa?
Scripting engine.
http://www.lua.org/
✔ World of warcraft
✔ Nmap
✔ Snort
✔ Wireshark
HTTP Enumeration
Enumerates directories used by popular web applications and servers.
-- @args http-enum.basepath The base path to prepend to each request.
-- @args http-enum.displayall Set this argument to display all status codes.
-- @args http-enum.fingerprintfile Specify a different file to read fingerprints from.
-- @args http-enum.category Set to a category (as defined in the fingerprints file).
--
-- @output
-- Interesting ports on test.skullsecurity.org (208.81.2.52):
-- PORT STATE SERVICE REASON
-- 80/tcp open http syn-ack
-- | http-enum:
-- | | /icons/: Icons and images
-- | | /images/: Icons and images
-- | | /robots.txt: Robots file
-- | | /sw/auth/login.aspx: Citrix WebTop
-- | | /images/outlook.jpg: Outlook Web Access
-- | | /nfservlets/servlet/SPSRouterServlet/: netForensics
-- |_ |_ /nfservlets/servlet/SPSRouterServlet/: netForensics
author = "Ron Bowes, Andrew Orr, Rob Nicholls"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"discovery", "intrusive", "vuln"}
Fingerprints
.../nselib/data/http-fingerprints.lua
table.insert(fingerprints, {
category='general',
probes={
{path='/', method='GET'}
},
matches={
{match='<title>Index of .*(Apache.*) Server at',
output='Root directory w/ listing on '1''},
{match='<title>Index of',
output='Root directory w/ directory listing'}
}
})
Making it better
Starting Nmap 5.36TEST3 ( http://nmap.org )
PORT STATE SERVICE
80/tcp open http
| http-enum:
| /wordpress/wp-login.php: WordPress 3.0.x found
| /pligg/readme.html: Pligg version 1.1.1
| /xoda/README: XODA 0.1.1
| /statusnet/README: StatusNet README version 0.9.5
| /comic/: comiccms
| /wordpress/: wordpress 3.0.4
| /openx/www/admin/index.php: openx v2.8.7 -
http://www.openx.org
| /splashfrog/: Splash Frog WMS v4.1
| /vanilla/: Vanilla Forums v2.0.16
| /statusnet/: StatusNet v0.9.5
| /trac/: Trac version 0.11.1
| /lime/: limesurvey http://www.limesurvey.org
| /getsimple/: getsimple - 2.03
And beyond!
More tricks …
Vulnerability detection
Exploit scanner
Malware detection
Hardware detection?
The bounty hunt
The reward only credit …
---HTTP Fingerprint files, compiled by Ron Bowes with a special thanks to...
-- o Kevin Johnson (@secureideas) for the fingerprints that come with Yokoso
-- http://yokoso.inguardians.com
-- o Jason H. (@jhaddix) for helping out with a whole pile of fingerprints he's
-- collected
-- o Bob Dooling
-- o Robert Rowley for the awesome open source cms and README checks
-- http://www.irvineunderground.org
LINKS!
● http://nmap.org/book/nse.html
● http://www.lua.org/

More Related Content

What's hot (20)

PPTX
ATS Internals
Chao Xu
 
PDF
Pf: the OpenBSD packet filter
Giovanni Bechis
 
PPTX
agri inventory - nouka data collector / yaoya data convertor
Toshiaki Baba
 
KEY
Study2study#4 nginx conf_1_24
Naoya Nakazawa
 
PDF
Haproxy - zastosowania
Łukasz Jagiełło
 
PPTX
Linux networking commands
Sayed Ahmed
 
PDF
A little systemtap
yang bingwu
 
PDF
What is new in Go 1.8
John Hua
 
PDF
Netty: asynchronous data transfer
Victor Cherkassky
 
PDF
How to Leverage Go for Your Networking Needs
DigitalOcean
 
PPTX
บทท 7
J-Kitipat Vatinivijet
 
PDF
Ethernet Shield
Tinker
 
PDF
tdc2012
Juan Lopes
 
PDF
Syslog Centralization Logging with Windows ~ A techXpress Guide
Abhishek Kumar
 
PDF
Building a network emulator with Docker and Open vSwitch
Goran Cetusic
 
PDF
Bind How To
cntlinux
 
PDF
How choosing the Raft consensus algorithm saved us 3 months of development time
Robert Wojciechowski
 
PDF
nouka inventry manager
Toshiaki Baba
 
DOCX
network programing lab file ,
AAlha PaiKra
 
PPT
Stackless Python In Eve
guest91855c
 
ATS Internals
Chao Xu
 
Pf: the OpenBSD packet filter
Giovanni Bechis
 
agri inventory - nouka data collector / yaoya data convertor
Toshiaki Baba
 
Study2study#4 nginx conf_1_24
Naoya Nakazawa
 
Haproxy - zastosowania
Łukasz Jagiełło
 
Linux networking commands
Sayed Ahmed
 
A little systemtap
yang bingwu
 
What is new in Go 1.8
John Hua
 
Netty: asynchronous data transfer
Victor Cherkassky
 
How to Leverage Go for Your Networking Needs
DigitalOcean
 
Ethernet Shield
Tinker
 
tdc2012
Juan Lopes
 
Syslog Centralization Logging with Windows ~ A techXpress Guide
Abhishek Kumar
 
Building a network emulator with Docker and Open vSwitch
Goran Cetusic
 
Bind How To
cntlinux
 
How choosing the Raft consensus algorithm saved us 3 months of development time
Robert Wojciechowski
 
nouka inventry manager
Toshiaki Baba
 
network programing lab file ,
AAlha PaiKra
 
Stackless Python In Eve
guest91855c
 

Similar to Nmap Scripting Engine and http-enumeration (20)

PPTX
Nmap and metasploitable
Mohammed Akbar Shariff
 
PDF
The Art of Grey-Box Attack
Prathan Phongthiproek
 
PPTX
DC612 Day - Hands on Penetration Testing 101
dc612
 
PPTX
Using metasploit
CyberRad
 
PDF
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
Bishop Fox
 
PPTX
Nmap_Scripting_Engine_Presentations.pptx
devadon8780
 
PPTX
NMAP
PrateekAryan1
 
PPTX
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Boston Institute of Analytics
 
PDF
Intrusion Techniques
Festival Software Livre
 
PPTX
Network Penetration Testing
Mohammed Adam
 
DOCX
Assessment Questions and Answers1. What are the diff.docx
fredharris32
 
DOCX
Backtrack Manual Part3
Nutan Kumar Panda
 
PPT
NMAP1.ppt
DakshKhurana15
 
DOCX
Contents namp
shwetha mk
 
DOCX
Contents namp
shwetha mk
 
PPTX
Null Delhi chapter - Feb 2019
Nikhil Raj
 
PPTX
Recon with Nmap
OWASP Delhi
 
PPT
Security & ethical hacking
Amanpreet Singh
 
PPT
Port scanning
Hemanth Pasumarthi
 
PPT
Port scanning
Hemanth Pasumarthi
 
Nmap and metasploitable
Mohammed Akbar Shariff
 
The Art of Grey-Box Attack
Prathan Phongthiproek
 
DC612 Day - Hands on Penetration Testing 101
dc612
 
Using metasploit
CyberRad
 
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
Bishop Fox
 
Nmap_Scripting_Engine_Presentations.pptx
devadon8780
 
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Boston Institute of Analytics
 
Intrusion Techniques
Festival Software Livre
 
Network Penetration Testing
Mohammed Adam
 
Assessment Questions and Answers1. What are the diff.docx
fredharris32
 
Backtrack Manual Part3
Nutan Kumar Panda
 
NMAP1.ppt
DakshKhurana15
 
Contents namp
shwetha mk
 
Contents namp
shwetha mk
 
Null Delhi chapter - Feb 2019
Nikhil Raj
 
Recon with Nmap
OWASP Delhi
 
Security & ethical hacking
Amanpreet Singh
 
Port scanning
Hemanth Pasumarthi
 
Port scanning
Hemanth Pasumarthi
 
Ad

More from Robert Rowley (7)

PDF
WordPress Security (know your enemy WordCamp Kyoto)
Robert Rowley
 
ODP
Detecting and Defending Your Privacy Against State-Actor Surveillance
Robert Rowley
 
ODP
Privacy; Past, Present and Future
Robert Rowley
 
ODP
Wordpress Security 101
Robert Rowley
 
ODP
State of Web App Security 2012
Robert Rowley
 
ODP
Juice Jacking 101
Robert Rowley
 
PDF
Teaching Your WAF New Tricks
Robert Rowley
 
WordPress Security (know your enemy WordCamp Kyoto)
Robert Rowley
 
Detecting and Defending Your Privacy Against State-Actor Surveillance
Robert Rowley
 
Privacy; Past, Present and Future
Robert Rowley
 
Wordpress Security 101
Robert Rowley
 
State of Web App Security 2012
Robert Rowley
 
Juice Jacking 101
Robert Rowley
 
Teaching Your WAF New Tricks
Robert Rowley
 
Ad

Recently uploaded (20)

PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Governing Geospatial Data at Scale: Optimizing ArcGIS Online with FME in Envi...
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Kubernetes - Architecture & Components.pdf
geethak285
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Governing Geospatial Data at Scale: Optimizing ArcGIS Online with FME in Envi...
Safe Software
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 

Nmap Scripting Engine and http-enumeration

  • 1. NMAP Scripting Engine [NSE] Teaching an old dog new tricks
  • 2. NMAP Scans host/network for open ports. Nmap scan report for 10.0.0.2 Host is up (0.054s latency). Not shown: 994 closed ports PORT STATE SERVICE 21/tcp open ftp 23/tcp open telnet 80/tcp open http 515/tcp open printer 631/tcp open ipp 9100/tcp open jetdirect
  • 4. afp-brute.nse gopher-ls.nse ms-sql-info.nse smb-enum-shares.nse afp-path-vuln.nse hddtemp-info.nse ms-sql-query.nse smb-enum-users.nse afp-serverinfo.nse hostmap.nse ms-sql-tables.nse smb-flood.nse afp-showmount.nse http-auth.nse ms-sql-xp-cmdshell.nse smb-os-discovery.nse asn-query.nse http-brute.nse mysql-brute.nse smb-psexec.nse auth-owners.nse http-date.nse mysql-databases.nse smb-security-mode.nse auth-spoof.nse http-domino-enum-passwords.nse mysql-empty-password.nse smb-server-stats.nse banner.nse http-enum.nse mysql-info.nse smb-system-info.nse broadcast-dns-service-discovery.nse http-favicon.nse mysql-users.nse smbv2-enabled.nse broadcast-dropbox-listener.nse http-form-brute.nse mysql-variables.nse smtp-commands.nse broadcast-ms-sql-discover.nse http-headers.nse nat-pmp-info.nse smtp-enum-users.nse broadcast-upnp-info.nse http-iis-webdav-vuln.nse nbstat.nse smtp-open-relay.nse broadcast-wsdd-discover.nse http-malware-host.nse netbus-auth-bypass.nse smtp-strangeport.nse citrix-brute-xml.nse http-methods.nse netbus-brute.nse sniffer-detect.nse citrix-enum-apps.nse http-open-proxy.nse netbus-info.nse snmp-brute.nse citrix-enum-apps-xml.nse http-passwd.nse netbus-version.nse snmp-interfaces.nse citrix-enum-servers.nse http-php-version.nse nfs-ls.nse snmp-netstat.nse citrix-enum-servers-xml.nse http-robots.txt.nse nfs-showmount.nse snmp-processes.nse couchdb-databases.nse http-title.nse nfs-statfs.nse snmp-sysdescr.nse couchdb-stats.nse http-trace.nse nrpe-enum.nse snmp-win32-services.nse daap-get-library.nse http-userdir-enum.nse ntp-info.nse snmp-win32-shares.nse daytime.nse http-vhosts.nse ntp-monlist.nse snmp-win32-software.nse db2-das-info.nse http-vmware-path-vuln.nse oracle-brute.nse snmp-win32-users.nse db2-discover.nse iax2-version.nse oracle-enum-users.nse socks-open-proxy.nse dhcp-discover.nse imap-capabilities.nse oracle-sid-brute.nse sql-injection.nse dns-cache-snoop.nse informix-brute.nse p2p-conficker.nse ssh2-enum-algos.nse dns-fuzz.nse informix-query.nse path-mtu.nse ssh-hostkey.nse dns-random-srcport.nse informix-tables.nse pgsql-brute.nse sshv1.nse dns-random-txid.nse ipidseq.nse pjl-ready-message.nse ssl-cert.nse dns-recursion.nse irc-info.nse pop3-brute.nse ssl-enum-ciphers.nse dns-service-discovery.nse irc-unrealircd-backdoor.nse pop3-capabilities.nse sslv2.nse dns-zone-transfer.nse iscsi-brute.nse pptp-version.nse stuxnet-detect.nse domcon-brute.nse iscsi-info.nse qscan.nse svn-brute.nse domcon-cmd.nse jdwp-version.nse realvnc-auth-bypass.nse targets-traceroute.nse domino-enum-users.nse ldap-brute.nse resolveall.nse telnet-brute.nse drda-brute.nse ldap-rootdse.nse rmi-dumpregistry.nse upnp-info.nse drda-info.nse ldap-search.nse rpcinfo.nse vnc-brute.nse finger.nse lexmark-config.nse script.db vnc-info.nse firewalk.nse modbus-discover.nse skypev2-version.nse wdb-version.nse ftp-anon.nse mongodb-databases.nse smb-brute.nse whois.nse ftp-bounce.nse mongodb-info.nse smb-check-vulns.nse wsdd-discover.nse ftp-brute.nse ms-sql-brute.nse smb-enum-domains.nse x11-access.nse ftp-libopie.nse ms-sql-config.nse smb-enum-groups.nse ftp-proftpd-backdoor.nse ms-sql-empty-password.nse smb-enum-processes.nse giop-info.nse ms-sql-hasdbaccess.nse smb-enum-sessions.nse Scripts that exist Brute Force MySQL VNC SVN Discovery Whois Stuxnet SMB Malware Http-malware-host Smtp-strangeport Version Socks SSL X11
  • 5. Get on the bleeding edge Get yourself the newest, latest and greatest version of NMAP first. 5.36TEST3 svn co --username guest --password "" svn://svn.insecure.org/nmap/
  • 6. The basic basics description = [[ Spiders an HTTP server looking for URLs containing queries vulnerable to an SQL injection attack.. ]] require('url') – … and/or dependencies of other NSE scripts author = "Eddie Bell" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"intrusive", "vuln"} --- -- @args sql-injection.start The path at which to start spidering; default <code>/</code>. -- @args sql-injection.maxdepth The maximum depth to spider; default 10. -- -- @output -- PORT STATE SERVICE -- 80/tcp open http -- | sql-injection: Host might be vulnerable -- | /a_index.php?id_str=1'%20OR%20sqlspider -- | /a_index.php?id_str=1'%20OR%20sqlspider -- | /a_index.php?id_str=2'%20OR%20sqlspider
  • 8. Lua whoa? Scripting engine. http://www.lua.org/ ✔ World of warcraft ✔ Nmap ✔ Snort ✔ Wireshark
  • 9. HTTP Enumeration Enumerates directories used by popular web applications and servers. -- @args http-enum.basepath The base path to prepend to each request. -- @args http-enum.displayall Set this argument to display all status codes. -- @args http-enum.fingerprintfile Specify a different file to read fingerprints from. -- @args http-enum.category Set to a category (as defined in the fingerprints file). -- -- @output -- Interesting ports on test.skullsecurity.org (208.81.2.52): -- PORT STATE SERVICE REASON -- 80/tcp open http syn-ack -- | http-enum: -- | | /icons/: Icons and images -- | | /images/: Icons and images -- | | /robots.txt: Robots file -- | | /sw/auth/login.aspx: Citrix WebTop -- | | /images/outlook.jpg: Outlook Web Access -- | | /nfservlets/servlet/SPSRouterServlet/: netForensics -- |_ |_ /nfservlets/servlet/SPSRouterServlet/: netForensics author = "Ron Bowes, Andrew Orr, Rob Nicholls" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "intrusive", "vuln"}
  • 10. Fingerprints .../nselib/data/http-fingerprints.lua table.insert(fingerprints, { category='general', probes={ {path='/', method='GET'} }, matches={ {match='<title>Index of .*(Apache.*) Server at', output='Root directory w/ listing on '1''}, {match='<title>Index of', output='Root directory w/ directory listing'} } })
  • 11. Making it better Starting Nmap 5.36TEST3 ( http://nmap.org ) PORT STATE SERVICE 80/tcp open http | http-enum: | /wordpress/wp-login.php: WordPress 3.0.x found | /pligg/readme.html: Pligg version 1.1.1 | /xoda/README: XODA 0.1.1 | /statusnet/README: StatusNet README version 0.9.5 | /comic/: comiccms | /wordpress/: wordpress 3.0.4 | /openx/www/admin/index.php: openx v2.8.7 - http://www.openx.org | /splashfrog/: Splash Frog WMS v4.1 | /vanilla/: Vanilla Forums v2.0.16 | /statusnet/: StatusNet v0.9.5 | /trac/: Trac version 0.11.1 | /lime/: limesurvey http://www.limesurvey.org | /getsimple/: getsimple - 2.03
  • 12. And beyond! More tricks … Vulnerability detection Exploit scanner Malware detection Hardware detection?
  • 13. The bounty hunt The reward only credit … ---HTTP Fingerprint files, compiled by Ron Bowes with a special thanks to... -- o Kevin Johnson (@secureideas) for the fingerprints that come with Yokoso -- http://yokoso.inguardians.com -- o Jason H. (@jhaddix) for helping out with a whole pile of fingerprints he's -- collected -- o Bob Dooling -- o Robert Rowley for the awesome open source cms and README checks -- http://www.irvineunderground.org