Skip to content

Instantly share code, notes, and snippets.

View orhun's full-sized avatar
:shipit:
I don't have a rat under my hat

Orhun Parmaksız orhun

:shipit:
I don't have a rat under my hat
View GitHub Profile
@NicolasCARPi
NicolasCARPi / LICENSE
Last active October 22, 2026 14:00
VibeCoded AI-Slop License v1.0
VibeCoded AI-Slop License v1.0
Copyright (c) [YEAR] [AUTHOR]
This software, source code, documentation, configuration, generated artifacts,
and whatever else happened to end up in this repository (collectively, the
"Software") is released under the VibeCoded AI-Slop License v1.0.
1. Permission
@ysf
ysf / stage2.md
Created July 30, 2026 01:11
AUR validator.malware (stage2 agent linux x86_64)

ELF64 x86-64 PIE, stripped, 3,668,704 bytes sha256 06c857c8ca798d50c765b4de39e6c4f272ecb57bc8316a8ed4c0fdf02fb59502

this is a rust infostealer + interactive RAT + ssh worm. it installs its own persistence, harvests everything of value on the host, and takes remote commands over its own tor channel.

almost all strings are encrypted with ChaCha20-Poly1305, with one key + nonce + ciphertext per call site.

first it checks

@ysf
ysf / validator.md
Created July 29, 2026 21:45
AUR validator.malware (stage 1)

validator.malware

ELF64 x86-64 PIE, stripped, 43,640 bytes sha256 2d25d2ea313767fae5808164224cf6ad610ab09546d1e5a6f033eedbfd98a281

first-stage loader that installs itself, builds its own tor transport, fetches stage 2 from an .onion, runs it, then goes inactive.

it contains 154 ChaCha20 encrypted strings, see https://gist.github.com/ysf/c1b8cc85f4063367fddb85c443589f5b

first it checks:

#!/usr/bin/env bash
# Author: rukh-debug
# Date: 2025 Feb 16
# https://github.com/orhun/rustypaste <3
# This script is a very minimal UI for rustyPaste server - built for poweruser.
# demo: https://i.postimg.cc/MHXFPdCq/image.png
@sassman
sassman / flamegraph-pr.yml
Created December 15, 2024 21:53
GitHub Action for flamegraphs on PR as comment
name: Flamegraph PR
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
@thesamesam
thesamesam / xz-backdoor.md
Last active November 8, 2026 20:29
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@OrionReed
OrionReed / dom3d.js
Last active August 17, 2026 20:05
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@sunshowers
sunshowers / wrap.rs
Created September 28, 2023 20:32
ratatui wrapping with textwrap
// MIT License
//
// Copyright (c) 2023 Oxide Computer Company
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@srd424
srd424 / fzf_readline.c
Created September 9, 2023 10:54
Terrible hack for preloading custom readline functions
/* gcc -Wall -fPIC -shared -o fzf_readline.so fzf_readline.c -ldl */
/* a much nastier version of https://github.com/lincheney/rl_custom_function,
* but works with readline in Debian/Ubuntu
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
@quad
quad / 0-modular-errors-with-rusts-thiserror.md
Last active June 1, 2026 18:53
Modular Errors with Rust's thiserror

I've been writing Rust full-time with a small team for over a year now. Throughout, I've lamented the lack of clear best practices around defining error types. One day, I'd love to write up my journey and enumerate the various strategies I've both seen and tried. Today is not that day.

Today, I want to reply to a blog post that almost perfectly summarised my current practice.

Go read it; I'll wait!