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 / Ride Workflow.txt
Last active January 28, 2025 20:44
Uber Websocket Ride Workflow
Workflow:
1. Connect to Websocket , Send Notification to all nearest Drivers. UserEnd
2. Driver Recived The Request and Accept or Decliened the Request. DriverEnd
3. If Anyother driver try to accept the ride after one driver accepted it , He should got a message You Are Late. DriverEnd
4. After Accept The Ride From Driver It should create a trip in database with the nessesary information.
Customer Server Lisener -> /Driver/akfjsehfefh<auth-token>
Driver Server Lisener -> /User/eysafhseuifgy<auth-token>
Sender:
@0xAungkon
0xAungkon / Readme.md
Created February 13, 2025 11:47
Github Standard Branching Names
Branch Name Example Description
main main The primary stable branch, always contains production-ready code.
develop develop The main development branch where new features are integrated before release.
feature/* feature/add-login Used for developing new features; created from develop and merged back when complete.
release/* release/v1.0.0 Prepares a new production release; used for final testing and bug fixes before merging into main and develop.
hotfix/* hotfix/fix-login-bug Used for critical bug fixes in production; branched from main, then merged back into main and develop.
bugfix/* bugfix/fix-typo Fixes non-critical bugs in development; branched from develop and merged back.
@0xAungkon
0xAungkon / Makefile
Created February 16, 2025 06:37
Makefile Example
include .env
export
# Django development variables
PYTHON = python3
MANAGE = $(PYTHON) ./manage.py
PORT = 8081
@0xAungkon
0xAungkon / xrandr-brightness-ctrl
Created February 26, 2025 12:29
Xrandr Brightness Control
import sys
import subprocess
# Ensure correct usage of the script
if len(sys.argv) != 3 or sys.argv[2] not in ["--increase", "--decrease"]:
print("Usage: xrandr-brightness.py <display> <--increase|--decrease>")
sys.exit(1)
display = sys.argv[1] # Get the display name from command-line arguments
action = sys.argv[2] # Get the action (--increase or --decrease)
@0xAungkon
0xAungkon / postinst
Created March 11, 2025 19:06
NTOPNG Installation Fixed
#!/bin/sh -e
SUB_DISTRO=`lsb_release -i|cut -f 2`
if test "$SUB_DISTRO" = "Debian"; then
REL=`/usr/bin/lsb_release -c|cut -f 2`
else
REL=`/usr/bin/lsb_release -s -r`
fi
case "$1" in
@0xAungkon
0xAungkon / clean.sh
Created March 16, 2025 07:33
Refresh Docker - Docker Stop and Clean Everything Containers, Images , Networks , Volumns ++
docker stop $(docker ps -q) && docker rm $(docker ps -aq)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
docker network rm $(docker network ls -q | grep -v "bridge\|host\|none")
docker system prune -a --volumes -f
@0xAungkon
0xAungkon / source_code_combiner.py
Last active June 27, 2025 12:27
Source Code Combiner
import os
import argparse
import time
parser = argparse.ArgumentParser(description="Combine code files into a markdown document.")
parser.add_argument('--output', required=True, help='Output markdown file path')
parser.add_argument('--folders', required=True, help='Comma-separated list of folders to scan')
parser.add_argument('--extensions', required=True, help='Comma-separated list of file extensions to include')
parser.add_argument('--verbose', action='store_true', help='Enable verbose logging')
args = parser.parse_args()
@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',
@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 / 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