{"id":13843491,"url":"https://github.com/suanve/recode","last_synced_at":"2025-07-11T19:31:49.859Z","repository":{"id":39211649,"uuid":"227261198","full_name":"suanve/recode","owner":"suanve","description":"基于python的代码审计工具","archived":false,"fork":false,"pushed_at":"2022-03-29T05:26:34.000Z","size":19,"stargazers_count":56,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T17:37:41.801Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suanve.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}},"created_at":"2019-12-11T02:43:04.000Z","updated_at":"2024-08-05T16:06:35.000Z","dependencies_parsed_at":"2022-09-20T00:02:43.221Z","dependency_job_id":null,"html_url":"https://github.com/suanve/recode","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/suanve%2Frecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suanve%2Frecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suanve%2Frecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suanve%2Frecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suanve","download_url":"https://codeload.github.com/suanve/recode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225755007,"owners_count":17519184,"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:10.650Z","updated_at":"2024-11-21T15:31:01.618Z","avatar_url":"https://github.com/suanve.png","language":"Python","funding_links":[],"categories":["Python (1887)","Python"],"sub_categories":[],"readme":"### recode代码审计工具\n\n\u003e 方便在Mac/Linux下使用的一个代码审计工具\n\n\u003e 匹配规则部分来自于seay代码审计工具\n\u003e 准备做支持多语言的审计\n\u003e 开发版本为python 3.9\n\u003e 此版本为demo\n### 使用方法:\n`python3 recode.py -h`\n\n```\n$ recode.py  ./\nevil/1.php:2 : eval或者assertc函数中存在变量，可能存在代码执行漏洞\n./nu.php:5 : eval或者assertc函数中存在变量，可能存在代码执行漏洞\n./un.php:6 : eval或者assertc函数中存在变量，可能存在代码执行漏洞\n./un.php:17 : unserialize函数中存在变量,可能存在反序列化漏洞\n./2.php:79 : 命令执行函数中存在变量，可能存在任意命令执行漏洞\n./2.php:79 : 远程请求函数中存在变量,可能存在SSRF漏洞\nevil/3.php:2 : 读取文件函数中存在变量，可能存在任意文件读取漏洞\nevil/3.php:2 : 文件操作函数中存在变量，可能存在任意文件读取/删除/修改/写入等漏洞\n```\n\n\n```\n$ recode.py -t python ./\n./1.py:3 : 存在pickle反序列化操作,可能存在反序列化漏洞\n./1.py:4 : 存在popen命令执行函数,可能存在命令执行漏洞\napps/deploy/views.py:246 : 存在subprocess命令执行函数,可能存在命令执行漏洞\napps/monitor/executors.py:40 : 存在subprocess命令执行函数,可能存在命令执行漏洞\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuanve%2Frecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuanve%2Frecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuanve%2Frecode/lists"}