Wednesday, November 28, 2018

Bash on Windows

The day has finally arrived where I can run Linux commands on Windows. This is way better with the ability to run comands like "grep".
Set up Bash on Windows and you are ready to go.

Friday, September 7, 2018

Patch script update

Updated my patch script to cater for kernel patches.

sudo apt-get autoclean && sudo apt-get update --fix-missing
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get dselect-upgrade
sudo apt-get autoremove

Friday, May 11, 2018

Privacy update

Been awhile since I've posted. Not as paranoid as I used to be but still cautious and thus I have 2 new tools to recommend.
I use Brave browser more nowadays because it is built with privacy in mind. However, I installed uBlock Origin plugins for Chrome and Firefox when not on Brave.

Wednesday, February 14, 2018

Nessus update for Ubuntu

Decided to incorporate Nessus update as part of my Ubuntu update script.

#Update Ubuntu
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
#Update Nessus
sudo /etc/init.d/nessusd stop
sudo /opt/nessus/sbin/nessuscli update --all
sudo /etc/init.d/nessusd start

Thursday, June 22, 2017

Script to dump contents of "Robots.txt"

Recently picked up "Python" and decided to try my hand at a "n00b" script to dump the contents of "Robots.txt" file residing on a webserver.

# Ask for Protocol and store it in protocol
protocol = input('Enter HTTP or HTTPS: ')

# Ask for URL or IP and store it in domain
domain = input('Enter URL or IP: ')

robots = "/robots.txt"

from urllib.request import Request, urlopen
print('Checking "Robots.txt" for:')
from urllib.error import URLError, HTTPError
req = Request(protocol+"://"+domain+robots)
    response = urlopen(req)
except HTTPError as e:
    print('The server couldn\'t fulfill the request.')
    print('Error code: ', e.code)
except URLError as e:
    print('We failed to reach the server.')
    print('Reason: ', e.reason)
    print('Contents of "Robots.txt" is as follows.')
with urlopen((protocol+"://"+domain+robots)) as stream:

#Written by commandrine.
#Last updated on 22 Jun 2017.