Johnermac
  • About me
  • Active Directory
    • PowerShell
      • Customize
      • Notes
      • ETW
      • AMSI Bypass
      • Obfuscation
    • Enumeration
      • Domain
      • GPO
      • ACL
      • Domain Trusts
      • Forest
      • Extra
      • BloodHound
      • BloodHound CE
  • Tunneling
    • Tools
      • Udp2Raw
      • Fraud Bridge
      • Chisel
      • SSF
      • Egress-Assess
      • Ligolo-ng
      • Sshutle
      • Rpivot
      • Tunna
      • reGeorg
      • Neo-reGeorg
      • PivotSuite
  • Post-Exploitation
    • Data Exfiltration
      • HTTP
        • Cancel
        • wget
        • bash
        • busybox
        • IRB
        • PHP
        • Ruby
      • ICMP
        • XXD
        • Ruby
        • Python
      • UDP
        • Netcat
      • TCP
        • Netcat
        • KSH
        • whois
        • Finger
      • HTTPS
        • Python
        • OpenSSL
  • BLOG
    • Articles
      • Pivoting for Red Teaming
Powered by GitBook
On this page
  • Basic Usage
  • How to extract files using netcat
  1. Post-Exploitation
  2. Data Exfiltration
  3. UDP

Netcat

Netcat, also known as "nc," is a versatile networking utility that allows for easy creation of TCP/IP connections, port scanning, and network troubleshooting.

PreviousUDPNextTCP

Last updated 2 years ago

Basic Usage

nc [options] [hostname/IP] [port]
nc example.com 80

Send and receive files

nc -l [port] < file_to_send
nc [server_IP] [port] > received_file

Port scanning

nc -zv [hostname/IP][start_port]-[end_port]

How to extract files using netcat

Set a UDP Listener
Send the files
Wireshark Results