Skip to content

Instantly share code, notes, and snippets.

View ulziibay-kernel's full-sized avatar

ulziibay-kernel

View GitHub Profile
@ulziibay-kernel
ulziibay-kernel / twitch-kasada-isp-demo.ts
Last active March 11, 2026 17:30
Twitch Kasada integrity token demo with ISP proxy - 100% pass rate (KERNEL-1074)
/**
* Drop-in fix for the customer's Twitch flow.
* Based on their twitch_client.ts + test.ts with ISP proxy added.
*
* Changes from their original:
* 1. Creates an ISP proxy and passes proxy_id to browsers.create()
* 2. Uses a single browser for both capturePersistedQuery and captureTwitchDetails
* 3. Cleans up proxy + browser on exit
*
* Usage: KERNEL_API_KEY=sk_... npx tsx twitch-customer-fix.ts
@ulziibay-kernel
ulziibay-kernel / cursor-trail-demo.html
Last active March 10, 2026 22:43
Kernel smooth mouse movement demo — cursor trail visualization
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mouse Movement Demo — Cursor Trail</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
font-family: 'SF Mono', 'Fira Code', monospace;
@ulziibay-kernel
ulziibay-kernel / README.md
Last active March 9, 2026 22:42
Reproduce Cloudflare bot detection on Carta login with BrowserUse 2.0 + Kernel

Carta Bot Detection Test

Reproduce Cloudflare bot detection on Carta using BrowserUse 2.0 + Kernel cloud browsers.

Uses BrowserUse's BrowserSession (cdp-use) — the exact same code path as a real BrowserUse + Kernel integration.

Setup

git clone https://gist.github.com/ulziibay-kernel/b5475a108f4f55c2f0cbc3385a741563 carta-bot-test
@ulziibay-kernel
ulziibay-kernel / twitch-kasada-repro.ts
Created March 4, 2026 18:53
Twitch Kasada integrity token repro - Kernel browser (KERNEL-1055)
/**
* Twitch Kasada Integrity Token Repro
*
* Reproduces the customer's exact flow:
* 1. Launch browser, navigate to twitch.tv/directory/all
* 2. Capture integrity token, client-id, device-id, AND the persisted query hash
* 3. Test external fetch with/without integrity token
* 4. Test paginated requests (customer says cursor-based requests enforce kasada)
* 5. Compare external fetch vs in-browser fetch
*
@ulziibay-kernel
ulziibay-kernel / deobfuscated.js
Created February 27, 2026 21:04
reCAPTCHA v3 Enterprise recaptcha__en.js deobfuscated (release AWtrSI7lAmTAfV1rzWqEqz54, Feb 2026) — webcrack output, 33K lines
This file has been truncated, but you can view the full file.
(function () {
/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
/*
Copyright Google LLC
SPDX-License-Identifier: Apache-2.0
*/
@ulziibay-kernel
ulziibay-kernel / creepjs-fingerprint-compare.ts
Created February 27, 2026 20:46
Browser fingerprint comparison: headless vs headful (both with stealth + residential US proxy). Queries browser APIs directly and visits CreepJS for screenshots.
/**
* Fingerprint comparison: headless vs headful
* Both with stealth + residential US proxy.
*
* Strategy:
* 1. Query browser APIs directly via page.evaluate() → structured JSON
* 2. Visit CreepJS → take full-page screenshot for visual comparison
* 3. Diff the structured signals side-by-side
*
* Usage:
@ulziibay-kernel
ulziibay-kernel / index.ts
Last active January 7, 2026 20:36
Kernel reproing issue
import { Stagehand } from "@browserbasehq/stagehand";
import { Kernel } from '@onkernel/sdk';
import { z } from 'zod';
import type { BrowserContext } from 'playwright';
import { chromium } from 'playwright';
import { mkdir } from 'fs/promises';
import { join } from 'path';
interface ChatGPTInput {
query: string;