This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# date: 2023-02-23 | |
# author: thinkycx | |
# usage: | |
# use this script to install lkm and driver | |
# get the lkm output on your linux | |
# download link: | |
# https://github.com/bytedance/Elkeid/releases/tag/v1.7.0.10-driver-ko-20230221_1 | |
export WORKDIR=/root/Elkeid/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Prevent OSX calling home # | |
# # | |
# Mix of different /etc/hosts files found over internet, and calls filtered # | |
# using LittleSnitch for months. # | |
# # | |
# OSX sends a huge amount of requests to Cuppertino, even when you don't use # | |
# Spotlight suggestions, iCloud, updates and other services. Even if they are # | |
# disabled. # | |
# # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# date: 20190523 | |
# author: thinkycx | |
# Description: you can use this to install vulnerable docker ( CVE-2019-5736 docker runc escape ) | |
# tested on centos7/ubuntu16.04 | |
# Usage: | |
# 1. curl https://gist.githubusercontent.com/thinkycx/e2c9090f035d7b09156077903d6afa51/raw -o install.sh && bash install.sh | |
# 2. run docker_escape in docker container | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker 20190119 | |
# ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get update -y | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: thinkycx | |
# date: 2019-01-14 | |
# Usage: | |
# run jobs at the same time with multiple process. | |
parallel(){ | |
nCPU=3 # 同时执行的进程数量 | |
PID=() | |
for((i=0;i<5;i++)){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# fuzz-nginx | |
FUZZER_AFL_PATH="$HOME/Fuzz/fuzzer/afl.git" | |
NGINX_PATH="$HOME/Fuzz/fuzz-nginx/nginx.git" | |
WORK_PATH="$HOME/Fuzz/fuzz-nginx" | |
CLANG_LLVM_PATH="$HOME/Fuzz/fuzz-nginx/clang-3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04/bin" | |
install_preeny(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install docker | |
sudo apt-get install docker.io | |
sudo service docker start | |
sudo usermod -aG docker $(whoami) | |
# docker-compose | |
sudo pip install docker-compose | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; date: 2018-12-11 | |
; author: thinkycx | |
; description: | |
; reverse /bin/sh by nc, reference: https://modexp.wordpress.com/2017/01/21/shellcode-osx/ | |
; usage: | |
; nasm -f macho64 macOS-reverse-shellcode.asm | |
; ld -macosx_version_min 10.7.0 -o macOS-reverse-shellcode macOS-reverse-shellcode.o | |
BITS 64 | |
global start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# date: 2018-12-11 | |
# author: thinkycx | |
# description: return asm shellcode : push string into stack and esp points to it! | |
# usage: | |
# change payload and run it. | |
import math | |
def pushstr(string='/home/orw/flag',length=8): | |
''' | |
return asm shellcode : push string into stack and esp points to it! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
# author: thinkycx | |
# date: 2018-10-31 | |
from pwn import * | |
context.local(arch='amd64', os='linux') | |
def pwn(io): | |
if local&debug: gdb.attach(io,'break *0x400641') |
NewerOlder