{"id":24077511,"url":"https://github.com/eirano/iddshell","last_synced_at":"2026-04-30T20:31:39.417Z","repository":{"id":271531593,"uuid":"913744664","full_name":"eirano/iddshell","owner":"eirano","description":"Single-file PHP shell","archived":false,"fork":false,"pushed_at":"2025-01-14T07:37:37.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T23:49:00.992Z","etag":null,"topics":["js-console-imitation","js-terminal","php-shell-script","php-terminal","shell","shell-script","single-file-php-shell","terminal","web-terminal","web-terminal-download","web-terminal-upload"],"latest_commit_sha":null,"homepage":"https://idabi.dev","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/eirano.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T09:18:13.000Z","updated_at":"2025-01-14T07:37:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"582bf6b4-00ec-4157-afd8-8d70dba6022e","html_url":"https://github.com/eirano/iddshell","commit_stats":null,"previous_names":["eirano/iddshell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eirano/iddshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirano%2Fiddshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirano%2Fiddshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirano%2Fiddshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirano%2Fiddshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eirano","download_url":"https://codeload.github.com/eirano/iddshell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eirano%2Fiddshell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["js-console-imitation","js-terminal","php-shell-script","php-terminal","shell","shell-script","single-file-php-shell","terminal","web-terminal","web-terminal-download","web-terminal-upload"],"created_at":"2025-01-09T20:55:09.951Z","updated_at":"2026-04-30T20:31:39.412Z","avatar_url":"https://github.com/eirano.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cpre\u003e\niDD╭━━━━╮    ╭╮    ╭╮╭╮ \n╭━━╯ ╭━ ╰╮   ┃┃    ┃┃┃┃ \n┃    ┃ • ┃╭━━┫╰━┳━━┫┃┃┃\n┣╮   ╰━━╮┣┃━━┫╭╮┃ ━┫┃┃┃\n┃┃ ╭━╮ ╭┫┃┣━━┃┃┃┃ ━┫╰┫╰╮\n ╰━╯ ╰━╯╰╯╰━━┻╯╰┻━━┻━┻━╯\n\u003c/pre\u003e\n# PHP Web Terminal: Single-File PHP Shell for Administrators\n\n\u003e **WARNING**: This script poses a significant security risk. Use only in trusted environments with proper security measures.\n\nThis lightweight, single-file PHP shell provides a web-based terminal interface, enabling users to execute shell commands on the server directly through a browser.\n\n---\n\n## Description\n\n![Interface](images/screenshot.png)\n\n\n### Terminal\n\n**IDDShell** is a lightweight web-based interface resembling an xterm terminal, allowing execution of shell commands that do not require user interaction (non-interactive).\n\nSimilar to a traditional terminal, IDDShell supports tasks such as:\n\n- Changing file permissions\n- Viewing network connections\n- Checking current processes\n\n**Additional Features:**\n- **Uploading and downloading files directly through the terminal interface**\n\n\u003e **Important:** Improper use of IDDShell can compromise server security or stability. Avoid executing unfamiliar commands unless necessary.\n\n### Compatibility\n\n- **Operating Systems**: Unix-like servers only. Not compatible with Microsoft Windows.\n- **Hosting Environments**: Requires PHP functions like `exec` and `shell_exec`. Ensure these functions are enabled on your server.\n- **PHP Version**: Compatible with PHP 7.2 and above.\n\n---\n\n### Features\n\n- **Command History Navigation**: Use arrow keys (↑ ↓) to navigate through command history and execute previous commands using !\u003cnumber\u003e.\n- **Auto-completion**: Command and file name completion with the Tab key.\n- **Remote File System Navigation**: Navigate directories using the `cd` command.\n- **File Uploads**: Drag-and-drop files to upload to the server.\n- **File Downloads**: Download files using the `download \u003cfile_name\u003e` command.\n- **Command Validation**: Ensures only allowed commands (defined in `$allowed_commands`) are executed.\n- **Session Management**: Tracks the current working directory and supports GODMODE for unrestricted commands.\n- **Special Commands**:\n    - `iddsessionvars`: Show session variables.\n    - `iddsessiondrop`: Resets the current session.\n    - `idd**`: Toggles GODMODE for unrestricted execution (will be defined in settings area).\n    - `idd*****`: Deletes the script from the server (will be defined in settings area).\n    - `download \u003cfile_path\u003e`: Downloads the specified file to the client.\n- **Minimal Interface**: Simple HTML interface styled like a terminal.\n- **Command Recall**: Recall and execute previous commands using `!\u003cnumber\u003e`.\n- **Security Measures**: Limits executable commands in normal mode and sanitizes input to mitigate risks.\n\n### Important Notes\n\n- This script is designed for administrative tasks and should only be used in secure, trusted environments.\n- The single-file implementation simplifies deployment but increases security risks if exposed to unauthorized users, particularly with GODMODE enabled.\n\n\n### TODO (Planned Next Update)\n- Add functionality for `Ctrl+C` to interrupt commands.\n- Define an array of allowed file types for upload.\n- Fix issue where inserting large text/HTML causes a crash.\n\n## Changelog\n\n### 1.0.0 (07.01.2025)\n- **File Management:**\n  - Added file existence check and unique filename generation during uploads.\n  - Enhanced file download logic to support spaces and various MIME types.\n  - Improved backend responses for binary and image files.\n\n- **Command History:**\n  - Introduced a session-based command history buffer.\n  - Added `history` command for server-side history retrieval.\n  - Improved frontend navigation for recalling commands.\n\n- **General Improvements:**\n  - Updated autocomplete functionality.\n  - Enhanced JSON response handling for commands and downloads.\n\n### 0.3.5\n- Code refactoring and optimizations.\n\n### 0.3.4\n- Added auto-completion with Tab key.\n- Enhanced drag-and-drop styling for file uploads.\n\n### 0.3.1\n- Introduced file upload functionality.\n- Added `sendRequest()` JavaScript method.\n- Initialized the TAB method for auto-completion.\n\n### 0.2\n- Enabled file downloads.\n- Fixed input lag issues.\n\n### 0.1\n- Initial release.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feirano%2Fiddshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feirano%2Fiddshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feirano%2Fiddshell/lists"}