Skip to content

Instantly share code, notes, and snippets.

View iamkominn's full-sized avatar

Minn Myat Soe iamkominn

View GitHub Profile
@iamkominn
iamkominn / cka-essentials.md
Created March 26, 2025 02:13
List of Kubectl commands for CKA exam

Kubernetes CLI Commands for CKA Exam

This a comprehensive list of kubectl commands you'll likely use during the CKA exam, categorized by function:

Cluster Management

Check cluster info

kubectl cluster-info
@iamkominn
iamkominn / magic-wormhole-relay.md
Created March 24, 2025 11:58
Setting up a Relay for Magic Wormhole

To set up a relay server for Magic Wormhole (a secure peer-to-peer file transfer tool), you need to deploy a transit relay component. This relay helps peers establish direct connections when they cannot communicate directly due to NAT/firewalls. Here's how to set it up:


1. Install the Transit Relay

Magic Wormhole’s transit relay is a separate Python-based server. Install it using pip:

# Install Python and pip (if not already installed)
sudo apt install python3 python3-pip # Debian/Ubuntu
@iamkominn
iamkominn / adhoc-web-servers.md
Last active March 24, 2025 03:17
Quick and lightweight ways to run an ad-hoc web server directly from the Linux command line to serve static files or directories

1. Python’s Built-in HTTP Server

Python 3:

# Serve current directory on port 8000
python3 -m http.server 8000

# Bind to a specific interface (e.g., localhost only)
python3 -m http.server 8000 --bind 127.0.0.1

# Serve a specific directory

Keybase proof

I hereby claim:

  • I am iamkominn on github.
  • I am minn (https://keybase.io/minn) on keybase.
  • I have a public key ASACvXlabAFqsIOObq_PWAXHW72cu17GzKeL5R_3IMt2nwo

To claim this, I am signing this object:

@iamkominn
iamkominn / CVE-2020-5902.md
Created July 25, 2020 02:54 — forked from cihanmehmet/CVE-2020-5902.md
BIGIP CVE-2020-5902 Exploit POC

🚨BIGIP CVE-2020-5902 Exploit POC 🔥🧱🔨👀


Shodan Seaarch

title:"Big-IP®" org:"Organization Name"
http.title:"BIG-IP®- Redirect" org:"Organization Name"
http.favicon.hash:-335242539 "3992" org:"Organization Name"

🔸LFI

@iamkominn
iamkominn / MyLabStack.yaml
Created September 25, 2019 06:07
My Lab Stack for a Single Web Server Cloudformation Template
# A web server (ports 80, 22 opened)
# on a subnet 10.1.10.0/24
# in a VPC 10.1.0.0/16
# in Region us-east-1a (N Virginia)
# Change the source IP in WebSecurityGroup to your testing IP, line 83 and 88
# Change the SSH key to yours on line 98
AWSTemplateFormatVersion: "2010-09-09"
Resources:

Agressive Scanning (-A)

$ nmap -A scanme.nmap.org

Starting Nmap 7.40 ( https://nmap.org ) at 2019-09-17 04:51 UTC
Nmap scan report for scanme.nmap.org (45.33.32.156)
Host is up (0.17s latency).
Other addresses for scanme.nmap.org (not scanned): 2600:3c01::f03c:91ff:fe18:bb2f
Not shown: 995 closed ports
PORT      STATE    SERVICE    VERSION
@iamkominn
iamkominn / verify-aws-ec2-key-pair-fingerprint.md
Created August 22, 2019 04:29
Verifying AWS EC2 Key Pair's Fingerprint

If you created your key pair using AWS, you can use the OpenSSL tools to generate a fingerprint as follows:

$ openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c

If you created a key pair using a third-party tool and uploaded the public key to AWS, you can use the OpenSSL tools to generate the fingerprint as follows:

$ openssl rsa -in path_to_private_key -pubout -outform DER | openssl md5 -c
@iamkominn
iamkominn / aws-cli-interface.md
Created February 15, 2019 10:46
Installing AWS Command Line Interface on macOS

AWS CLI Using pip

$ pip3 install awscli

Check the installation

$ aws --version
#!/usr/local/bin/python3
## Just a concept to display the forex rates from Central Bank, KBZ Bank, AYA Bank and CB Bank of Myanmar
## TODO: clean the code
from bs4 import BeautifulSoup
import requests,re
import datetime
response = requests.get('http://forex.cbm.gov.mm/api/latest')