{"id":24536194,"url":"https://github.com/pvnotpv/url-tree","last_synced_at":"2025-03-16T01:11:30.732Z","repository":{"id":206657765,"uuid":"717398867","full_name":"pvnotpv/url-tree","owner":"pvnotpv","description":"Tool to generate a tree from a list of urls with color for each nodes.","archived":false,"fork":false,"pushed_at":"2024-01-28T10:16:27.000Z","size":79,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T13:52:47.932Z","etag":null,"topics":["bugbounty","endpoint-discovery","mitmproxy-addons","pentesting","pentesting-tools","recon","reconnaissance","tree","urls"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pvnotpv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-11T11:24:46.000Z","updated_at":"2024-01-30T10:27:32.000Z","dependencies_parsed_at":"2023-11-11T12:25:27.267Z","dependency_job_id":"bfd775b3-3a1d-4253-b3d0-a4e7a2fa7ef8","html_url":"https://github.com/pvnotpv/url-tree","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"aeda069234fef2455456676f57a62c0959f97c9f"},"previous_names":["pvnotpv/url-tree"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvnotpv%2Furl-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvnotpv%2Furl-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvnotpv%2Furl-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvnotpv%2Furl-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvnotpv","download_url":"https://codeload.github.com/pvnotpv/url-tree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809886,"owners_count":20351407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bugbounty","endpoint-discovery","mitmproxy-addons","pentesting","pentesting-tools","recon","reconnaissance","tree","urls"],"created_at":"2025-01-22T13:52:29.479Z","updated_at":"2025-03-16T01:11:30.694Z","avatar_url":"https://github.com/pvnotpv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# url-tree  \n### Useful to map a site especially when bughunting.\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"https://github.com/pvnotpv/url-tree/blob/main/images/img.png?raw=true\" width=\"440\" /\u003e\n\u003c/p\u003e\n\nThe bash script is used to beautify the output\n```\nsed -e '$s/├/└/' -e '3s/├/┌/' | sed -e 's/^/      /' | sed -e '1,2d'\n```\n- If these special characters aren't supported replace them with a dash.\n\n# Misc\n- You can use it with mitmproxy-cli since it doesn't have a tree like structure like on GUI apps.\n- Just inject this script to mitmproxy\n```\ndef request(flow):\n    url = flow.request.url\n    with open('urls.txt', 'a') as file:\n        file.write(url + '\\n')\n```\n- To remove parameters use : ``` cut -d \"?\" -f1 | urltree ```\n- gf pattern to clean urls:\n\n```\n{\n    \"flags\": \"-v\",\n    \"pattern\": \"svg\\\\|jpg\\\\|jpeg\\\\|gif\\\\|css\\\\|tif\\\\|tiff\\\\|png\\\\|ttf\\\\|woff\\\\|woff2\\\\|ico\\\\|.js\\\\|.html\\\\|.ashx\"\n}\n```\n\n- The node.nodeid property can be used to print the node number of each items, used to change the color of nodes.\n\n### Todo\n- Implement a better version in golang.\n\n![:pv](https://counter.max.srl/get/@:pvurltreee)\n(From 28/1/24)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvnotpv%2Furl-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvnotpv%2Furl-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvnotpv%2Furl-tree/lists"}