SlideShare a Scribd company logo
How do I use netcat to listen for
connections on port 80 on blue?
1. Turn on red and blue VM’s. Log onto root
for blue.
• Execute the following command : ‘nc –lvp 80’
• ‘nc’ is the netcat command
• -l is the listening flag where it will listen to a specified port ( -p )
• -v is the verbose flag where output is generated onto the terminal.
• -p is the port command, where we specify a port to do a task on ( in this case
we are listening to port 80 )
• ‘80’ is the specified port
2. Execute ‘nc –lvp 80’
You are now listening on port 80 on blue!
• Go onto red and execute the following as root : ‘nc –nv 10.0.2.12 80’
• -n is a flag. This is used to stop a DNS lookup.
• -v is verbose, where output is printed.
• We are connecting to ‘10.0.2.12’ and port ‘80’ on that machine.
• Once executed, type some text to test the connection. You should see the text
written on red appear on blue!
Output on both machines :
Once we cancel netcat on the connecting
machine ( red).. Blue stops to listen :

More Related Content

PPTX
04 18-2018--nmap port-80_blue_after_netcat
PDF
Netcat 101 by-mahesh-beema
PPTX
PPTX
04 22-2018-tcpdump red-80
PPTX
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
PDF
Tcpdump
PPTX
PDF
Beginner's Guide to the nmap Scripting Engine - Redspin Engineer, David Shaw
04 18-2018--nmap port-80_blue_after_netcat
Netcat 101 by-mahesh-beema
04 22-2018-tcpdump red-80
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
Tcpdump
Beginner's Guide to the nmap Scripting Engine - Redspin Engineer, David Shaw

What's hot (20)

PPT
Nmap(network mapping)
PPTX
Nmap and metasploitable
PPT
Александр Зайцев - Port Knocking, short notes
PDF
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
PDF
MOVED: The challenge of SVE in QEMU - SFO17-103
PDF
Zeromq anatomy & jeromq
PPTX
Understanding iptables
DOCX
Destination NAT.docx
PDF
Tomáš Čorej: Configuration management & CFEngine3
PDF
Hacking With Nmap - Scanning Techniques
PDF
Nmap tutorial
PDF
Network Mapper (NMAP)
PPTX
N map presentation
PDF
Staging driver sins
PDF
Nmap scripting engine
ODP
Network for amin
PPTX
Recon with Nmap
PPTX
PPTX
Understanding NMAP
PDF
Nmap Hacking Guide
Nmap(network mapping)
Nmap and metasploitable
Александр Зайцев - Port Knocking, short notes
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
MOVED: The challenge of SVE in QEMU - SFO17-103
Zeromq anatomy & jeromq
Understanding iptables
Destination NAT.docx
Tomáš Čorej: Configuration management & CFEngine3
Hacking With Nmap - Scanning Techniques
Nmap tutorial
Network Mapper (NMAP)
N map presentation
Staging driver sins
Nmap scripting engine
Network for amin
Recon with Nmap
Understanding NMAP
Nmap Hacking Guide
Ad

Similar to 04 18-2018--netcat port-80_blue (20)

PDF
Netcat - 101 Swiss Army Knife
PDF
Cracking Wep And Wpa Wireless Networks
PPT
Ns network simulator
PDF
Iptables presentation
PDF
eLea4555555555555555555555555555555rnSecurity .pdf
PDF
Netcat cheat sheet_v1
PPTX
Null Delhi chapter - Feb 2019
PDF
Cheatsheet: Netcat
PDF
Netcat cheat sheet
PPTX
Zen map
PPTX
Using metasploit
PDF
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
PDF
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
PDF
Secure LXC Networking
PPTX
Packet sniffing in switched LANs
PPTX
Netcat Windowschatting and backdoor 1.pptx
PDF
Open Source Debugging v1.3.2
PDF
Linux Networking Explained
PDF
Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
PPT
Venkat ns2
Netcat - 101 Swiss Army Knife
Cracking Wep And Wpa Wireless Networks
Ns network simulator
Iptables presentation
eLea4555555555555555555555555555555rnSecurity .pdf
Netcat cheat sheet_v1
Null Delhi chapter - Feb 2019
Cheatsheet: Netcat
Netcat cheat sheet
Zen map
Using metasploit
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
Secure LXC Networking
Packet sniffing in switched LANs
Netcat Windowschatting and backdoor 1.pptx
Open Source Debugging v1.3.2
Linux Networking Explained
Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
Venkat ns2
Ad

