Skip to content

Instantly share code, notes, and snippets.

View parthibx24's full-sized avatar
🧷
busy procrastinating

Inxpired parthibx24

🧷
busy procrastinating
View GitHub Profile
2023-04-20 13:22:19.972 2354-3417 ActivityManager system_server I Killing 13185:com.google.android.webview:webview_service/u0a200 (adj 995): empty #17
2023-04-20 13:22:19.974 2354-3417 PerfImpl system_server D perfProcessKillBoost: com.google.android.webview:webview_service, 13185, 0
2023-04-20 13:22:20.053 1091-1091 vendor.qti....2-service ven...re.servicetracker@1.2-service I size of client connections for client: com.google.android.webview:webview_serviceafter removal is 0
2023-04-20 13:22:20.054 1091-1091 vendor.qti....2-service ven...re.servicetracker@1.2-service I removing client with pid 13185process namecom.google.android.webview:webview_service
2023-04-20 13:22:20.054 1091-1091 vendor.qti....2-service ven...re.servicetracker@1.2-service I destroyService is called for service : com.google.android.webview/org.chromium.android_webview.services.MetricsBridgeService
2023-04-20 13:22:20.871 2354-5468 ActivityManager
@parthibx24
parthibx24 / wg-quick-posix.sh
Last active March 12, 2023 12:48
wg-quick that works anywhere (tested in openwrt). by rowan[at]rowanthorpe.com
#!/bin/sh
# -*- mode: sh; sh-indentation: 2; sh-basic-offset: 2; indent-tabs-mode: nil; fill-column: 100; coding: utf-8-unix; -*-
#
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2015-2020 Jason A. Donenfeld <Jason at zx2c4.com>. All Rights Reserved.
# Austere posix/embedded variant derived by Rowan Thorpe <rowan at rowanthorpe.com>, 2021.
#
# original patch : https://lists.zx2c4.com/pipermail/wireguard/2021-June/006924.html
GET /channels/public/bundles/C46AAF416E09D668.bundle HTTP/1.1
Host: valorant.dyn.riotcdn.net
accept: application/octet-stream
range: bytes=0-1563967
pragma: akamai-x-get-request-id, akamai-x-cache-on
x-wr-diag: host,modes,intstatus
User-Agent: RiotNetwork/1.0.0

[x] Setup environment for wireguard

STEPS:

  1. Organize zones
  2. Forward wireguard traffic (tunnel unrecognized (0.0.0.0/0) traffic to your default gateway)
  3. Masquerade forwarding traffic (do snat for outgoing and dnat for incoming traffic)

1. Organize Zones

POST /api/v1/authorization HTTP/1.1
user-agent: RiotClient/61.0.2 rso-auth (Windows; 10;;Professional, x64)
Content-Type: application/json
Accept: */*
Cache-Control: no-cache
Postman-Token: 7d7aab16-d14c-48aa-803b-a48c770a5b42
Host: auth.riotgames.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
  let riot = new WebSocket("wss://riot:1tDH_xDeAnyXl4-Zmth-AQ@127.0.0.1:62047")
  riot.onopen = (m) => console.log("open", JSON.parse(m.data))
  riot.onmessage = (m) => console.log("message", JSON.parse(m.data))

  riot.send(`[2, "2323", "GET /player-preferences/v1/data-json/Ares.PlayerSettings"]`)
  riot.send(JSON.stringify([2, "3333", "PUT /player-preferences/v1/data-json/Ares.PlayerSettings", data]))
public final void renderList(boolean r34_isSelfProfile, com.riotgames.shared.profile.ProfileState r35_profileState, boolean r36, boolean r37, boolean r38_showMatchHistoryCard) {
r33 = this;
r0_profileState = r35_profileState
java.util.ArrayList r1_arrayList = new java.util.ArrayList
r1_arrayList.<init>()
r2_firstIndex = 0
if (r34_isSelfProfile == 0) goto L2c_showNonFriendProfile
com.riotgames.mobile.profile.ui.ProfileCard r3 = new com.riotgames.mobile.profile.ui.ProfileCard
com.riotgames.mobile.profile.ui.Profile r4 = new com.riotgames.mobile.profile.ui.Profile
java.lang.String r5 = r35_profileState.getGameName()

rso tls client hello

riot-client v51?? (tls 1.2)

Transport Layer Security
    TLSv1.3 Record Layer: Handshake Protocol: Client Hello
        Content Type: Handshake (22)
        Version: TLS 1.0 (0x0301)
        Length: 512
        Handshake Protocol: Client Hello
            Handshake Type: Client Hello (1)
@parthibx24
parthibx24 / lol-game-engineering-ca.cer
Last active June 13, 2022 05:46
riotclient shenanigans
sameas: https://static.developer.riotgames.com/docs/lol/riotgames.pem
-----BEGIN CERTIFICATE-----
MIIEIDCCAwgCCQDJC+QAdVx4UDANBgkqhkiG9w0BAQUFADCB0TELMAkGA1UEBhMC
VVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFTATBgNVBAcTDFNhbnRhIE1vbmljYTET
MBEGA1UEChMKUmlvdCBHYW1lczEdMBsGA1UECxMUTG9MIEdhbWUgRW5naW5lZXJp
bmcxMzAxBgNVBAMTKkxvTCBHYW1lIEVuZ2luZWVyaW5nIENlcnRpZmljYXRlIEF1
dGhvcml0eTEtMCsGCSqGSIb3DQEJARYeZ2FtZXRlY2hub2xvZ2llc0ByaW90Z2Ft
ZXMuY29tMB4XDTEzMTIwNDAwNDgzOVoXDTQzMTEyNzAwNDgzOVowgdExCzAJBgNV
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRUwEwYDVQQHEwxTYW50YSBNb25p
Y2ExEzARBgNVBAoTClJpb3QgR2FtZXMxHTAbBgNVBAsTFExvTCBHYW1lIEVuZ2lu
@parthibx24
parthibx24 / live-manifest-fetch.md
Created April 27, 2022 05:39
valorant scripts
fetch(`https://clientconfig.rpg.riotgames.com/api/v1/config/public?namespace=keystone.products.valorant.patchlines`).then(res => res.json()).then(config => config['keystone.products.valorant.patchlines.live'].platforms.win.configurations.forEach(e => console.log(e.id, e.patch_url)))