{"id":13393582,"url":"https://github.com/fanpei91/torsniff","last_synced_at":"2025-12-15T09:36:24.971Z","repository":{"id":37734935,"uuid":"52734325","full_name":"fanpei91/torsniff","owner":"fanpei91","description":"torsniff - a sniffer that sniffs torrents from BitTorrent network","archived":false,"fork":false,"pushed_at":"2021-04-26T03:31:06.000Z","size":30766,"stargazers_count":4002,"open_issues_count":8,"forks_count":903,"subscribers_count":197,"default_branch":"master","last_synced_at":"2025-05-07T09:02:17.135Z","etag":null,"topics":["bep0003","bep0005","bep0009","bep0010","bittorrent-protocol","dht","golang","metadata"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fanpei91.png","metadata":{"files":{"readme":"README-zh.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}},"created_at":"2016-02-28T17:45:05.000Z","updated_at":"2025-05-02T10:39:57.000Z","dependencies_parsed_at":"2022-08-08T21:30:43.873Z","dependency_job_id":null,"html_url":"https://github.com/fanpei91/torsniff","commit_stats":null,"previous_names":["fuck-you-gfw/p2pspider","fanpei91/p2pspider","dontcontactme/p2pspider"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanpei91%2Ftorsniff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanpei91%2Ftorsniff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanpei91%2Ftorsniff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fanpei91%2Ftorsniff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fanpei91","download_url":"https://codeload.github.com/fanpei91/torsniff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010793,"owners_count":21998993,"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":["bep0003","bep0005","bep0009","bep0010","bittorrent-protocol","dht","golang","metadata"],"created_at":"2024-07-30T17:00:56.376Z","updated_at":"2025-12-15T09:36:19.925Z","avatar_url":"https://github.com/fanpei91.png","language":"Go","funding_links":[],"categories":["Go","Go (531)","\u003ca id=\"7bf0f5839fb2827fdc1b93ae6ac7f53d\"\u003e\u003c/a\u003e工具","\u003ca id=\"79499aeece9a2a9f64af6f61ee18cbea\"\u003e\u003c/a\u003e浏览嗅探\u0026\u0026流量拦截\u0026\u0026流量分析\u0026\u0026中间人"],"sub_categories":["\u003ca id=\"32739127f0c38d61b14448c66a797098\"\u003e\u003c/a\u003e嗅探\u0026\u0026Sniff","\u003ca id=\"c09843b4d4190dea0bf9773f8114300a\"\u003e\u003c/a\u003e流量嗅探\u0026\u0026监控"],"readme":"torsniff - 一个 BitTorrent 网络种子嗅探器\n======================================\n\n**简体中文** | [English](./README.md)\n\n## 介绍\n\ntorsniff 是一个种子嗅探器，它从 BitTorrent 网络获取人们下载音乐、电影、游戏、文档等等时所用的种子。\n\n种子含有可用的信息，所以你可用 torsniff 打造属于自己的私人种子库（比如：海盗湾），或者做数据挖掘与分析。\n\n## 安装\n\n直接从 [releases](https://github.com/fanpei91/torsniff/releases) 下载最新版即可. \n\n## 用法\n\n```\n$ ./torsniff -h\n\nUsage:\n  torsniff [flags]\n\nFlags:\n  -a, --addr string        listen on given address (default all, ipv4 and ipv6)\n  -d, --dir string         the directory to store the torrents (default \"$HOME/torrents\")\n  -h, --help               help for torsniff\n  -f, --friends int        max fiends to make with per second (default 500)\n  -e, --peers int          max peers to connect to download torrents (default 400)\n  -p, --port uint16        listen on given port (default 6881)\n  -t, --timeout duration   max time allowed for downloading torrents (default 10s)\n  -v, --verbose            run in verbose mode (default true)\n```\n\n## 快速开始\n使用默认参数:\n\n`./torsniff`\n\n种子默认保存在 `$HOME/torrents` 目录里。\n\n## 环境要求\n* 需要一个有公网 IP 的主机（推荐，最好是国外），如果想在私有内网、NAT 内的主机上运行，需要配置端口转发、映射。\n* 允许 UDP 流量通过防火墙\n* 你的 ISP/主机商允许 BitTorrent 流量（torsniff 在 [vultr.com](https://www.vultr.com/?ref=7172229) 能良好运行）\n\n## 协议\n- [DHT Protocol](http://www.bittorrent.org/beps/bep_0005.html)\n- [The BitTorrent Protocol Specification](http://www.bittorrent.org/beps/bep_0003.html)\n- [BitTorrent  Extension Protocol](http://www.bittorrent.org/beps/bep_0010.html)\n- [Extension for Peers to Send Metadata Files](http://www.bittorrent.org/beps/bep_0009.html)\n\n## 许可证\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanpei91%2Ftorsniff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffanpei91%2Ftorsniff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffanpei91%2Ftorsniff/lists"}