0
0
Bash Scriptingscripting~5 mins

Port scanning basics in Bash Scripting - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is port scanning in networking?
Port scanning is a method used to check which ports on a computer or server are open and listening for connections. It helps find services running on those ports.
Click to reveal answer
beginner
What does an open port indicate?
An open port means a program or service is ready to accept connections on that port. It can be used to communicate or transfer data.
Click to reveal answer
beginner
Which bash tool is commonly used for port scanning?
The tool 'nc' (netcat) is often used in bash scripts to scan ports by trying to connect to them.
Click to reveal answer
beginner
What does a closed port mean during a scan?
A closed port means no service is listening on that port, so connection attempts will fail or be refused.
Click to reveal answer
beginner
Why should you be careful when performing port scans?
Port scanning can be seen as suspicious or intrusive by network owners. Always have permission before scanning to avoid legal or ethical issues.
Click to reveal answer
What does port scanning help you discover?
AThe CPU speed of a server
BWhich ports are open on a target machine
CThe amount of RAM installed
DThe operating system version
Which bash command is commonly used for simple port scanning?
Agrep
Bls
Cnc (netcat)
Dchmod
What does an open port mean?
AA service is listening and ready to accept connections
BThe port is blocked by a firewall
CThe port is closed and unused
DThe server is turned off
What should you do before scanning someone else's network?
AUse a slow internet connection
BScan without telling anyone
COnly scan during the night
DGet permission from the network owner
If a port scan shows a port is closed, what does it mean?
ANo service is listening on that port
BThe port is open and active
CThe port is used for file storage
DThe port is hidden
Explain in simple terms what port scanning is and why it is useful.
Think about checking which doors (ports) are open in a building (computer).
You got /3 concepts.
    Describe a basic way to scan ports using bash scripting.
    Imagine knocking on doors to see if someone answers.
    You got /3 concepts.