Skip to content

Instantly share code, notes, and snippets.

View thinkycx's full-sized avatar
😀

thinkycx thinkycx

😀
View GitHub Profile
@thinkycx
thinkycx / thinkycx-zsh.sh
Last active May 29, 2023 09:41
install zsh with one script ( Ubuntu/CentOS/macOS)
#!/bin/bash
# author: thinkycx
# date: 2018-04-30
# update: 2020-07-07
# 20230520 fix zsh-autosuggestions clone bug
# usage:
# curl -fsSL https://gist.githubusercontent.com/thinkycx/2e21c3572a8d1fde21aad07a58fcf940/raw/ -o zsh.sh && sudo bash zsh.sh
#
# install zsh for one script
# support ubuntu & centos & macOS
@thinkycx
thinkycx / install-elkeid-lkm-driver-20230223.sh
Created February 23, 2023 15:22
use this script to install lkm and driver, get the lkm output in your linux
# 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/
@thinkycx
thinkycx / shellcode-pushstr.py
Last active April 19, 2021 07:13
return asm shellcode : push string into stack and esp points to it!
#!/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!
@thinkycx
thinkycx / usrp_install.sh
Last active December 5, 2020 09:44
install USRP env
#!/bin/bash
# driver: https://github.com/EttusResearch/uhd
## http://files.ettus.com/manual/page_install.html
## sudo apt-get install libuhd-dev libuhd003 uhd-host
## install UHD software as well as allow you to receive package updates.
sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install libuhd-dev libuhd003 uhd-host
@thinkycx
thinkycx / hosts
Created August 27, 2019 08:42 — forked from joseconstela/hosts
Prevent OSX calling home
################################################################################
# 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. #
# #
#!/bin/bash
# author: thinkycx
# update: 20190119
# tested on ubuntu 16.04 docker
# quit if the following commands has errors
set -e
# tools
sudo apt-get update &&
@thinkycx
thinkycx / CVE-2019-5736-install-docker.sh
Last active May 24, 2019 01:21
a bash script for CVE-2019-5736 to install vulnerable docker on ubuntu16.04/centos7.
#!/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
#
# 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 -
@thinkycx
thinkycx / start_pwn_with_1script.sh
Last active January 16, 2019 06:41
install softwares for pwn
#!/bin/bash
# maybe need to change pip file
# sudo vim /usr/bin/pip
# ln -s /mnt/hgfs/Pwn ~/pwn
# ln -s ~/pwn ~/Desktop/pwn
other(){
# vim plus
#!/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++)){