#!/bin/bash # CMDS="update upgrade autoclean clean autoremove" SUDO="sudo" APTCMD="apt-get" FORCE="-y" # add any arg to add dist-upgrade if [ ! -z $1 ]; then CMDS="$CMDS dist-upgrade" echo "Adding dist-upgrade" echo "Remember to reboot after" fi for CMD in $CMDS; do DO="$SUDO $APTCMD $CMD $FORCE" echo "" echo "** Running cmd: $DO" ${DO} if [ $? -eq 1 ]; then echo "*** Something bad happened" else echo "*** Success" fi done
Thursday, August 24, 2017
Kali Linux update script
I've grown tired of typing in all of the commands to properly update my Kali Linux machine so I put this script together. I place all of my personal scripts in $HOME/bin and add that to my .bashrc (PATH="$PATH:$HOME/bin"). Here it is:
Subscribe to:
Post Comments (Atom)
Current Audible Reading List
Title You Never Forget Your First: A Biography of George Washington A Self-Made Man: The Politica...
-
As part of a project I'm working on right now I wanted to know what the "optimal" settings were for running OpenVAS on an ODRO...
-
By default the OPenVAS security assistant listens on port 80 and redirects connections to port 9392, this causes issues if you want to run a...
-
I often have need to use Tor for various testing purposes, mainly to determine how an adversary uses it, and I often just want to run it fro...
No comments:
Post a Comment