Skip to content

Instantly share code, notes, and snippets.

View C0DEbrained's full-sized avatar
Inhaling Caffeine

Corey C0DEbrained

Inhaling Caffeine
View GitHub Profile
@C0DEbrained
C0DEbrained / k1c-2025-exploit.py
Last active January 23, 2026 21:34
Creality K1C 2025 Root Exploit
import sys
import argparse
import threading
import json
import time
from http.server import SimpleHTTPRequestHandler, HTTPServer
from urllib.parse import urlencode, quote
import websocket # pip install websocket-client
private object UninitializedValue
open class NullablePreferenceDelegate<T : @Serializable Any?>(
protected val montoya: MontoyaApi,
protected var key: String? = null,
protected val customSerializer: KSerializer<in T>? = null,
protected val default: () -> T?
) : ReadWriteProperty<Any?, T?> {
protected val preferences: Preferences = montoya.persistence().preferences()
private val json = Json { ignoreUnknownKeys = true }