Ubuntu 20.04 Privilege Escalation
Here is a nice article on privilege escalation in Ubuntu 20.04:
Here is a nice article on privilege escalation in Ubuntu 20.04:
Problem Kali Linux 2018.4 x64 fails to install manually when using VM Fusion 10.1.5 (hangs during “copying data to disk” portion of the install). Solution Create a new Custom VM Select the iso you downloaded When prompted for the OS…
To block countries behind an ELB (Elastic Load Balancer) you should use Maxmind’s GeoIP Country Database. Problem You are unable to use iptables or ipset to block countries because of your Amazon Elastic Load Balancer Solution Use Maxmind’s GeoIP Country…
Objective: Set Timezone to UTC on Ubuntu 12.04 LTS Howto You will be using tzdata and ntpdate Setting the timezone After running this select “etc” (hit enter) then select “UTC” (hit enter) pkg-reconfigure tzdata Syncing the clock apt-get -y install…
here’s a nohup example: nohup nice -n -19 /bin/bash cidr_to_ipset.sh all_countries.txt 2>&1 > </dev/null & nohup is a POSIX command to ignore the HUP (hangup) signal. The HUP signal is, by convention, the way a terminal warns dependent processes of…
To use Apache ProxyPass directives with dynamic hostnames you will need to also use ModRewrite. Objective All requests to the virtualhost will ProxyPass and ProxyPassReverse (also known as an “Apache Gateway”) to the %{HTTP_HOST} The only reason this would make…
Problem When running curl you get this response: curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) Solution curl -ssl3
I have a love hate relationship with the beaver log shipper and ensuring that it is in fact running on all of my machines (and not in a defunct or partially running state) I have finally whipped up a script…
nano syntax highlighting This article describes how to get syntax highlighting in the command line emacs editor “nano“ Ubuntu zcat > ~/.nanorc sed -i ‘s|# include|include|g’ ~/.nanorc Centos/Redhat cp ~/.nanorc sed -i ‘s|# include|include|g’ ~/.nanorc
Installation Modify ~/.bashrc and append this line PS1=”\n\[\e[32;1m\][\[\e[37;1m\]\u@\h:\[\e[37;1m\]\w\[\e[32;1m\]]\\$ \[\e[0m\]” My Bash Prompt To replace yours in one command with this one sed -i ‘s~PS1.*~PS1=”\\n\\[\\e[32;1m\\][\\[\\e[37;1m\\]\\u@\\h:\\[\\e[37;1m\\]\\w\\[\\e[32;1m\\]]\\\\$ \\[\\e[0m\\]”~g’ ~/.bashrc