{"id":14638123,"url":"https://github.com/insightglacier/SourceMapX","last_synced_at":"2025-09-07T06:32:28.741Z","repository":{"id":52903241,"uuid":"343117187","full_name":"insightglacier/SourceMapX","owner":"insightglacier","description":"批量扫描并恢复sourcemap的源代码文件","archived":false,"fork":false,"pushed_at":"2023-11-02T06:51:05.000Z","size":16,"stargazers_count":49,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-24T01:43:11.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/insightglacier.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}},"created_at":"2021-02-28T13:52:43.000Z","updated_at":"2024-10-25T06:43:56.000Z","dependencies_parsed_at":"2024-11-15T20:29:57.512Z","dependency_job_id":null,"html_url":"https://github.com/insightglacier/SourceMapX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightglacier%2FSourceMapX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightglacier%2FSourceMapX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightglacier%2FSourceMapX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightglacier%2FSourceMapX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insightglacier","download_url":"https://codeload.github.com/insightglacier/SourceMapX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232183064,"owners_count":18484727,"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-09-10T02:01:43.573Z","updated_at":"2025-01-02T10:31:33.157Z","avatar_url":"https://github.com/insightglacier.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# SourceMapX\n\n### 批量扫描并恢复sourcemap的源代码文件。\n\n## 安装\n\n该脚本主要由[unwebpack-sourcemap](https://github.com/rarecoil/unwebpack-sourcemap)项目修改而来，使用Python3编写,需要安装 `BeautifulSoup4` and `requests`.可以使用 `pip3 install -r requirements.txt`命令进行安装。主要是修改为批量检测并下载，可用于SRC的漏洞挖掘。\n\n## 使用\n\n命令参数：\n```\nusage: SourceMapX.py [-h] [-m METHOD] [-d] [-o OUTPUT] uri_or_file\n\nA tool to extract code from Webpack sourcemaps. Turns black boxes into gray ones.\n\npositional arguments:\n  uri_or_file           The target URI or file.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -m METHOD, --method METHOD\n                        L:Local, R:Remote\n  -d, --detect          Attempt to detect sourcemaps from JS assets in retrieved HTML.\n  -o OUTPUT, --output OUTPUT\n                        Make the output directory if it doesn't exist.\n\n```\n其中-m有R和L，R为Remote（远程），L为Local（本地）。\n\n-o 为结果文件保存的路径。默认为output。\n\n将要扫描的url存放到文件中（需要带http或https），如urls.txt，然后运行如下命令。\n\n```\npython SourceMapX.py -m R -d urls.txt\n```\n\n对于探测到的.map文件会url地址会保存到`results.txt`文件中。\n\n程序还不够完善，后续看情况是否更新吧。\n\nHappy Hacking!!!\n\n## 致谢\n\n[unwebpack-sourcemap](https://github.com/rarecoil/unwebpack-sourcemap) @rarecoil\n\n**注：请不要将该脚本用于非法用途，仅用于合法的，经过授权的渗透测试，公司内部安全检查与研究使用。由于使用工具带来的不良后果与本人无关。**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightglacier%2FSourceMapX","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsightglacier%2FSourceMapX","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightglacier%2FSourceMapX/lists"}