We can use the existence of error messages like “Sorry, that username already exists!” to produce a list of valid usernames already signed up on the system by using the ffuf tool below. The ffuf tool uses a list of commonly used usernames to check against for any matches. In the above example, the -w argument…
Get an Email notification for successful SSH logins
This is an email alert that is triggered once a SSH login succeeds First we will create the script itself in the ssh folder /etc/ssh/login-notify.sh: Make the file executable, then add the following line to the end of the sshd pam file in /etc/pam.d/sshd It’s set to optional for testing, as it would prevent login…
Testing out AWS Elastic Beanstalk
Elastic Beanstalk is the PaaS component of AWS, it will automatically handle the details of capacity provisioning, load balancing, scaling, and application health monitoring. We will go to AWS Elastic Beanstalk Documentation, look for “Install the EB CLI” to install the eb cli on the cloud9 environment. At the time of writing it was just…
Run a VPS on AWS EC2
Go to AWS EC2, create a new instance, then on the Dashboard of this instance, click on Key pairs in the resources card and create a new ssh key pair. Just change format to pem: The key will be downloaded automatically. It can now be uploaded to cloud9 environment. Just switch over to cloud9, click…
Continuous Delivery with Google App Engine
Create a new Github repo Create a project in GCP UI Setup GAE API (just activate), Permissions (go to IAM and add it) and Cloud Build as well activate cloud-shell and add ssh-keys if not already added to Github: i.e. type ssh-keygen -t rsa than upload key to Github ssh settings Create an initial project…
Python Project Scaffold
create a project scaffold or project template to get started faster with python projects We will create a virtual environment inside our project to avoid any incompatibility issues Example code Example test code We need then a Makefile to automate builds and tests Then we will create the requirements file The .github/workflows/pythonapp.yml file that stores…
A script to secure the server using IPtables firewall
Use this bash script to automate the configuration of the iptables firewall and persist rules over restarts.
How to secure the SSH Server on Ubuntu
This is a short overview of how to secure the SSH server on a fresh Linux system. We will cover the basics of setting up a robust SSH configuration to access and manage the remote machine later on. Secure the SSH Daemon Configuration File All the configuration of the SSH server we need to adjust…
Intro to Docker and Docker compose
we will use docker containers to manage the different services. Here is an example of a http server container and an api server container, that we will use as an example for two containers built to communicate with each other, open a port to the host and automate the start up including the build and…
List of resources
This is a list of resources I’ve found and used so far. Dapp University: Started with one, the guy makes quite a few bold statements and promises, like “How to become a blockchain developer”, explained a few concepts, but the boilerplate code provided was not explained properly, the video format was not for me. I…