/images/avatar.webp

Read, in the Name of your Lord Who created. created humans from a clinging clot. Read! And your Lord is the Most Generous. Who taught by the pen.

Trigger a Jenkins Build on Every Code Push Event

Configure GitHub project Go to your GitHub repository settings and click on Webhooks. Click on add a webhook. In payload URL, add your jenkins installation URL + ‘/github-webhook/’. For example if my jenkins is running at https://jenkins.example.com:8080, I’ll add https://jenkins.example.com:8080/github-webhook/. Disable SSL verification. Select send me everything or you can select only push events. and lastly check the box which says Active. Configure Jenkins project Go to your jenkins project configuration.

Installing MPD on CentOS7

Why CentOS7? Sometimes in production you have to use CentOS7 even if it has lost its life. Or you might be working with vagrant and only OS you have available is CentOS7. Installing packages from official repositories CentOS7 has very limited packages available in official repositories. So you have to install epel-release and nux-dextop packages to extend your packages list. Install epel-release By default, epel-release isn’t installed. So first step you have to install epel-release.

Persistent Backdoor in Linux Environment

So you have hacked a linux box. Next step should be leave a persistent backdoor so in case, it is rebooted, you have to repeat all those steps again and again. There are multiple methods available to create a persistent backdoor. Today I’m going to explain how you can create a backdoor in webservers. Tools needed socat weevely some common sense Installing Tools weevely Install weevely if you don’t have it.

Things to Do After New OpenBSD Install

So you have installed OpenBSD as main OS. Most of the things will work out of the box. But still you have to configure some things. Lock screen on suspend/hibernate/resume Login as root and create /etc/apm directory if it isn’t there already. 1 2 3 4 5 6 7 mkdir /etc/apm echo "pkill -USR1 xidle" > /etc/apm/suspend echo "pkill -USR1 xidle" > /etc/apm/resume echo "pkill -USR1 xidle" > /etc/apm/hibernate chmod +x /etc/apm/suspend chmod +x /etc/apm/hibernate chmod +x /etc/apm/resume On lid closure, machines mostly get suspended.

OpenBSD Encrypted Install

So this is how you can have a fully encrypted OpenBSD installation. Getting OpenBSD Go to OpenBSD website and download the .img file for your hardware. Creating install media If you are on some linux or mac, you can use dd command to burn it to USB drive. Suppose your USB drive is appearing as /dev/sdb in lsblk’s output: 1 dd if=install.img of=/dev/sdb bs=1M Boot from install media Plug the new install media and reboot the system.

OpenBSD Dedicated Dotfiles

OpenBSD as new OS I keep my dotfiles on Github/Gitlab. I had to configure many things so I started a dedicated repository. New Dotfiles I created a new directory dot in my home dir. And cherry picked some of my old dots. I have pushed my new dot directory to Git[hub,lab] as [Awan,Abdullah]/dot respectively. Old Linux dotfiles Linux users still can find my dotfiles on Github and Gitlab.