Skip to content

Instantly share code, notes, and snippets.

View saturn99's full-sized avatar
🧑‍🦳
:)

King Louie saturn99

🧑‍🦳
:)
View GitHub Profile
@saturn99
saturn99 / s3_upload.sh
Created March 4, 2025 14:02 — forked from tuxfight3r/s3_upload.sh
AWS - Upload files to S3 via curl
#!/bin/bash -x
#Date: 21/7/2017
#Author: Mohan
#Purpose: To upload files to AWS S3 via Curl
#Uploads file at the top level folder by default
#S3 parameters
S3KEY="XXXXXXXXXXX"
S3SECRET="XXXXXXXXXXXXXXXX"
@saturn99
saturn99 / telegram_webapp_validator.py
Created February 21, 2025 11:29 — forked from nukdokplex/telegram_webapp_validator.py
Telegram WebApp init data validator on Python
from hmac import new as hmac_new
from hashlib import sha256
from urllib.parse import unquote
def validate(init_data: str, token: str, c_str="WebAppData") -> None | dict[str, str]:
"""Validates init data from webapp to check if a method was received from Telegram
Args:
init_data (str): init_data string received from webapp
@saturn99
saturn99 / curl_range.md
Created February 17, 2025 22:25 — forked from mocchira/curl_range.md
HTTP GET with Range header by curl
  • normal(explicitly specified start AND end)
  curl -v -X GET -H "range: bytes=1-8" http://localhost:8080/bbb/test
  • specified ONLY start(end will be specified at the end of file)
  curl -v -X GET -H "range: bytes=10-" http://localhost:8080/bbb/test
  • specified ONLY one negative value(last N bytes of file will be retrieved)
@saturn99
saturn99 / index.py
Created February 1, 2025 12:40 — forked from behnamonline/index.py
anonymous telegram chat
# 0.create a python worker
# 1.create a D1 database and bind it to your worker -> db
# 2.go to D1->the databse->Console and run this sql to create users table
# CREATE TABLE users ("id" integer PRIMARY KEY,"telegram_user_id" text,"rkey" text,"target_user" text)
# 3.open the worker in browser and -> https://yourworker.username.workers.dev/init to set webhook
# https://www.instagram.com/behnamonline
# https://www.youtube.com/@behnamonline
# https://t.me/behnamonline99
@saturn99
saturn99 / worker.js
Created January 26, 2025 18:57 — forked from behnamonline/worker.js
force join telegram bot
// ozv ejbari telegram bot
/*
https://www.instagram.com/behnamonline
https://www.youtube.com/@behnamonline
https://t.me/behnamonline99
https://www.aparat.com/behnam.online
*/
/*
@saturn99
saturn99 / Burp certificate on Android
Created August 3, 2022 12:07 — forked from PaulSec/Burp certificate on Android
Add your Burp certificate on an Android device
To do so:
1. Export your Burp Certificate
Proxy > Options > CA Certificate > Export in DER format
2. Convert it to PEM
openssl x509 -inform der -in cacert.der -out burp.pem
3. Download it on the device
@saturn99
saturn99 / android-burp-cert.sh
Created August 3, 2022 12:07 — forked from vavkamil/android-burp-cert.sh
One Liner For Installing Burp Certificate Into Android Nougat and Later
# https://securitychops.com/2019/08/31/dev/random/one-liner-to-install-burp-cacert-into-android.html
#
curl --proxy http://127.0.0.1:8080 -o cacert.der http://burp/cert \
&& openssl x509 -inform DER -in cacert.der -out cacert.pem \
&& cp cacert.der $(openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1).0 \
&& adb root \
&& adb remount \
&& adb push $(openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1).0 /sdcard/ \
&& echo -n "mv /sdcard/$(openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1).0 /system/etc/security/cacerts/" | adb shell \
&& echo -n "chmod 644 /system/etc/security/cacerts/$(openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1).0" | adb shell \
@saturn99
saturn99 / wp-wordlist.sh
Created July 30, 2022 08:28 — forked from Roni-Carta/wp-wordlist.sh
wp-wordlist helps you create wordlist of all the Wordpress' Themes and Plugins available
wp-wordlist()
{
option="$1"
if [[ "$option" == *"plugin"* ]]; then
curl -s https://plugins.svn.wordpress.org/ | tail -n +5 | sed -e 's/<[^>]*>//g' -e 's/\///' -e 's/ \+//gp' | grep -v "Powered by Apache" | sort -u
elif [[ "$option" == *"theme"* ]]; then
curl -s https://themes.svn.wordpress.org/ | tail -n +5 | sed -e 's/<[^>]*>//g' -e 's/\///' -e 's/ \+//gp' | grep -v "Powered by Apache" | sort -u
fi
}
@saturn99
saturn99 / ARMDebianUbuntu.md
Created June 11, 2022 23:35 — forked from Liryna/ARMDebianUbuntu.md
Emulating ARM on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

trick

if you create a new wget child process "wget http://foo.bar", but redirect child stdin and stdout to the same pipe, wget will give you something like this

  0K .......... .......... .......... .......... ..........  0%  105K 2h1m
 50K .......... .......... .......... .......... ..........  0%  158K 1h41m
100K .......... .......... .......... .......... ..........  0%  302K 81m58s