Question: In Kali Virtual Create a bash script named kali02.sh that will produce an HTML file named kalireport.html. - The HTML file should display the following

In Kali Virtual

Create a bash script named kali02.sh that will produce an HTML file named kalireport.html.

- The HTML file should display the following information in an HTML table.

Research the command required for each of them

o The number of users in your system (hint: get the info from /etc/passwd file)

o The number of users that cannot log in (hint: use /etc/passwd and find the ones whose homedir contain nologin)

o The number of sudo users (hint: use /etc/group and find the sudo group)

o The Linux OS distribution of your machine (you can use the uname -a command for this)

o The name of your machine (you can use the hostname command)

o The length of time this machine has been ON (you can use the uptime command)

o The total number of processes currently running in the machine (you can use the ps -ax command)

o The number of log file in your system (you can use the find command to search the /var/log for any file whose name contain the log word. Make sure to redirect any error into /dev/null

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!