{"id":49532466,"url":"https://github.com/brainphreak/hacking-terminal-simulator","last_synced_at":"2026-05-02T08:32:33.835Z","repository":{"id":323706200,"uuid":"1094368330","full_name":"brainphreak/hacking-terminal-simulator","owner":"brainphreak","description":"A fully functional, self-contained Linux terminal emulator that can be embedded in any website. Includes over 50 commands, ssh simulation, easter eggs, wifi hacking, password cracking, user management, output piping, output redirect, tab completion, packet capture, dns cache, and other fun stuff.","archived":false,"fork":false,"pushed_at":"2025-12-01T04:44:50.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-03T14:20:11.252Z","etag":null,"topics":["emulator","game","games","hacker","hacking","linux","simulation","terminal"],"latest_commit_sha":null,"homepage":"https://www.brainphreak.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainphreak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-11T16:06:40.000Z","updated_at":"2025-12-01T04:44:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/brainphreak/hacking-terminal-simulator","commit_stats":null,"previous_names":["brainphreak/hacking-terminal-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brainphreak/hacking-terminal-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainphreak%2Fhacking-terminal-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainphreak%2Fhacking-terminal-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainphreak%2Fhacking-terminal-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainphreak%2Fhacking-terminal-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainphreak","download_url":"https://codeload.github.com/brainphreak/hacking-terminal-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainphreak%2Fhacking-terminal-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32528223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["emulator","game","games","hacker","hacking","linux","simulation","terminal"],"created_at":"2026-05-02T08:32:33.011Z","updated_at":"2026-05-02T08:32:33.807Z","avatar_url":"https://github.com/brainphreak.png","language":"JavaScript","funding_links":["https://ko-fi.com/F2F35TO7X"],"categories":[],"sub_categories":[],"readme":"# Hacking Terminal Simulator\n\nA standalone hacking terminal simulator that embeds directly into any webpage. No floating windows, no taskbar - just a fully functional Linux-like terminal that integrates seamlessly into your site.\n\n![Hacking Terminal](https://img.shields.io/badge/version-1.0.0-green) ![License](https://img.shields.io/badge/license-GPLv3-blue)\n\n## Live Demo\n\nOpen `demo/index.html` to see it in action!\n\n**Live Site:** [theblackpacket.com](https://theblackpacket.com)\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F2F35TO7X)\n\n## Features\n\n- **Embedded Terminal** - Renders directly into any container element\n- **70+ Commands** - Full Linux-like command set\n- **Hacking Tools** - aircrack-ng, john, hashcat, nmap, and more\n- **SSH Easter Eggs** - Connect to movie-themed servers (Hackers, Matrix, WarGames, Mr. Robot)\n- **Tab Completion** - Auto-complete commands and file paths\n- **Command History** - Navigate with arrow keys\n- **Multiple Themes** - Green, amber, blue, red, and white color schemes\n- **Mobile Friendly** - Responsive design that works on all devices\n- **Zero Dependencies** - No external libraries required\n\n## Quick Start\n\n### 1. Include the CSS\n\n```html\n\u003clink rel=\"stylesheet\" href=\"terminal-kit-embed/terminal-embed.css\"\u003e\n```\n\n### 2. Create a Container\n\n```html\n\u003cdiv id=\"terminal\" style=\"width: 100%; height: 500px;\"\u003e\u003c/div\u003e\n```\n\n### 3. Initialize\n\n```html\n\u003cscript type=\"module\"\u003e\n    import { TerminalEmbed } from './terminal-kit-embed/index.js';\n\n    TerminalEmbed.init('#terminal');\n\u003c/script\u003e\n```\n\nThat's it! You now have a fully functional terminal embedded in your page.\n\n## Installation\n\n### Option 1: Direct Download\n\n1. Download the `src/` folder\n2. Rename it to `terminal-kit-embed/`\n3. Place it in your project\n4. Include CSS and JS as shown above\n\n### Option 2: Clone Repository\n\n```bash\ngit clone https://github.com/brainphreak/hacking-terminal-simulator.git\n```\n\n## Usage Examples\n\n### Basic Usage\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"terminal-kit-embed/terminal-embed.css\"\u003e\n    \u003cstyle\u003e\n        #terminal {\n            width: 800px;\n            height: 500px;\n            margin: 50px auto;\n        }\n    \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv id=\"terminal\"\u003e\u003c/div\u003e\n\n    \u003cscript type=\"module\"\u003e\n        import { TerminalEmbed } from './terminal-kit-embed/index.js';\n        TerminalEmbed.init('#terminal');\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Auto-Initialization\n\nUse the `data-terminal-embed` attribute for automatic initialization:\n\n```html\n\u003cdiv data-terminal-embed style=\"width: 100%; height: 400px;\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"module\" src=\"terminal-kit-embed/index.js\"\u003e\u003c/script\u003e\n```\n\n### Using Size Presets\n\n```html\n\u003cdiv id=\"terminal\" class=\"small\"\u003e\u003c/div\u003e  \u003c!-- 300px height --\u003e\n\u003cdiv id=\"terminal\" class=\"medium\"\u003e\u003c/div\u003e \u003c!-- 450px height --\u003e\n\u003cdiv id=\"terminal\" class=\"large\"\u003e\u003c/div\u003e  \u003c!-- 600px height --\u003e\n```\n\n### Fullscreen Mode\n\n```html\n\u003cdiv id=\"terminal\" class=\"fullscreen\"\u003e\u003c/div\u003e\n```\n\n### With Scanline Effect\n\n```html\n\u003cdiv id=\"terminal\" class=\"scanlines\"\u003e\u003c/div\u003e\n```\n\n## Themes\n\nAdd a theme class to change the terminal colors:\n\n```html\n\u003c!-- Green (default) --\u003e\n\u003cdiv id=\"terminal\" class=\"theme-green\"\u003e\u003c/div\u003e\n\n\u003c!-- Amber/Orange --\u003e\n\u003cdiv id=\"terminal\" class=\"theme-amber\"\u003e\u003c/div\u003e\n\n\u003c!-- Blue/Cyan --\u003e\n\u003cdiv id=\"terminal\" class=\"theme-blue\"\u003e\u003c/div\u003e\n\n\u003c!-- Red --\u003e\n\u003cdiv id=\"terminal\" class=\"theme-red\"\u003e\u003c/div\u003e\n\n\u003c!-- White --\u003e\n\u003cdiv id=\"terminal\" class=\"theme-white\"\u003e\u003c/div\u003e\n```\n\n### Combining Classes\n\n```html\n\u003cdiv id=\"terminal\" class=\"theme-amber scanlines large\"\u003e\u003c/div\u003e\n```\n\n## API Reference\n\n```javascript\n// Initialize terminal in a container\nTerminalEmbed.init('#container');\nTerminalEmbed.init(document.getElementById('terminal'));\n\n// Print output to terminal\nTerminalEmbed.printOutput('Hello, World!');\nTerminalEmbed.printOutput('Error!', 'terminal-embed-error');\n\n// Focus the terminal input\nTerminalEmbed.focus();\n\n// Get the container element\nconst container = TerminalEmbed.getContainer();\n\n// Check if initialized\nif (TerminalEmbed.isInitialized()) { ... }\n```\n\n## Available Commands\n\n### File Operations\n`ls`, `cd`, `pwd`, `cat`, `head`, `tail`, `more`, `less`, `touch`, `mkdir`, `rm`, `cp`, `mv`, `find`, `grep`, `chmod`, `chown`, `tar`, `gzip`\n\n### Network Tools\n`ping`, `nmap`, `traceroute`, `ssh`, `scp`, `curl`, `wget`, `nc`, `telnet`, `ifconfig`, `netstat`, `whois`, `nslookup`, `dig`, `host`\n\n### Wireless/Hacking Tools\n`iwconfig`, `airodump-ng`, `aircrack-ng`, `john`, `hashcat`, `base64`, `md5sum`, `sha256sum`, `openssl`, `strings`\n\n### System\n`whoami`, `hostname`, `uname`, `date`, `ps`, `top`, `history`, `clear`, `help`\n\n### User Management\n`su`, `sudo`, `useradd`, `exit`\n\n## Easter Eggs \u0026 Hacking Challenges\n\n### WiFi Cracking\n\n```bash\niwconfig\nairodump-ng wlan0\nairodump-ng -w capture --bssid AA:BB:CC:DD:EE:FF -c 6 wlan0\naircrack-ng -w /usr/share/wordlists/rockyou.txt capture-01.cap\n```\n\n### Password Cracking\n\n```bash\ncat /etc/shadow\njohn --wordlist=/usr/share/wordlists/rockyou.txt /etc/shadow\njohn --show /etc/shadow\n```\n\n### SSH to Movie Servers\n\n```bash\n# Hackers (1995)\nssh root@gibson.ellingson.com\n\n# The Matrix (1999)\nssh neo@matrix.metacortex.com\n\n# WarGames (1983)\nssh joshua@wopr.norad.gov\n\n# Mr. Robot (2015)\nssh elliot@fsociety.org\n```\n\n### Base64 Encoded Secrets\n\n```bash\nssh neo@matrix.metacortex.com\ncat .encoded_message\necho \"VGhlcmUgaXMgbm8gc3Bvb24u\" | base64 -d\n# Output: There is no spoon.\n```\n\n## Keyboard Shortcuts\n\n| Key | Action |\n|-----|--------|\n| `Enter` | Execute command |\n| `Tab` | Auto-complete |\n| `Up Arrow` | Previous command |\n| `Down Arrow` | Next command |\n| `Ctrl+C` | Interrupt command |\n| `Ctrl+L` | Clear screen |\n\n## File Structure\n\n```\nterminal-kit-embed/\n├── index.js            # Main entry point\n├── terminal-embed.js   # Terminal implementation\n├── commands.js         # All command implementations\n├── filesystem.js       # Virtual filesystem\n└── terminal-embed.css  # Styles and themes\n```\n\n## Customization\n\n### Custom Container Styling\n\n```css\n#my-terminal {\n    width: 100%;\n    max-width: 900px;\n    height: 600px;\n    margin: 0 auto;\n    border-radius: 12px;\n}\n```\n\n### Custom Welcome Message\n\nModify the `printWelcome()` function in `terminal-embed.js` to customize the welcome message.\n\n### Adding Custom Commands\n\nAdd new commands to the `commands` object in `commands.js`:\n\n```javascript\nmycommand: {\n    isBuiltin: false,\n    execute: async (args, ctx) =\u003e {\n        return 'Hello from my custom command!';\n    }\n}\n```\n\n## Browser Support\n\n- Chrome 80+\n- Firefox 75+\n- Safari 13+\n- Edge 80+\n- Mobile Safari (iOS 13+)\n- Chrome for Android\n\n## Comparison: Embed vs Overlay\n\n| Feature | Terminal Kit Embed | Terminal Kit (Overlay) |\n|---------|-------------------|------------------------|\n| Floating windows | No | Yes |\n| Taskbar | No | Yes |\n| Music player | No | Yes |\n| Matrix rain | No | Yes |\n| Embedded in page | Yes | Overlays page |\n| Use case | In-page terminal | Desktop simulation |\n\n## Related Projects\n\n- [Terminal Kit](https://github.com/brainphreak/terminal-kit) - Full overlay version with taskbar, music player, and matrix rain\n\n## License\n\nThis project is licensed under the GPLv3 License.\n\n## Credits\n\nCreated by [brainphreak](https://brainphreak.net)\n\n## Contributing\n\nContributions welcome! Please submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainphreak%2Fhacking-terminal-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainphreak%2Fhacking-terminal-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainphreak%2Fhacking-terminal-simulator/lists"}