I recently had some issue on how to enable UART(console) port on a raspberry pi device. This post will help you configure raspberry pi to be accessible by UART(console) on the board. 01. Edit the config.txt under /boot/firmware. Add “enable_uart=1” in the file or edit if the line already exist. 02. Edit cmdline.txt under /boot/firmware.… Continue reading Enable console(UART) on raspberry pi 4b running ubuntu22.04
Let your python script take command line argument with Argparse
Sometime in your life you might want your script to be able to accept command line argument as input. This post will teach you the most basic usage of Argparse library. I only touch surface of this library if you would like to know more detail usage read docs.python.org for further instructions. Installation is quite… Continue reading Let your python script take command line argument with Argparse
Install Rocky Linux
Download the DVD iso from rockylinux. Since DVD iso is the full installation package. Step01 Mount the iso to the device you want to install rocky linux. Step02 Choose language you would like to use Step03 Basic system configuration page (Step 04~08 will refer to this snapshot)The installation can not continue if you have not… Continue reading Install Rocky Linux
Factory Reset Palo Alto Firewall with admin password
This post will show you how to perform factory reset on a Palo Alto firewall. And this post assume you have admin user password of the firewall. Step01Enter maintenance mode using the command below. Step02Select “Factory Reset” option. Step03Confirm to perform a factory reset by selecting the “Factory Reset” option. Step04Wait the system being reset.… Continue reading Factory Reset Palo Alto Firewall with admin password
Change hostname on Centos (CLI)
If you forgot to set the hostname at the installation process, it’s little bit tricky to change it using shell(CLI). This blog post will teach you how to change hostname using command line. Prerequisite1. You have root password/sshkey or sudo user’s password Step 01Check current hostname using hostnamectl. The value display under “Static hostname” is… Continue reading Change hostname on Centos (CLI)
Factory reset Aruba AP
It’s pretty straight forward to reset an Aruba AP, however some models come with different type of serial(console) port. You need to have correspond console cable to be able to perform a factory reset. Please refer to Aruba’s documentation to find what cable you might need. Step 01 Connect console to Aruba AP before power… Continue reading Factory reset Aruba AP
How to setup DHCP server on Ubuntu
Sometimes we might need to set up a DHCP server for our testing. Here is how to set up a simple DHCP server in ubuntu. Step 01Update the package repository. Step 02Install isc-dhcp-server package. Step 03Check which interface you want the DHCP server to listen on.In my example the interface is “enp0s25”. Step 04Edit the… Continue reading How to setup DHCP server on Ubuntu
How to set time(zone) on unix server
Step1List timezones with command below. Step2Find the desired timezone in list. Step3Set timezone with the command below. Step4Check the if the timezone has been changed with the command below.
How to rearm Windows trial license
Step 1Open a administrator Command Prompt(cmd.exe) Step 2 If prompted by UAC, Click Yes. Step 3Check current status by running the command below. A pop-up window will appear and current status is displayed. Step 4 Rearm Windows trial license by running the command below. After pop-up window shows “Command completed successfully”, restart the machine. Step… Continue reading How to rearm Windows trial license
The journey of becoming an OSCP — What to expect on Exam day
Offsec has announced an update of the course(PEN-200) on Mar 15 2023, although the overall process should be similar, be sure to read official article on the change. https://www.offsec.com/offsec/pen-200-2023/ https://help.offensive-security.com/hc/en-us/articles/12483872278932-PEN-200-2023-FAQ =====================Update notes for course change============ I took my exam on Jan 14 and I received my result on Jan 17.(Please note, offsec stated on their… Continue reading The journey of becoming an OSCP — What to expect on Exam day