Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
@LuanRT
LuanRT / innertube-full-context.json
Created June 16, 2024 17:38
Extracted from the Android app (v18.18.38), this includes all possible fields that clients might use, as well as debugging fields that aren't used at all.
{
"context":{
"client":{
"hl":"",
"gl":"",
"remoteHost":"1.2.3.4",
"deviceId":"",
"debugDeviceIdOverride":"",
"experimentIds":[
@Snawoot
Snawoot / exclude_routes.sh
Created August 29, 2023 11:29
exclude IP address from wireguard routes
{ ipcalc -j -d 0.0.0.0-167.235.232.135 ; ipcalc -j -d 167.235.232.137-223.255.255.255 ; } | jq -r -s 'map(.DEAGGREGATEDNETWORK) | flatten | join(",")'
0.0.0.0/1,128.0.0.0/3,160.0.0.0/6,164.0.0.0/7,166.0.0.0/8,167.0.0.0/9,167.128.0.0/10,167.192.0.0/11,167.224.0.0/13,167.232.0.0/15,167.234.0.0/16,167.235.0.0/17,167.235.128.0/18,167.235.192.0/19,167.235.224.0/21,167.235.232.0/25,167.235.232.128/29,167.235.232.137/32,167.235.232.138/31,167.235.232.140/30,167.235.232.144/28,167.235.232.160/27,167.235.232.192/26,167.235.233.0/24,167.235.234.0/23,167.235.236.0/22,167.235.240.0/20,167.236.0.0/14,167.240.0.0/12,168.0.0.0/5,176.0.0.0/4,192.0.0.0/3
@coletdjnz
coletdjnz / filemask.md
Last active October 2, 2022 16:22
Filtering fields from googleapi results (including Innertube)

System parameter common to all googleapis for filtering fields

query parameter header
fields X-Goog-FieldMask

FieldMask contains a list of paths

Basics

  • Specify multiple field paths by seperating with a comma

Poor Man's Global Traffic Manager

Sometimes we need to add redundancy to some service or server which happen to be a public-facing entry point of our infrastructure. For example, imagine we want to add a high availability pair for a load balancer which sits on the edge of network and forwards traffic to alive backend servers.

                                             ┌─────────────┐
                                             │             │
                                      ┌─────►│  Backend 1  │
                                      │      │             │
                                      │      └─────────────┘
@karolba
karolba / alpine-on-stardust-no-rescue.md
Last active December 25, 2024 12:07
Install Alpine Linux on Scaleway Stardust without the rescue image using https://netboot.xyz

A way to install Alpine Linux on a Scaleway Stardust instance without the use of a rescue image, but by booting into the install image over the network using https://netboot.xyz.

  1. Connect to the serial console, using scw instance server console {uuid} zone={zone}

  2. Reboot the VM into UEFI settings

    • either by executing systemctl reboot --firmware on the machine
    • or by using scw instance server reboot {uuid} zone={zone} locally and repeatedly mashing the escape key on the serial console image
  3. Go to Device Manager -> Network Device List -> the only network device -> HTTP Boot Configuration -> Boot URI

@coletdjnz
coletdjnz / unavailabletest.py
Last active January 5, 2023 21:36
test for unavailable on this app video
# depends: tqdm, requests, brotli
import json
from datetime import datetime
from pathlib import Path
from tqdm import tqdm
import requests.cookies
import multiprocessing
video_id = "7-BqJKE14Yo"
proxies = {}
@SamantazFox
SamantazFox / client_context.json
Last active August 29, 2022 09:02
Reversing of youtube client context's names
{
"1:0:embedded": { // client
"1:0:embedded": { // context
"1:string": "fr", // hl
"2:string": "FR", // gl
// 4? "remoteHost": "141.98.6.54",
"10:string": "FR", // ???
@approovm
approovm / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md
Last active December 26, 2024 10:26
Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system