Errata

Cybersecurity Ops with bash

Errata for Cybersecurity Ops with bash

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed, PDF, ePub, Mobi,
Page 76
sed format example

The sed format example has an erroneous / at the end.

Paul Troncone
Paul Troncone
 
Oct 12, 2019  Apr 24, 2020
Printed, PDF, ePub, Mobi,
Page 88
Sort command example

The example "sort -k 2 file1.txt" should read "sort -k 3 file1.txt" to sort by the filename column.

The example "sort -k 1.5,1.7 file1.txt" should read "sort -k 2.5,2.7 file1.txt" to sort by the IP address column.

When using the sort command, the first column starts at position 1.

Paul Troncone
Paul Troncone
 
Oct 05, 2019  Apr 24, 2020
Printed, PDF, ePub, Mobi,
Page 119
Item 1.

Workshop item 1. should refer to tailcount.sh, not livebar.sh.

Paul Troncone
Paul Troncone
 
Oct 12, 2019  Apr 24, 2020
Printed, PDF, ePub, Mobi,
Page 138
baseline.sh

The parseArgs function didn't have all the code in that it should have had. Modifications to the arg list and count (e.g., $#), while valid during the function call, are back to their original values on return from the function. If we want to parse the args in a function we have to first, pass in the arguments on the call to the function, and then all the logic related to parsing should be put inside the function. To fix our code we could have moved more code from the mainline to inside the function. Instead, we chose to move the code out of the function and back into the mainline of the program.

Paul Troncone
Paul Troncone
 
Oct 14, 2019  Apr 24, 2020
Printed
Page 156
1st paragraph code example

The URL in the code example for scanning a file using VirusTotal rendered incorrectly. The URL https:#x002F/www.virustotal.com/vtapi/v2/file/scan should appear as https://www.virustotal.com/vtapi/v2/file/scan

Paul Troncone
Paul Troncone
 
Apr 20, 2019  Apr 24, 2020
Printed, PDF, ePub, Mobi,
Page 191
Table 14-1 and Table 14-2

The hexadecimal value for the ASCII character 'o' should be 6f, not 30 which is the ASCII character for the number 0. The resulting ciphertext for the letter should be b6, not e9.

Paul Troncone
Paul Troncone
 
Oct 13, 2019  Apr 24, 2020
Printed, PDF, ePub, Mobi,
Page 196
askey.sh

The expression \"$1 should be enclosed in quotes: "\"$1"

Paul Troncone
Paul Troncone
 
Oct 13, 2019  Apr 24, 2020
Printed, PDF, ePub, Mobi,
Page 254
checkpass.sh

The 'echo' statement should be under the 'then' clause, not the 'else' clause. The line 'ending=${passin:6}' should read 'ending=${passin:5}'.

Paul Troncone
Paul Troncone
 
Oct 13, 2019  Apr 24, 2020