Fix command syntax in scanning lab documentation

- Corrected command syntax for sending messages and checking port connectivity in the scanning lab, ensuring accurate execution of examples.
- Updated formatting for consistency and clarity in code snippets throughout the document.
This commit is contained in:
Z. Cliffe Schreuders
2025-10-07 11:23:25 +01:00
parent 11d2a5b38f
commit 23d1c5f475

View File

@@ -278,7 +278,7 @@ nc -lvp 4444
Leave that running, and from another terminal (hint: press Ctl-Shift-T), ==action: send a message using the cat command:==
```bash
cat \>/dev/tcp/localhost/4444
cat > /dev/tcp/localhost/4444
```
Type in a message, and check the other tab to see that it was sent through. Ctl-D to end (only press it once or you may close your terminal window).
@@ -294,7 +294,7 @@ echo $?
==action: If you try to connect to a port that is not open:==
```bash
echo \>/dev/tcp/localhost/7777
echo > /dev/tcp/localhost/7777
```
The $? will report failure: