Press any key to start."Īpt-get -qq update # -qq makes APT as silent as possible while still printing errorsĮcho "Nmap is a program that can be used to scan devices on a network, search for open ports, and do other networking tasks."Įcho "Nmap can be used to perform malicious tasks."Įcho "This will be removed, assuming it has been installed with the package management system."Įcho "Wireshark is a packet analyzer that can inspect network traffic."Įcho "Wireshark can be used to perform malicious tasks."Įcho "John the Ripper is a password cracking tool that can be used to perform many different kinds of attacks to access users’ passwords."Įcho "John the Ripper can be used to perform malicious tasks."Įcho "Tor is network anonymity software that can be used to get around network restrictions and secretly do activities over the Internet."Įcho "Tor is often associated with the Deep Web and the Dark Web."Įcho "Here is a list of all users in the \"sudo\" group:" # Warn about any installed server software that we should be concerned aboutĮcho "The Apache configuration file directory (/etc/apache2) has been found."Įcho "The MySQL configuration file directory (/etc/mysql) has been found."Įcho "MySQL or MariaDB may be installed."Įcho "The Nginx configuration file directory (/etc/nginx) has been found."Įcho "The OpenSSH server configuration file has been found."Įcho “The OpenSSH server may be installed."Įcho "Remember to disable root login with \`PermitRootLogin no\`."Įcho "All systems tests have been run successfully. # Let's test if the Internet connection works using NetcatĮcho "You do not seem to have a working Internet connection."Įcho "Connect to the Internet and try again." Try running this script again on Ubuntu."Įcho "This script has not yet been tested on Ubuntu $(lsb_release -s -r), but it will probably still work." If Įcho "This script is meant to be run on Ubuntu. # If lsb_release is not available, don't worry about it and move on # If lsb_release is available, check one last time to make sure this only runs on Ubuntu # Now that we know uname is installed, we can run a quick kernel/OS checkĮcho "This script is running on an OS with the Darwin kernel, most likely OS X."Įcho "This script should be run on Ubuntu with the Linux kernel instead."Įcho "The kernel currently running is not Linux."Įcho "Are you sure you're running this on Ubuntu?"Įcho "Make sure that APT is installed and try again."Įcho "Please install Python 2 and try again." Please install nano and try again."Įcho "Please install an AWK interpreter and try again." # Temporarily decrease swappiness for this session to make the system fasterĮcho "nano is not installed. # Security vulnerability scanner for UbuntuĮxport UNIXMESSAGE1="The following UNIX program could not be found:"Įxport UNIXMESSAGE2="Please confirm that your standard Unix utilities are installed."Įcho "Starting Ubuntu security script."Įcho "Netcat is not installed. It's strange, and I don't know how to troubleshoot it. Whenever I try to invoke the script, it's like it prints random bits of the script on the terminal and it executes other portions of the script. I always make the file executable with chmod +x, but that doesn't help anything. It is a normal shell script that is meant to be run with Bash (I use #!/bin/bash in the script instead of the typical #!/bin/sh because it uses some Bash-specific features) but it always acts strange in the virtual machines. To assist myself in the competition, I have written a shell script that automates some tasks. Ubuntu is one of the operating systems we are given. At my high school, I am competing in a cyber security competition, and we are given virtual machines of operating systems with security vulnerabilities that we must correct.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |