Skip to content

Instantly share code, notes, and snippets.

View Cvar1984's full-sized avatar
⚠️
This account is under NSA investigation

Bellatrix Lugosi Cvar1984

⚠️
This account is under NSA investigation
View GitHub Profile
@Cvar1984
Cvar1984 / hunter_esp.py
Created September 15, 2026 20:53
theHunter: Call of the Wild DMA hack, offsets, entity list, esp
"""theHunter: Call of the Wild - animal ESP over DMA (MemProcFS).
Run on the DMA host. Reads the game PC's memory through the FPGA card and draws every spawned
animal as a box with a snapline from the bottom of the screen and a species + distance label
(orange = wounded, gray = dead), plus a center dot crosshair, on a black window. Make the window the
same aspect ratio as the game (or --fullscreen on a same-resolution monitor / a fuser keyed on black).
pip install memprocfs # 64-bit Python; FPGA also needs FTD3XX.dll next to the memprocfs package
python hunter_esp.py # --device fpga by default, Esc to quit
python hunter_esp.py --selftest
#!/usr/bin/env bash
#
# lpe2026-mitigate.sh — compensating controls for the 2026 kernel page-cache LPE chain
#
# Covers:
# CVE-2026-31431 "Copy Fail" — algif_aead / af_alg (AF_ALG crypto API)
# CVE-2026-43284/CVE-2026-43500 "Dirty Frag" — in-place decrypt in esp4/esp6/rxrpc
# CVE-2026-46331 "pedit COW" — act_pedit (tc packet editor)
# (blacklisting esp4/esp6/rxrpc also covers CVE-2026-43503 "DirtyClone", which
# shares the same in-place-decrypt root cause)
@Cvar1984
Cvar1984 / stockfish.php
Last active July 28, 2026 10:24
Stockfish rest API
<?php
class Stockfish
{
private $process;
private $pipes;
public function __construct(
$binary = "/usr/bin/stockfish",
$threads = 4,
@Cvar1984
Cvar1984 / Stockfish rest API
Created July 27, 2026 10:15
stockfish.php
<?php
class Stockfish
{
private $process;
private $pipes;
public function __construct(
$binary = "/usr/bin/stockfish",
$threads = 4,
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
df = pd.read_csv("~/Downloads/ev_vs_petrol_dataset_v3.csv")
numeric_df = df.select_dtypes(include = ["number"])
corr_matrix = numeric_df.corr(method="pearson")
@Cvar1984
Cvar1984 / UploadHandler.php
Created August 1, 2025 10:50
Arbitrary jquery file uploads
<?php
/*
* jQuery File Upload Plugin PHP Class 6.1.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
@Cvar1984
Cvar1984 / Hubble_plot.py
Last active July 12, 2025 05:14
Plot hubble constant
import matplotlib.pyplot as plt
# Define data: (label, value, uncertainty, category)
# https://lambda.gsfc.nasa.gov/education/graphic_history/hubb_const.html
data = [
("Cepheids+SNIa 2021", 73.04, 1.04, "Late"),
("LIGO+Virgo+KAGRA 2021", 68, 9.5, "Late"),
("SBF_distances 2021", 73.3, 2.5, "Late"),
("eBOSS_BBN+BAO 2020", 67.35, 0.97, "Early"),
("Megamasers 2020", 73.9, 3.0, "Late"),
@Cvar1984
Cvar1984 / parse.lua
Created May 21, 2025 07:15
Parse only subdomain result from amass and make it hosts file
local filename = arg[1]
if not filename then
print("Usage: lua parse.lua file:domain.com")
os.exit(1)
end
local hostname = filename
local file = io.open(filename, "r")
@Cvar1984
Cvar1984 / how_to_ask.md
Created February 22, 2025 10:14
generated by GPT-3

How to Ask a Technical Question

When you're trying to ask a technical question, following a structured approach can help you get the most accurate and useful responses. Here’s a simple tutorial to guide you:

1. Define the Problem Clearly

  • Be Specific: Describe exactly what the issue is. Instead of saying, “My code doesn’t work,” explain what the code is supposed to do and what it is doing instead.
  • Context: Provide background information about the project or situation.

2. Provide Relevant Details

  • Code or Configurations: If applicable, share relevant code snippets, configuration files, or error messages. Make sure to format the code properly for readability.
@Cvar1984
Cvar1984 / panthera.lua
Created February 19, 2025 10:10
Simulate and calculate terror of nowhere panthera weapon cost
-- Function to simulate enkephalin usage and calculate paralysis occurrences
local function simulatePanthera(userInputEnkephalin)
-- Constants for calculations
local percentage = 1 -- Percentage of total enkephalin used per hit
local base = 3 -- Base cost for each hit
local minimum = 5 -- Minimum cost for a hit
local totalEnkephalin = userInputEnkephalin -- Total enkephalin available
local hitCounter = 0 -- Counter for the number of hits made
local costCounter = 0 -- Counter for the total cost incurred
local paralizeCounter = 0 -- Counter for paralysis occurrences