Apart from that it attempts to find readable folders inside the /etc folder and also prints the SUID and GUID files.
The info that the script retrieves is the logged in username, the distribution and kernel version of the running system, the applicability of the shellsock bug, the mounted filesystems, information which is related to the Network adapters, availability of development tools (python, g++), contents of the hosts file and the listening TCP/UDP connections.
The following script is an information gatherer script which collects info from a running Ubuntu OS and saves it to a file named 'info_gathering.txt'. Your other option is to use one of the API codes with two-factor that GMAIL gives you.
You should be able to find the switch in accounts settings. If you are using GMAIL you have to tell GMAIL to allow less secure apps to connect to your inbox.
RECEIVER: The email you want to send the content of Log.txt to Saves the SSID, Network type, Authentication and the password to Log.txt and emails the contents of Log.txt from a gmail account.