This article walks you through the process of installing PostgreSQL, creating a user, backing up a database and restoring a database. In this tutorial, we’re using Ubuntu, but the commands are the same for everything except the installation. Install PostgreSQL on Ubuntu: apt install postgresql postgresql-contrib systemctl start postgresql ufw
Read moreLinux is at the heart of our services. At AGIX, we’re committed to providing the highest standard of services to our clients. We’re Redhat and Canonical/Ubuntu partners.
Installing Redhat Ansible Automation Platform
This article holds my notes from when I recently tested the Redhat Ansible Automation Platform. I’ve included answers to the questions I had at the start and during my effort to install the system. You need to install this on a Redhat Enterprise Linux v8.4 server, or newer. You don’t
Read moreUsing the “ip” command rather than “ifconfig” on Linux
Long-time Linux system administrators typically use the “ifconfig” command. Perhaps out of habbit, or because it works on other OS’s (similar to ipconfig on Windows). But we should be using the “ip” command in-place of “ifconfig”. The “net-tools” package needs to be installed if you want the “ifconfig” command, and
Read moreIncrease the size of an EC2 partition (Redhat)
I’ve resized plenty of EC2 disks in my time, but the most recent one was a little different. Most of the disks I resize are on Ubuntu or CentOS, but the most recent one was a Redhat disk. Call me crazy but it’s strangely different. The disks layout looks like
Read moreNode.JS with MySQL
This article shows how to implement a small Node.js application that pulls data from a local MySQL server. We’re doing this on a CentOS server but that’s not important – any Linux will do. But if you’re using Windows, the installation process will differ. yum install nodejs npm install mysql
Read moreHide Apache and PHP Version Details
Sometimes we don’t want the public knowing the versions of Apache and PHP running on our servers. This article shows how to hide that information. We’re using CentOS 7 for this example but the only difference really is the location of the configuration file for the Vhosts. Hide the Apache
Read moreMy Most Used Metasploit Modules
The modules that we use are specific to our needs. But these are the most commonly used from my recent history. This list is super generic and mostly to supplement my poor memory. These methods/modules rely on a previously completed db_nmap scan. So our targets are readily available from the
Read moreCreating your own Password list
If you want to create a customised password list for a specific target (client, I hope), this article is for you. It’s basically just a re-write of “https://karimlalji.wordpress.com/2018/04/26/password-guessing-mangle-a-custom-wordlist-with-cewl-and-hashcat/” which I’ll probably forget later so I’m documenting here. We don’t just want a list of passwords, we want a list of
Read moreMount SysInternals over HTTP on Linux
This article demonstrates how to mount “https://live.sysinternals.com/tools” on Linux so that it’s accessible at “/mnt/sysinternals”, for example. On CentOS: yum install davfs2 On Ubuntu: apt install davfs2 Mount it: mount -t davfs https://live.sysinternals.com/tools /mnt/sysinternals Now you can access it at: # ls /mnt/sysinternals/ accesschk64.exe diskext.exe pipelist.exe RegDelNull.exe accesschk.exe Diskmon.exe PORTMON.CNT
Read moreUpgrade MariaDB to 10.3 on CentOS 7
Everything you see here is found more formally at “https://mariadb.com/docs/operations/upgrades/upgrade-community-server-cs103-centos7/”. This page is basically just my notes in case I can’t find the other site when I need it in future. We’re using CentOS 7 and upgrading from “MariaDB 5.5” to “MariaDB 10.3”. Backup your DB and config files first.
Read more