{"id":13843405,"url":"https://github.com/r3change/TPLogScan","last_synced_at":"2025-07-11T18:32:05.546Z","repository":{"id":37685244,"uuid":"323826559","full_name":"r3change/TPLogScan","owner":"r3change","description":"ThinkPHP全日志扫描工具，命令行版和BurpSuite插件版","archived":false,"fork":false,"pushed_at":"2021-01-08T02:24:27.000Z","size":760,"stargazers_count":131,"open_issues_count":1,"forks_count":19,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-21T14:39:08.709Z","etag":null,"topics":[],"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/r3change.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}},"created_at":"2020-12-23T06:53:18.000Z","updated_at":"2024-11-03T10:52:14.000Z","dependencies_parsed_at":"2022-09-15T10:11:12.984Z","dependency_job_id":null,"html_url":"https://github.com/r3change/TPLogScan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r3change/TPLogScan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3change%2FTPLogScan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3change%2FTPLogScan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3change%2FTPLogScan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3change%2FTPLogScan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r3change","download_url":"https://codeload.github.com/r3change/TPLogScan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3change%2FTPLogScan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264870433,"owners_count":23676226,"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":[],"created_at":"2024-08-04T17:02:07.039Z","updated_at":"2025-07-11T18:32:04.788Z","avatar_url":"https://github.com/r3change.png","language":"Python","funding_links":[],"categories":["Python (1887)","Python"],"sub_categories":[],"readme":"ThinkPHP3和5日志扫描工具，提供命令行版和BurpSuite插件版，尽可能全的发掘网站日志信息\n\n## 命令行版\n\n### 安装\n\n```\ngit clone https://github.com/r3change/TPLogScan.git\ncd TPLogScan/\npip install -r requirements.txt\n```\n\n### 使用\n\n```\n\u003e python3 TPLogScan.py -h\n\nusage: TPLogScan.py [-h] [-u URL] [-v {3,5}] [-p PATH] [-y YEAR] [-m MONTH]\n                    [-d DAY]\n\nThinkphp 3 or 5 log file scan!\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -u URL, --url URL     target url\n  -v {3,5}, --version {3,5}\n                        thinkphp version, default 3\n  -p PATH, --path PATH  log path\n  -y YEAR, --year YEAR  datetime start year, default this year\n  -m MONTH, --month MONTH\n                        datetime start month, default this month\n  -d DAY, --day DAY     datetime start day, default 1\n```\n\n扫描TP3 1月-本月的网站所有日志\n```\npython3 TPLogScan.py -u URL\n```\n\n扫描TP5 12月的网站所有日志\n```\npython3 TPLogScan.py -u URL -v 5 -m 12\n```\n\n指定日志路径扫描（需同时指定ThinkPHP版本）\n```\npython3 TPLogScan.py -u URL -v 5 -p /runtime/log/ -m 12 -d 25\n```\n\n扫描截图\n\n![](./images/1.png)\n\n\n扫描结果自动保存在 `/TPLogData/{URL}/` 目录下\n\n![日志结果](log.jpg)\n\n\n\n## BurpSuite插件版\n\n### 安装\n\n插件使用Python编写，使用需要先下载 Jython，并在 BurpSuite 中配置\n\nJython下载地址\n```\nhttps://www.jython.org/download.html\n```\n\n配置Jython环境\n\n![](./images/2.png)\n\n添加插件\n\n![](./images/3.png)\n\n插件添加后会新建一个标签页面板\n\n![](./images/4.png)\n\n### 使用\n\n右键菜单选择TPLogScan，根据ThinkPHP版本选择子菜单项，选择后会自动爬取近30天的日志，会将请求记录在新建的面板中\n\n![](./images/5.png)\n![](./images/6.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3change%2FTPLogScan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr3change%2FTPLogScan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3change%2FTPLogScan/lists"}