{"id":21027633,"url":"https://github.com/caledoniaproject/discuz-getshell-auto-method2","last_synced_at":"2025-03-13T19:12:45.792Z","repository":{"id":146441029,"uuid":"41943270","full_name":"CaledoniaProject/discuz-getshell-auto-method2","owner":"CaledoniaProject","description":"Discuz 全自动GetShell 方法#2","archived":false,"fork":false,"pushed_at":"2015-09-05T00:42:02.000Z","size":126,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T14:48:55.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/CaledoniaProject.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":"2015-09-05T00:31:50.000Z","updated_at":"2020-07-18T11:14:24.000Z","dependencies_parsed_at":"2023-04-07T03:34:55.884Z","dependency_job_id":null,"html_url":"https://github.com/CaledoniaProject/discuz-getshell-auto-method2","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/CaledoniaProject%2Fdiscuz-getshell-auto-method2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaledoniaProject%2Fdiscuz-getshell-auto-method2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaledoniaProject%2Fdiscuz-getshell-auto-method2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaledoniaProject%2Fdiscuz-getshell-auto-method2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaledoniaProject","download_url":"https://codeload.github.com/CaledoniaProject/discuz-getshell-auto-method2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243467025,"owners_count":20295306,"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-11-19T11:51:54.825Z","updated_at":"2025-03-13T19:12:45.772Z","avatar_url":"https://github.com/CaledoniaProject.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Discuz 全自动 GetShell\n\n本方法比写 config_ucenter.php 更加稳定，而且不易出错\n\n#### 用法\n\n打开 `dzhack.php`, 找到 \n\n```\n$webshell = '\u003c?php phpinfo(); ?\u003e';\n \nlist ($status, $data) = $dz-\u003ehack (\n   'http://ubuntu64/dz/',\n   'K856C548X2xaTcDdc248I1pc57gdq4vdL2SdH3ifGd4a0ec6UdcfX0B7m9Ubrcs4',\n   ...\n);\n```\n\n先把第一行 `$webshell` 的内容改了，不需要考虑编码问题，\n\n然后修改 `hack` 函数的参数，第一个为 discuz 的起始路径，第二行为你找到的 UC_KEY\n\n然后执行 `php dzhack.php`,\n\n会在 `data/client.php` 下面生成一个 webshell,\n\n![Screenshot] (https://raw.githubusercontent.com/CaledoniaProject/discuz-getshell-auto-method2/master/contrib/screenshot.png \"Desktop screenshot\")\n\n觉得方便的话，可以顺便把参数改成 argv[1] 和 argv[2]\n\n#### 常见失败原因\n\n1. 新版 Dz 防御了 XSS，所以没法 POST XML\n2. 提示 Authentication Expired （DZ 拼错了），多试几次就好了，因为服务器时钟不一致导致的\n\n#### Legal Disclaimer\n\nUsing this tool is legit but hacking may not be. The author does not take any responsibility for such activities.\n\n\n这个工具是合法的，然而攻击他人服务器并不是合法的，作者对此不承担任何责任\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaledoniaproject%2Fdiscuz-getshell-auto-method2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaledoniaproject%2Fdiscuz-getshell-auto-method2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaledoniaproject%2Fdiscuz-getshell-auto-method2/lists"}