Skip to content

Tool to generate a tree from a list of urls with color for each nodes.

Notifications You must be signed in to change notification settings

pvnotpv/url-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

url-tree

Useful to map a site especially when bughunting.

The bash script is used to beautify the output

sed -e '$s/├/└/' -e '3s/├/┌/' | sed -e 's/^/      /' | sed -e '1,2d'
  • If these special characters aren't supported replace them with a dash.

Misc

  • You can use it with mitmproxy-cli since it doesn't have a tree like structure like on GUI apps.
  • Just inject this script to mitmproxy
def request(flow):
    url = flow.request.url
    with open('urls.txt', 'a') as file:
        file.write(url + '\n')
  • To remove parameters use : cut -d "?" -f1 | urltree
  • gf pattern to clean urls:
{
    "flags": "-v",
    "pattern": "svg\\|jpg\\|jpeg\\|gif\\|css\\|tif\\|tiff\\|png\\|ttf\\|woff\\|woff2\\|ico\\|.js\\|.html\\|.ashx"
}
  • The node.nodeid property can be used to print the node number of each items, used to change the color of nodes.

Todo

  • Implement a better version in golang.

:pv (From 28/1/24)