Skip to content

Instantly share code, notes, and snippets.

View 0xAungkon's full-sized avatar
🎯
Focusing

Aungkon Malakar 0xAungkon

🎯
Focusing
View GitHub Profile
@0xAungkon
0xAungkon / portainer-compose.yml
Created July 4, 2025 14:12
Portainer Docker compose
services:
portainer:
image: portainer/portainer-ce:alpine
container_name: portainer
command: -H unix:///var/run/docker.sock
ports:
- "8011:8000"
- "9000:9000"
- "9443:9443"
volumes:
@0xAungkon
0xAungkon / portainer-connect.md
Created July 2, 2025 16:08
portainer remote connect configuration

Run:

sudo systemctl edit docker.service

Insert:

[Service]
@0xAungkon
0xAungkon / tabular-ifconfig.py
Created June 30, 2025 02:40
A code snipts to open show network configuration over
import subprocess
import re
import shutil
import socket
YELLOW = '\033[93m'
GREEN = '\033[92m'
WHITE = '\033[97m'
GREY = '\033[90m'
RESET = '\033[0m'
@0xAungkon
0xAungkon / backup_script.sh
Created June 23, 2025 06:13
Postgresql Periodic Snapshots
#!/bin/bash
mkdir -p /home/hrms/infra_deploy/database_backups/backups
while IFS=: read -r host port database user password; do
[ -z "$host" ] && continue
backup_dir="/home/hrms/infra_deploy/database_backups/backups/$database"
mkdir -p "$backup_dir"
backup_file="$backup_dir/${database}_$(date +%F_%H-%M-%S).sql"
@0xAungkon
0xAungkon / python-sourcecode-compiler.sh
Last active June 27, 2025 11:05
A Script To Compile All Python at once
#!/bin/bash
src_dir="$(pwd)"
python3 -m compileall "$src_dir"
# Check if the compilation was successful
if [ $? -ne 0 ]; then
echo "Compilation failed."
exit 1
fi
@0xAungkon
0xAungkon / list generator.sh
Created June 16, 2025 15:20
Password List Generator
seq -w 00000000000 99999999999 | pv -l -s 100000000 > phone_number_wordlist.txt
@0xAungkon
0xAungkon / ping_to_wol.ino
Created June 14, 2025 10:06
Ping device if counld't ping sends wol magic packets
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <WiFiUdp.h>
const char* ssid = "SSID";
const char* password = "PWD";
const IPAddress targetIP(192, 168, 0, 239);
const IPAddress broadcastIP(192, 168, 0, 255);
const byte mac[] = {0x54, 0xE1, 0xAD, 0x51, 0x27, 0x4B};
@0xAungkon
0xAungkon / x11-fix.sh
Last active May 21, 2025 10:12
X11 Forwaring Troubleshooting
// Everything Above..................
#X11 connection rejected because of wrong authentication. FIX
xauth extract - $DISPLAY > /tmp/xauth.$USER
sudo -u $USER XAUTHORITY=/tmp/xauth.$USER DISPLAY=$DISPLAY bash
#Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
sudo sysctl -w kernel.unprivileged_userns_clone=1
@0xAungkon
0xAungkon / screen_blackout.sh
Last active April 28, 2025 07:01
screen_blackout.sh
#!/bin/bash
STATUS_FILE="$HOME/.screenstatus"
# If file doesn't exist, create it with 0
if [ ! -f "$STATUS_FILE" ]; then
echo 0 > "$STATUS_FILE"
fi
@0xAungkon
0xAungkon / ssti.py
Created April 19, 2025 20:06
SSTI - Server Side Template Injection Attack - Playbook
# %%
# Import libraries
import requests
import html
# %%
# predefined variables like header and website vulnarable url parameter
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'Accept-Language': 'en-US,en;q=0.9',