CTF Challenge

Intro Recently while browsing the internet I noticed a CTF challenge that was form of preselection to job interview. Generally I was not very interested with job in security field, but I wanted to try if I can solve any of the tasks without any preparation and generally I like challenges. I did some CTF’s in the past but it was a couple years ago when I was at the university and I think I wasn’t good at it....

March 22, 2024 · 7 min · Piotr Banas

Getting Familiar With Nginx

Introduction Some time ago I’ve stared working on web app in Go. I’ve been using standard net/http library to handle all requests. I have also implemented some basic logging and then I realized that I’ve written quite a bit code that not necessary is related with my app, but it does basic HTTP server stuff. So I’ve asked myself: “Do I need use some HTTP server like for Python web app?...

January 2, 2024 · 12 min · Piotr Banas

Create Virsh Ubuntu VM

Download qcow image Download qcow image from Ubuntu repo Resize image qemu-img info ubuntu.img qemu-img resize ubuntu.img 20G #or qemu-img resize ubuntu.img +10G Create user-data and meta-date for cloud-init Users are created on the first boot, so it impossible to change password/ssh key after first boot. To create password hash use following command: mkpasswd --method=SHA-512 --rounds=4096 user-data #cloud-config users: - name: ubuntu ssh_authorized_keys: - ssh-rsa AAAAB3...asdf root@localhost sudo: 'ALL=(ALL) NOPASSWD:ALL' groups: sudo shell: /bin/bash - name: ubuntu2 lock_passwd: false passwd: <password-hash> sudo: 'ALL=(ALL) NOPASSWD:ALL' groups: sudo shell: /bin/bash meta-data...

December 25, 2023 · 2 min · Piotr Banas