Skip to content

Instantly share code, notes, and snippets.

View socketz's full-sized avatar
📵
I may be slow to respond.

socketz socketz

📵
I may be slow to respond.
View GitHub Profile
@socketz
socketz / IPv6Tunnel.ps1
Last active November 20, 2025 20:26 — forked from sevenissimo/IPv6Tunnel.ps1
A PowerShell script to activate (and update) a 6-in-4 tunnel in Windows 10/11 using Hurricane Electric IPv6 Tunnel Broker
#Requires -RunAsAdministrator
$TunnelName = "IPv6Tunnel"
$TunnelID = "123456"
$ServerIPv6Address = "2001:a:b:c::1"
$ServerIPv4Address = "200.1.2.3"
# When behind a firewall appliance that passes protocol 41,
# use the IPv4 address you get from your appliance's DHCP service
@socketz
socketz / gist:a73416e51e10e3efeaa044af4380f3bb
Created July 4, 2025 09:29 — forked from cr0nx/gist:1bd6daa7b0cc99320c771da95b203827
Find in-memory modification of kernel.yama.ptrace_scope with bpftrace - PoC
#!/usr/bin/env bpftrace
BEGIN
{
printf("ptrace_scope address: %p\n", kaddr("ptrace_scope"));
$data_addr = kaddr("ptrace_scope");
@last_val = *(int32*)$data_addr; // Initial value
printf("Monitoring kernel.yama.ptrace_scope at address 0x%x (initial value: %d)\n",
$data_addr, @last_val);
}
@socketz
socketz / fake_ftp.py
Last active May 18, 2019 14:59 — forked from neoplacer/fake_ftp.py
Fake FTP Server - Python 3.x
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: @neoplacer
# Contributor: @socketz
"""
Fake FTP Server
~~~~~~~~~~~~~~~
This is a simple fake FTP daemon. It stores the login data (username and