How to install wpscan on Ubuntu and then scan a WordPress website for vulnerabilities.

Installing the wpscan utility on Ubuntu allows non-invasive scanning of a website running WordPress to find any vulnerabilities. This is very useful to run on your own website, then you may fix any problems presented after the scanning is complete. This helps ensure that your WordPress blog is as secure as you can make it. … Read more

How to easily install Teamspeak on Linux.

Installing Teamspeak allows easy voice and text communication over a TCP/IP network. This is easy to install. Download Teamspeak 64-bit client from this page: https://teamspeak.com/en/downloads/#. Then run it like this to install. ┌──[[email protected]]─[~/Downloads] └──╼ ╼ $ bash ./TeamSpeak3-Client-linux_amd64-3.5.6.run Welcome to the TeamSpeak 3 Client for Linux on amd64 installer   In order to install this … Read more

How to get the gateway IP address of your machine on Linux.

Getting the gateway IP address of your machine is a very important trick sometimes. This is very easy on Linux. Use the ip route command on Linux to print information about the IP routing. This includes the gateway IP address. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ip route | grep default | awk ‘{print $3}’ 192.168.1.1┌──[[email protected]]─[~/Videos] └──╼ … Read more

How to create a file named . on Linux easily. This is a very devious trick.

It is apparently possible to create a file named ., this will make the file unusable, but it is still very cool. I used this simple command. strace touch ‘.​’strace touch ‘.​’ Type a dot character “.”, then press Control-Shift-u and type 200b and then press ENTER, this will create a zero-width invisible character. Then … Read more

How to get an excerpt from a video with FFmpeg.

Extracting an excerpt from a video is very useful, this is how to do it. The command below extracts an excerpt from a video at 00:00:05 to 00:00:15. This is scaled to 640×360 pixels and is good quality. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ffmpeg -v 1 -i agropromfun.mp4 -ss 00:00:05 -to 00:00:15 -c:v libvpx -crf 4 … Read more

Fix no sound in Ubuntu 20.04 after kernel 5.8 installation.

I recently installed the 5.8.0-41-generic kernel and I had no detected sound hardware after booting into the new kernel, but it turns out that a package was missing from my machine. I installed this package and then replugged my sound hardware and it worked straight away. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo apt install linux-modules-extra-$(uname -r)┌──[[email protected]]─[~] … Read more

How to include other files in your .vimrc file to make it more organized.

The ~/.vimrc file is very useful to store your configuration settings in. But it can also have other files included in it, with a simple line of text. This means you can have one configuration file containing syntax highlighting settings and other settings in another file. This is how to do it. Use the line … Read more

How to search for a folder and then switch to it in Linux.

This simple command will search for a folder named xray* and then switch to it. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ cd $(find . -type d -name "xray*")┌──[[email protected]]─[~/Documents] └──╼ ╼ $ cd $(find . -type d -name "xray*") After running this command, it has found a folder that matches the wildcard and then switched to it. ┌──[[email protected]]─[~/Documents/xray-16] … Read more

Very useful Linux tips for getting information on current logins.

There are many ways to get detailed information on known users on your Linux system. The lslogins command is therefore very useful for listing all usable login accounts. The below example will list all user accounts including the root account. This might be disabled on an Ubuntu system, but it is worth listing it anyway. … Read more

Some very useful Linux bash functions.

Show a preview of a directory as you cd into it. c() { cd "$@" ls_truncate=20 files=$(ls -F -C –color=always) files_num=$(echo "$files" | wc -l) echo "$files" | head -n $ls_truncate [ $(echo "$files" | wc -l) -gt "$ls_truncate" ] && echo "(Ommited $((files_num-$ls_truncate)) files/directories)" }c() { cd "$@" ls_truncate=20 files=$(ls -F -C –color=always) files_num=$(echo … Read more

A good way to list valid users in the /etc/passwd file on Linux.

This one-liner will display all users with UIDs over 999 and under 2000. This includes valid users on an Ubuntu system but may be different on other machines. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ awk -F: ‘{if($3>999 && $3<2000)print $1,$3,$6}’ /etc/passwd jason 1000 /home/jason kirk 1001 /home/kirk┌──[[email protected]]─[~/Documents] └──╼ ╼ $ awk -F: ‘{if($3>999 && $3<2000)print $1,$3,$6}’ /etc/passwd … Read more

How to play Playstation games on an Ubuntu 20.04 machine.

Playing Playstation games on a Linux machine is very easy, the pcxsr package allows emulation of Playstation games on a modern Linux machine. Install the package. ┌──[[email protected]]─[~/Documents └──╼ ╼ $ sudo apt install pcsxr┌──[[email protected]]─[~/Documents └──╼ ╼ $ sudo apt install pcsxr Then plug in a USB controller. A Logitech F310 is perfect. Then load up … Read more

An example of recording TV with MPV on Linux.

This is a sample command, I used this to record TV with MPV from a stream. This is quite problematic, but I managed to get this working on the example stream. ┌──[[email protected]]─[~] └──╼ ╼ $ mpv https://c.mjh.nz/101002210221/ –stream-record=tv1.ts –demuxer-lavf-probe-info=yes [ffmpeg] hls demuxer: Can’t support the subtitle(uri: hdntl=exp=1607128378~acl=%2f*~data=hdntl~hmac=a731c5d7a64c0589edb0290b2e2f44e9c48f2dbb1cf2f564d3d0914ee3341922/index_7_0.m3u8) Video –vid=1 ‘bitrate 1910576’ (h264 1024×576 25.000fps) Video … Read more

Get information about an ISO image very easily on Linux. How to view the contents.

Getting information about an ISO image is very easy on Linux. You do not need to mount one to view the contents with ls. There is a simple utility for viewing the contents of ISO images. I created an ISO image like this. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ mkisofs -A "Solyanka Music" -iso-level 4 -J -L … Read more

How to print out bash colors and see how many are available on your chosen terminal.

A color terminal on Linux can print a wide variety of colors. But how many colors can it print? The colortest utility can show this. Install it like this. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ sudo apt-get install colortest┌──[[email protected]]─[~/Documents] └──╼ ╼ $ sudo apt-get install colortest Then run it to get a display table for 16-color terminal … Read more

How to have a blinking $ sign in your Linux prompt. This is very interesting indeed.

This is my current Linux shell prompt. This will show the current Github branch if you are in the folder containing a Git project. But I have added something cool. git_branch() { git branch 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/(\1)/’ }   PS1=’┌──[\[\033[38;5;160m\]\u\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;75m\]\H\[$(tput sgr0)\]]─[\w]\n└──╼ $(git_branch) ╼ \[\033[34;5;9m\]\$\[$(tput sgr0)\] ‘git_branch() { … Read more