/plugins/FreeNAS.rb

https://github.com/eliasdorneles/WhatWeb · Ruby · 54 lines · 24 code · 12 blank · 18 comment · 0 complexity · 0577e22e6cd275c5452bdcb0706be850 MD5 · raw file

  1. ##
  2. # This file is part of WhatWeb and may be subject to
  3. # redistribution and commercial restrictions. Please see the WhatWeb
  4. # web site for more information on licensing and terms of use.
  5. # http://www.morningstarsecurity.com/research/whatweb
  6. ##
  7. Plugin.define "FreeNAS" do
  8. author "Brendan Coles <bcoles@gmail.com>" # 2012-09-09
  9. version "0.1"
  10. description "FreeNAS is an Open Source Storage Platform based on FreeBSD and supports sharing across Windows, Apple, and UNIX-like systems. - Homepage: http://www.freenas.org/"
  11. # ShodanHQ results as at 2012-09-09 #
  12. # 1,974 for location account/login next
  13. # 335 for freenas
  14. # Google results as at 2012-09-09 #
  15. # 1 for "FreeNAS" "Please log in" inurl:"account/login/"
  16. # Dorks #
  17. dorks [
  18. '"FreeNAS" "Please log in" inurl:"account/login/"'
  19. ]
  20. # Examples #
  21. examples %w|
  22. 200.236.3.56
  23. 85.235.206.74
  24. 193.219.48.159
  25. 83.150.90.94
  26. |
  27. # Matches #
  28. matches [
  29. # /account/login # Version Detection
  30. { :version=>/<div id="login" data-dojo-type="dijit\.Dialog" data-dojo-props="title: 'Welcome to FreeNAS&trade; ([^']+)'">/ },
  31. { :version=>/<div id="login" dojoType="dijit\.Dialog" title="Welcome to FreeNAS ([^\s]+)">/ },
  32. # /account/login # HTML Comment # It's a login page? Thx bro
  33. { :text=>'<!-- THIS IS A LOGIN WEBPAGE -->' },
  34. # /account/login # HTML Comment # Logo HTML
  35. { :text=>'<a href="/" title="FreeNAS&trade;"><img src="/static/images/ui/freenas-logo.png?cache=" alt="FreeNAS&trade;" style="padding-left:10px;"/></a>' },
  36. # /static/images/ui/freenas-logo.png
  37. { :url=>"/static/images/ui/freenas-logo.png", :md5=>"e9f74076206e249ead75559119c028c6" },
  38. # Location Header
  39. { :url=>"/", :search=>"headers[location]", :regexp=>/https?:\/\/[^\/]+\/account\/login\/\?next=\// },
  40. ]
  41. end