Coder Social home page Coder Social logo

metasploit-docs-spike's Introduction

Metasploit Docs Spike

Getting started

yarn
yarn run

Visit http://localhost:8000.

Edit files in /content/ and see live updates.

Extracting msf metadata

msfconsole --quiet --no-database --resource ./extract_module_metadata.rc --execute-command 'exit'
cp ../metasploit-framework/tmp/module_metadata.json ./contents/modules/details

Noted Problems

Extracting module metadata

Extracting the metadata from modules takes at least 0.3 seconds per module, due to calculating payload sizes for every module create.

Non-deterministic metadata

Each time the metadata extraction script runs, it produces different output.

Some modules use random default values, leading to diffs between builds such as:

--- a/contents/modules/details/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.json
+++ b/contents/modules/details/exploits/multi/postgres/postgres_copy_from_program_cmd_exec.json
@@ -263,7 +263,7 @@
       "type": "string",
       "name": "TABLENAME",
       "required": true,
-      "default": "LsTZYp9fg",
+      "default": "6EQ2Obh6Dx",
       "aliases": [
 
       ],

Modules seem to swap between being advanced or not, but only when the metadata extraction is ran in parallel:

--- a/contents/modules/details/auxiliary/admin/http/typo3_winstaller_default_enc_keys.json
+++ b/contents/modules/details/auxiliary/admin/http/typo3_winstaller_default_enc_keys.json
@@ -115,7 +115,7 @@
       "aliases": [
 
       ],
-      "advanced": false,
+      "advanced": true,
       "description": "A proxy chain of format type:host:port[,type:host:port][...]"
     },

Algolia

It's possible to wire up custom Algolia integration + search functionality, as this spike uses. However, algolia offer an out of the box solution for documentation sites - https://docsearch.algolia.com/

This would still give us the same benefits as wiring up our own indexing, but wouldn't require any ongoing development effort:

Use metrics such as Popular Queries, No Results, and Click Position to better optimize your content.

we'll crawl your website at most every 24 hours.

metasploit-docs-spike's People

Contributors

alanfoster avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.