Despre unealta Netcat abreviata nc -1-

0

Buna ziua doamnelor si domnilor, bine v-am regasit. Ma numesc Zero Davila iar astazi vom incepe o serie despre unealta Netcat, abreviata nc. O unealta utilitara multifunctionala folosita in networking la crearea conexiunilor, citirea si scrierea datelor intr-o retea, debugging, transfer de fisiere, chat, portscanning, port listening, streaming si mai poate fi folosita la crearea unui backdoor care ofera unui aparat acces la terminalul altui aparat. Astea sunt utilizarile generale, dar adevarul e ca netcat e limitat doar de imaginatia utilizatorului.

Scanare o raza de porturi
nc -z -v -n –

Scanare o lista de porturi
nc -zv

Banner grabbing
echo “QUIT” | nc –

Deschidem o conexiune TCP cu un timeout de 5 secunde
nc -p 31337 -w 5

Deschidem o conexiune UDP
nc -u

Chat client-server
Server
nc -l -p 4444
Client
nc 4444

Chat criptat
Server
cryptcat -k ******** -l -p 8080
Client
cryptcat -k ******** 8080

Chat clienti multipli
Server
ncat –chat -l -p 8080
Client 1
nc 8080
Client 2
nc 8080

Transfer fisiere (downloading)
Server
nc -l 4444 < file.txt
Client
nc -n 4444 > file.txt

Transfer fisiere (uploading)
Server
nc -l 4444 > file.txt
Client
nc 4444 < file.txt

Transfer foldere
Server
tar -cvf –

| nc -l 4444
Client
nc -n 4444 | tar -xvf –
Criptam datele inainte de a le transfera
Server
nc -l 4444 | openssl enc -d -des3 -pass pass:password > file.txt
Client
openssl enc -des3 -pass pass:password | nc 4444

Leave A Reply

Your email address will not be published.