fthomasfr / WebTreeView

Generate an HTML view of a tree organized set of data from an excel file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebTreeView

Generate an HTML view of a tree organized set of data from an excel file. Originally created for cybersecurity attack paths visualization.

WebTreeView Snapshot

Getting started

The Excel file is used for creating the information tree. The VBA macro inside (button "Generate HTML") creates a WebView.html file in the same directory based on the provided WebViewTemplate.html file. The Macro.bas file of this repository is already in the Excel file. It's only exported here to ease configuration control.

The Excel file already contains a working example.

Usage

  1. Git clone the repository or download TreeSample.xlsm and WebViewTemplate.html.
  2. Open TreeSample.xlsm in Excel
  3. Enable Macros
    !!!!!!! IT IS BAD SECURITY PRACTICE TO EXECUTE EXCEL MACROS FROM SOURCES YOU DON'T TRUST !!!!!!
    !!!!!!! PLEASE READ SECURITY.md FOR DETAILS !!!!!!!!
  4. Click on "Generate HTML" in the "Attack Paths" tab
  5. Open the WebView.html file in your favorite browser

In the HTML file, the Zoom level hides and shows the different tree levels.
The Recursive priority checkbox calculates and show the max priority of its children elements.

DO NOT RENAME THE EXCEL TABS - they are explicitly used in the VBA macro
You can modify WebViewTemplate.html to customize graphics

Optional

Scenarios can be created by assigning a number to it and filling the scenario tab (color not implemented yet). See examples in TreeSample.xlsm. For scenarios arrows to work, you need to keep the leader-line.min.js file to your directory (MIT licensed as well) which can be found here

You can now have multi-paths for scenarios. For example, if you want to split scenario #1 in two, just tag 1.1 and 1.2 in the next columns (see examples in TreeSample.xlsm).

About

Generate an HTML view of a tree organized set of data from an excel file

License:MIT License


Languages

Language:HTML 80.8%Language:VBA 19.2%