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.
- 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.
- Implement a better version in golang.