https://github.com/brainphreak/hacking-terminal-simulator
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.
https://github.com/brainphreak/hacking-terminal-simulator
emulator game games hacker hacking linux simulation terminal
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/brainphreak/hacking-terminal-simulator
- Owner: brainphreak
- License: other
- Created: 2025-11-11T16:06:40.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-01T04:44:50.000Z (7 months ago)
- Last Synced: 2025-12-03T14:20:11.252Z (7 months ago)
- Topics: emulator, game, games, hacker, hacking, linux, simulation, terminal
- Language: JavaScript
- Homepage: https://www.brainphreak.net
- Size: 71.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hacking Terminal Simulator
A 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.
 
## Live Demo
Open `demo/index.html` to see it in action!
**Live Site:** [theblackpacket.com](https://theblackpacket.com)
[](https://ko-fi.com/F2F35TO7X)
## Features
- **Embedded Terminal** - Renders directly into any container element
- **70+ Commands** - Full Linux-like command set
- **Hacking Tools** - aircrack-ng, john, hashcat, nmap, and more
- **SSH Easter Eggs** - Connect to movie-themed servers (Hackers, Matrix, WarGames, Mr. Robot)
- **Tab Completion** - Auto-complete commands and file paths
- **Command History** - Navigate with arrow keys
- **Multiple Themes** - Green, amber, blue, red, and white color schemes
- **Mobile Friendly** - Responsive design that works on all devices
- **Zero Dependencies** - No external libraries required
## Quick Start
### 1. Include the CSS
```html
```
### 2. Create a Container
```html
```
### 3. Initialize
```html
import { TerminalEmbed } from './terminal-kit-embed/index.js';
TerminalEmbed.init('#terminal');
```
That's it! You now have a fully functional terminal embedded in your page.
## Installation
### Option 1: Direct Download
1. Download the `src/` folder
2. Rename it to `terminal-kit-embed/`
3. Place it in your project
4. Include CSS and JS as shown above
### Option 2: Clone Repository
```bash
git clone https://github.com/brainphreak/hacking-terminal-simulator.git
```
## Usage Examples
### Basic Usage
```html
#terminal {
width: 800px;
height: 500px;
margin: 50px auto;
}
import { TerminalEmbed } from './terminal-kit-embed/index.js';
TerminalEmbed.init('#terminal');
```
### Auto-Initialization
Use the `data-terminal-embed` attribute for automatic initialization:
```html
```
### Using Size Presets
```html
```
### Fullscreen Mode
```html
```
### With Scanline Effect
```html
```
## Themes
Add a theme class to change the terminal colors:
```html
```
### Combining Classes
```html
```
## API Reference
```javascript
// Initialize terminal in a container
TerminalEmbed.init('#container');
TerminalEmbed.init(document.getElementById('terminal'));
// Print output to terminal
TerminalEmbed.printOutput('Hello, World!');
TerminalEmbed.printOutput('Error!', 'terminal-embed-error');
// Focus the terminal input
TerminalEmbed.focus();
// Get the container element
const container = TerminalEmbed.getContainer();
// Check if initialized
if (TerminalEmbed.isInitialized()) { ... }
```
## Available Commands
### File Operations
`ls`, `cd`, `pwd`, `cat`, `head`, `tail`, `more`, `less`, `touch`, `mkdir`, `rm`, `cp`, `mv`, `find`, `grep`, `chmod`, `chown`, `tar`, `gzip`
### Network Tools
`ping`, `nmap`, `traceroute`, `ssh`, `scp`, `curl`, `wget`, `nc`, `telnet`, `ifconfig`, `netstat`, `whois`, `nslookup`, `dig`, `host`
### Wireless/Hacking Tools
`iwconfig`, `airodump-ng`, `aircrack-ng`, `john`, `hashcat`, `base64`, `md5sum`, `sha256sum`, `openssl`, `strings`
### System
`whoami`, `hostname`, `uname`, `date`, `ps`, `top`, `history`, `clear`, `help`
### User Management
`su`, `sudo`, `useradd`, `exit`
## Easter Eggs & Hacking Challenges
### WiFi Cracking
```bash
iwconfig
airodump-ng wlan0
airodump-ng -w capture --bssid AA:BB:CC:DD:EE:FF -c 6 wlan0
aircrack-ng -w /usr/share/wordlists/rockyou.txt capture-01.cap
```
### Password Cracking
```bash
cat /etc/shadow
john --wordlist=/usr/share/wordlists/rockyou.txt /etc/shadow
john --show /etc/shadow
```
### SSH to Movie Servers
```bash
# Hackers (1995)
ssh root@gibson.ellingson.com
# The Matrix (1999)
ssh neo@matrix.metacortex.com
# WarGames (1983)
ssh joshua@wopr.norad.gov
# Mr. Robot (2015)
ssh elliot@fsociety.org
```
### Base64 Encoded Secrets
```bash
ssh neo@matrix.metacortex.com
cat .encoded_message
echo "VGhlcmUgaXMgbm8gc3Bvb24u" | base64 -d
# Output: There is no spoon.
```
## Keyboard Shortcuts
| Key | Action |
|-----|--------|
| `Enter` | Execute command |
| `Tab` | Auto-complete |
| `Up Arrow` | Previous command |
| `Down Arrow` | Next command |
| `Ctrl+C` | Interrupt command |
| `Ctrl+L` | Clear screen |
## File Structure
```
terminal-kit-embed/
├── index.js # Main entry point
├── terminal-embed.js # Terminal implementation
├── commands.js # All command implementations
├── filesystem.js # Virtual filesystem
└── terminal-embed.css # Styles and themes
```
## Customization
### Custom Container Styling
```css
#my-terminal {
width: 100%;
max-width: 900px;
height: 600px;
margin: 0 auto;
border-radius: 12px;
}
```
### Custom Welcome Message
Modify the `printWelcome()` function in `terminal-embed.js` to customize the welcome message.
### Adding Custom Commands
Add new commands to the `commands` object in `commands.js`:
```javascript
mycommand: {
isBuiltin: false,
execute: async (args, ctx) => {
return 'Hello from my custom command!';
}
}
```
## Browser Support
- Chrome 80+
- Firefox 75+
- Safari 13+
- Edge 80+
- Mobile Safari (iOS 13+)
- Chrome for Android
## Comparison: Embed vs Overlay
| Feature | Terminal Kit Embed | Terminal Kit (Overlay) |
|---------|-------------------|------------------------|
| Floating windows | No | Yes |
| Taskbar | No | Yes |
| Music player | No | Yes |
| Matrix rain | No | Yes |
| Embedded in page | Yes | Overlays page |
| Use case | In-page terminal | Desktop simulation |
## Related Projects
- [Terminal Kit](https://github.com/brainphreak/terminal-kit) - Full overlay version with taskbar, music player, and matrix rain
## License
This project is licensed under the GPLv3 License.
## Credits
Created by [brainphreak](https://brainphreak.net)
## Contributing
Contributions welcome! Please submit a Pull Request.