Skip to content

Instantly share code, notes, and snippets.

@7etsuo
7etsuo / fred.c
Created March 9, 2025 04:57
fred.c
/** Uncle Fred
* Create an index.html and put in the same dir.
* Compile normally with cc -O2 -o http http.c, run sudo ./http 80, open your brosert and type: http://127.0.0.1/
*/
#include/* micro HTTP server */<stdio.h>
#include/* usage: ./http [port] */<stdlib.h>
#include/* */<string.h>
#include/* the default port is 8080, files are */<unistd.h>
#include/* read from the current directory */<netdb.h>
@7etsuo
7etsuo / gist:60c6acb5739a708c063565f20c25747b
Created March 8, 2025 06:29
Exploitation With WriteProcessMemory
!--------------------------------------------------------------------------!
!-----------=| Exploitation With WriteProcessMemory() |=-----------!
!-----------=| Yet Another DEP Trick |=-----------!
!-----------=| ---- |=-----------!
!-----------=| Written By Spencer Pratt |=-----------!
!-----------=| [email protected] |=-----------!
!--------------------------------------------------------------------------!
!--=[ dd6c2309cab71bdb3aabce69cacb6f5f6c0e2d60bd51d6f629904553a8dc0a7c ]=--!
!--=[ 5db5cef0f8e0a630d986b91815336bc9a81ebe5dbd03f1edaddde77e58eb2dba ]=--!
!--------------------------------------------------------------------------!
Individual C.elegans Neurons by 7etsuo https://worm.tetsuo.ai
This table summarizes detailed properties of each unique neuron in the C. elegans nervous system. Each neuron entry includes its name, functional type (sensory, inter, motor, or pharyngeal), neuron class, neurotransmitter, and spatial coordinates (X, Y, Z).
Additional metadata enriches each entry, providing the neuron's developmental lineage, a concise functional description, and the biological meaning behind its designation.
This structured dataset integrates connectomic and anatomical information, accurate modeling, analysis, and visualization of the worm's neural architecture.
|--------|------------|-------|------------------|--------|--------|--------|-------------------------------------------------------|----------------|----------------------------------------------------------------------------------------------------------------------|
| Neuron | Type | Class | Neurotransmitter | X | Y | Z | Meaning
@7etsuo
7etsuo / Makefile
Created February 8, 2025 01:04
Makefile
CC := gcc
AR := ar
CFLAGS_COMMON := -I./include -Wall -Wextra -Wpedantic -std=c11 -pthread \
-D_GNU_SOURCE -fPIC -fstack-protector-strong \
-fvisibility=hidden -pipe -Wunreachable-code \
-Wno-unused-parameter
SECURITY_FLAGS := -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security \
-Werror=format-security -fstack-clash-protection \
-fcf-protection=full -Wconversion -Wshadow
@7etsuo
7etsuo / socket_cheatsheet.txt
Created November 10, 2024 10:07
socket cheatsheet
. .
|\/\/|
|____|
.-----------. .-----------. .------. .-----.
/ \.-------./ \.-------*-. | | |----------.
@7etsuo
7etsuo / launch.ps1
Created October 31, 2024 22:41
attaches WinDBG to a process, sets breakpoints etc.
<#
.SYNOPSIS
A PowerShell script to attach a debugger to a running process or a service.
.DESCRIPTION
This script allows you to attach a debugger (WinDBG) to a running process or a service, with optional commands executed at the start of the debugging session.
It can also start an executable specified by a file path and attach the debugger to it.
.PARAMETER service_name
The name of the service to restart and attach the debugger to (optional).
m¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm»m¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûmm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm´’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’m¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’Km¶Ûm¶Ûm¶Ûm¶Ûm¶ÐÛm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Û¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶ÖÛm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶ÛI$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I&Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm°ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿù$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$¶Ûm¶Ûm¶Ûm¶Ûm¶Ûmm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm»m¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûmm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm´’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’m¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’I$’Km¶Ûm¶Ûm¶Ûm¶Ûm¶ÐÛm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Û¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ûm¶Ö
@7etsuo
7etsuo / ytdl.c
Created September 27, 2024 21:05
// all ytdl files and code.
/* argument_parsing.c */
#include "argument_parsing.h"
#include "help_display.h"
#include "directory_management.h"
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
@7etsuo
7etsuo / 7etsuo-printf.c
Created September 12, 2024 08:48
printf cheatsheet
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────
│ printf Format Specifiers │
│ ┌──────────┬──────────────────────────────────────────────────┬───────────────────────────────────────┐ │/** printf format specifiers
│ │ Specifier│Description │ Example Output │ │ * ███ ▄████████ ███ ▄████████ ███ █▄ ▄██████▄
│ ├──────────┼──────────────────────────────────────────────────┼───────────────────────────────────────┤ │ *▀█████████▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███
│ │ %d │Signed decimal integer │ printf("%d", 42); // 42 │ │
@7etsuo
7etsuo / lambda.c
Created September 8, 2024 09:43
lambdas in C
/** Lambdas in C. Compile with GCC!
* ███ ▄████████ ███ ▄████████ ███ █▄ ▄██████▄
*▀█████████▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███
* ▀███▀▀██ ███ █▀ ▀███▀▀██ ███ █▀ ███ ███ ███ ███
* ███ ▀ ▄███▄▄▄ ███ ▀ ███ ███ ███ ███ ███
* ███ ▀▀███▀▀▀ ███ ▀███████████ ███ ███ ███ ███
* ███ ███ █▄ ███ ███ ███ ███ ███ ███
* ███ ███ ███ ███ ▄█ ███ ███ ███ ███ ███
* ▄████▀ ██████████ ▄████▀ ▄████████▀ ████████▀ ▀██████▀
*