Advertisement
xGHOSTSECx

WhatWeb Commands

Jul 5th, 2021
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.58 KB | None | 0 0
  1. ┌─[03:28:22]─────[Sebastian@GhostSec]───[52]
  2. |
  3. └─[WhatWeb]──►./whatweb --help
  4.  
  5. .$$$ $. .$$$ $.
  6. $$$$ $$. .$$$ $$$ .$$$$$$. .$$$$$$$$$$. $$$$ $$. .$$$$$$$. .$$$$$$.
  7. $ $$ $$$ $ $$ $$$ $ $$$$$$. $$$$$ $$$$$$ $ $$ $$$ $ $$ $$ $ $$$$$$.
  8. $ `$ $$$ $ `$ $$$ $ `$ $$$ $$' $ `$ `$$ $ `$ $$$ $ `$ $ `$ $$$'
  9. $. $ $$$ $. $$$$$$ $. $$$$$$ `$ $. $ :' $. $ $$$ $. $$$$ $. $$$$$.
  10. $::$ . $$$ $::$ $$$ $::$ $$$ $::$ $::$ . $$$ $::$ $::$ $$$$
  11. $;;$ $$$ $$$ $;;$ $$$ $;;$ $$$ $;;$ $;;$ $$$ $$$ $;;$ $;;$ $$$$
  12. $$$$$$ $$$$$ $$$$ $$$ $$$$ $$$ $$$$ $$$$$$ $$$$$ $$$$$$$$$ $$$$$$$$$'
  13.  
  14.  
  15. WhatWeb - Next generation web scanner version 0.5.5.
  16.  
  17. Usage: whatweb [options] <URLs>
  18.  
  19. TARGET SELECTION:
  20. <TARGETs> Enter URLs, hostnames, IP addresses, filenames or
  21. IP ranges in CIDR, x.x.x-x, or x.x.x.x-x.x.x.x
  22. format.
  23. --input-file=FILE, -i Read targets from a file. You can pipe
  24. hostnames or URLs directly with -i /dev/stdin.
  25.  
  26. TARGET MODIFICATION:
  27. --url-prefix Add a prefix to target URLs.
  28. --url-suffix Add a suffix to target URLs.
  29. --url-pattern Insert the targets into a URL.
  30. e.g. example.com/%insert%/robots.txt
  31.  
  32. AGGRESSION:
  33. The aggression level controls the trade-off between speed/stealth and
  34. reliability.
  35. --aggression, -a=LEVEL Set the aggression level. Default: 1.
  36. 1. Stealthy Makes one HTTP request per target and also
  37. follows redirects.
  38. 3. Aggressive If a level 1 plugin is matched, additional
  39. requests will be made.
  40. 4. Heavy Makes a lot of HTTP requests per target. URLs
  41. from all plugins are attempted.
  42.  
  43. HTTP OPTIONS:
  44. --user-agent, -U=AGENT Identify as AGENT instead of WhatWeb/0.5.5.
  45. --header, -H Add an HTTP header. eg "Foo:Bar". Specifying a
  46. default header will replace it. Specifying an
  47. empty value, e.g. "User-Agent:" will remove it.
  48. --follow-redirect=WHEN Control when to follow redirects. WHEN may be
  49. `never', `http-only', `meta-only', `same-site',
  50. or `always'. Default: always.
  51. --max-redirects=NUM Maximum number of redirects. Default: 10.
  52.  
  53. AUTHENTICATION:
  54. --user, -u=<user:password> HTTP basic authentication.
  55. --cookie, -c=COOKIES Use cookies, e.g. 'name=value; name2=value2'.
  56. --cookie-jar=FILE Read cookies from a file.
  57.  
  58. PROXY:
  59. --proxy <hostname[:port]> Set proxy hostname and port.
  60. Default: 8080.
  61. --proxy-user <username:password> Set proxy user and password.
  62.  
  63. PLUGINS:
  64. --list-plugins, -l List all plugins.
  65. --info-plugins, -I=[SEARCH] List all plugins with detailed information.
  66. Optionally search with keywords in a comma
  67. delimited list.
  68. --search-plugins=STRING Search plugins for a keyword.
  69. --plugins, -p=LIST Select plugins. LIST is a comma delimited set
  70. of selected plugins. Default is all.
  71. Each element can be a directory, file or plugin
  72. name and can optionally have a modifier, +/-.
  73. Examples: +/tmp/moo.rb,+/tmp/foo.rb
  74. title,md5,+./plugins-disabled/
  75. ./plugins-disabled,-md5
  76. -p + is a shortcut for -p +plugins-disabled.
  77. --grep, -g=STRING|REGEXP Search for STRING or a Regular Expression. Shows
  78. only the results that match.
  79. Examples: --grep "hello"
  80. --grep "/he[l]*o/"
  81. --custom-plugin=DEFINITION Define a custom plugin named Custom-Plugin,
  82. Examples: ":text=>'powered by abc'"
  83. ":version=>/powered[ ]?by ab[0-9]/"
  84. ":ghdb=>'intitle:abc \"powered by abc\"'"
  85. ":md5=>'8666257030b94d3bdb46e05945f60b42'"
  86. "{:text=>'powered by abc'}"
  87. --dorks=PLUGIN List Google dorks for the selected plugin.
  88.  
  89. OUTPUT:
  90. --verbose, -v Verbose output includes plugin descriptions.
  91. Use twice for debugging.
  92. --colour,--color=WHEN control whether colour is used. WHEN may be
  93. `never', `always', or `auto'.
  94. --quiet, -q Do not display brief logging to STDOUT.
  95. --no-errors Suppress error messages.
  96.  
  97. LOGGING:
  98. --log-brief=FILE Log brief, one-line output.
  99. --log-verbose=FILE Log verbose output.
  100. --log-errors=FILE Log errors.
  101. --log-xml=FILE Log XML format.
  102. --log-json=FILE Log JSON format.
  103. --log-sql=FILE Log SQL INSERT statements.
  104. --log-sql-create=FILE Create SQL database tables.
  105. --log-json-verbose=FILE Log JSON Verbose format.
  106. --log-magictree=FILE Log MagicTree XML format.
  107. --log-object=FILE Log Ruby object inspection format.
  108. --log-mongo-database Name of the MongoDB database.
  109. --log-mongo-collection Name of the MongoDB collection.
  110. Default: whatweb.
  111. --log-mongo-host MongoDB hostname or IP address.
  112. Default: 0.0.0.0.
  113. --log-mongo-username MongoDB username. Default: nil.
  114. --log-mongo-password MongoDB password. Default: nil.
  115. --log-elastic-index Name of the index to store results. Default: whatweb
  116. --log-elastic-host Host:port of the elastic http interface. Default: 127.0.0.1:9200
  117.  
  118. PERFORMANCE & STABILITY:
  119. --max-threads, -t Number of simultaneous threads. Default: 25.
  120. --open-timeout Time in seconds. Default: 15.
  121. --read-timeout Time in seconds. Default: 30.
  122. --wait=SECONDS Wait SECONDS between connections.
  123. This is useful when using a single thread.
  124.  
  125. HELP & MISCELLANEOUS:
  126. --short-help Short usage help.
  127. --help, -h Complete usage help.
  128. --debug Raise errors in plugins.
  129. --version Display version information.
  130.  
  131. EXAMPLE USAGE:
  132. * Scan example.com.
  133. ./whatweb example.com
  134.  
  135. * Scan reddit.com slashdot.org with verbose plugin descriptions.
  136. ./whatweb -v reddit.com slashdot.org
  137.  
  138. * An aggressive scan of wired.com detects the exact version of WordPress.
  139. ./whatweb -a 3 www.wired.com
  140.  
  141. * Scan the local network quickly and suppress errors.
  142. whatweb --no-errors 192.168.0.0/24
  143.  
  144. * Scan the local network for https websites.
  145. whatweb --no-errors --url-prefix https:// 192.168.0.0/24
  146.  
  147. * Scan for crossdomain policies in the Alexa Top 1000.
  148. ./whatweb -i plugin-development/alexa-top-100.txt \
  149. --url-suffix /crossdomain.xml -p crossdomain_xml
  150.  
  151. ┌─[03:28:42]─────[Sebastian@GhostSec]───[53]
  152. |
  153. └─[WhatWeb]──►
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement