{"id":21306947,"url":"https://github.com/oneclickvirt/backtrace","last_synced_at":"2025-07-11T21:31:57.279Z","repository":{"id":237402760,"uuid":"794459615","full_name":"oneclickvirt/backtrace","owner":"oneclickvirt","description":"回程路由线路测试模块","archived":false,"fork":false,"pushed_at":"2025-06-29T02:48:29.000Z","size":169,"stargazers_count":195,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-29T03:43:03.549Z","etag":null,"topics":["4837","9929","backtrace","cmi","cmin2","cn2","cn2gia","cn2gt","ctgnet","goecs","ipv4","trace","traceroute"],"latest_commit_sha":null,"homepage":"https://github.com/oneclickvirt/ecs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oneclickvirt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-05-01T08:04:59.000Z","updated_at":"2025-06-29T02:48:32.000Z","dependencies_parsed_at":"2024-05-01T09:25:30.447Z","dependency_job_id":"e4580d02-1182-48b6-bed6-f03a7ebc9a26","html_url":"https://github.com/oneclickvirt/backtrace","commit_stats":null,"previous_names":["oneclickvirt/backtrace"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/oneclickvirt/backtrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fbacktrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fbacktrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fbacktrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fbacktrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneclickvirt","download_url":"https://codeload.github.com/oneclickvirt/backtrace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fbacktrace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264902572,"owners_count":23681092,"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":["4837","9929","backtrace","cmi","cmin2","cn2","cn2gia","cn2gt","ctgnet","goecs","ipv4","trace","traceroute"],"created_at":"2024-11-21T16:29:03.641Z","updated_at":"2025-07-11T21:31:57.265Z","avatar_url":"https://github.com/oneclickvirt.png","language":"Go","readme":"# backtrace\n\n[![Hits](https://hits.spiritlhl.net/backtrace.svg?action=hit\u0026title=Hits\u0026title_bg=%23555555\u0026count_bg=%230eecf8\u0026edge_flat=false)](https://hits.spiritlhl.net)\n\n[![Build and Release](https://github.com/oneclickvirt/backtrace/actions/workflows/main.yaml/badge.svg)](https://github.com/oneclickvirt/backtrace/actions/workflows/main.yaml)\n\n三网回程路由线路测试\n\n路由的线路判断最终还是得人工判断的才准确，本项目测试结果仅供参考\n\n## 功能\n\n- [x] 检测回程显示IPV4/IPV6地址时的线路(使用1500字节的包)，不显示IP地址时显示ASN检测不到\n- [x] 支持对```9929```、```4837```和```163```线路的判断\n- [x] 支持对```CTGNET```、```CN2GIA```和```CN2GT```线路的判断\n- [x] 支持对```CMIN2```和```CMI```线路的判断\n- [x] 支持对整个回程路由进行线路分析，一个目标IP可能会分析出多种线路\n- [x] 增加对全平台的编译支持，原版[backtrace](https://github.com/zhanghanyun/backtrace)仅支持linux平台的amd64和arm64架构\n- [x] 兼容额外的ICMP地址获取，若当前目标IP无法查询路由尝试额外的IP地址\n\n## TODO\n\n- [ ] 自动检测汇聚层，裁剪结果不输出汇聚层后的线路(区分境内外段)\n- [ ] 添加对主流ISP的POP点检测，区分国际互联能力\n\n## 使用\n\n下载、安装、更新\n\n```shell\ncurl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | bash\n```\n\n或\n\n```\ncurl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | bash\n```\n\n使用\n\n```\nbacktrace\n```\n\n或\n\n```\n./backtrace\n```\n\n进行测试\n\n无环境依赖，理论上适配所有系统和主流架构，更多架构请查看 https://github.com/oneclickvirt/backtrace/releases/tag/output\n\n```\nUsage: backtrace [options]\n  -h    Show help information\n  -ipv6\n        Enable ipv6 testing\n  -log\n        Enable logging\n  -s    Disabe show ip info (default true)\n  -v    Show version\n```\n\n## 卸载\n\n```\nrm -rf /root/backtrace\nrm -rf /usr/bin/backtrace\n```\n\n## 在Golang中使用\n\n```\ngo get github.com/oneclickvirt/backtrace@v0.0.5-20250629024536\n```\n\n## 概览图\n\n![图片](https://github.com/oneclickvirt/backtrace/assets/103393591/4688f99f-0f02-486f-8ffc-78d30f2c2f95)\n\n![图片](https://github.com/oneclickvirt/backtrace/assets/103393591/2812a47d-4e6b-4091-9bb9-596af6c3c8bc)\n\n![图片](https://github.com/oneclickvirt/backtrace/assets/103393591/2e5cc625-e0da-41ff-85ff-9d21c01114a3)\n\n## Thanks\n\n部分代码基于 https://github.com/zhanghanyun/backtrace 的重构和优化，与原版存在很大不同\n\nIPV4/IPV6可ICMP进行ping测试的 https://github.com/spiritLHLS/icmp_targets 收集仓库\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fbacktrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneclickvirt%2Fbacktrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fbacktrace/lists"}