More from Alexander Bitar (20)

PPTX
04 18-2018--nmap blue
PPTX
04 16-2018--nmap blue
PPTX
04 12-2018-scp ubnetdef-to_blue
PPTX
04 12-2018-scp ubnetdef-to_blue_tmp
PPTX
04 09-2018--internal networkconnection
PPTX
04 09-2018--clone vm
PPTX
04 09-2018--ssh red-to_blue
PPTX
04 09-2018--ssh blue-to_red
PPTX
04 02-2018--Slackware Wire Shark Installation
PPTX
3 27-2018--update slackware
PPTX
3 26-2018--bridged networkcard
PPTX
3 26-2018--ping google
PPTX
3 11-2018--restore snapshot
PPTX
3 07-2018--add studenttosudo
PPTX
3 11-2018--change desktoptoxfce
PPTX
3 11-2018--take snapshot
PPTX
3 06-2018--add newuserstudent
PPTX
3 05-2018-install slackwarelinux
PPTX
3 05-2018-boot todesktop
PPTX
2 27-2018-partedpt2
04 18-2018--nmap blue
04 16-2018--nmap blue
04 12-2018-scp ubnetdef-to_blue
04 12-2018-scp ubnetdef-to_blue_tmp
04 09-2018--internal networkconnection
04 09-2018--clone vm
04 09-2018--ssh red-to_blue
04 09-2018--ssh blue-to_red
04 02-2018--Slackware Wire Shark Installation
3 27-2018--update slackware
3 26-2018--bridged networkcard
3 26-2018--ping google
3 11-2018--restore snapshot
3 07-2018--add studenttosudo
3 11-2018--change desktoptoxfce
3 11-2018--take snapshot
3 06-2018--add newuserstudent
3 05-2018-install slackwarelinux
3 05-2018-boot todesktop
2 27-2018-partedpt2

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Machine Learning_overview_presentation.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Electronic commerce courselecture one. Pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine Learning_overview_presentation.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
A comparative analysis of optical character recognition models for extracting...
Electronic commerce courselecture one. Pdf
Tartificialntelligence_presentation.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The Rise and Fall of 3GPP – Time for a Sabbatical?
MIND Revenue Release Quarter 2 2025 Press Release
MYSQL Presentation for SQL database connectivity

04 18-2018--netcat port-80_blue

  • 1. How do I use netcat to listen for connections on port 80 on blue?
  • 2. 1. Turn on red and blue VM’s. Log onto root for blue. • Execute the following command : ‘nc –lvp 80’ • ‘nc’ is the netcat command • -l is the listening flag where it will listen to a specified port ( -p ) • -v is the verbose flag where output is generated onto the terminal. • -p is the port command, where we specify a port to do a task on ( in this case we are listening to port 80 ) • ‘80’ is the specified port
  • 3. 2. Execute ‘nc –lvp 80’
  • 4. You are now listening on port 80 on blue! • Go onto red and execute the following as root : ‘nc –nv 10.0.2.12 80’ • -n is a flag. This is used to stop a DNS lookup. • -v is verbose, where output is printed. • We are connecting to ‘10.0.2.12’ and port ‘80’ on that machine. • Once executed, type some text to test the connection. You should see the text written on red appear on blue!
  • 5. Output on both machines :
  • 6. Once we cancel netcat on the connecting machine ( red).. Blue stops to listen :