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: 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 |
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
#!/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
#!/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 |
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 | |
# author: thinkycx | |
# update: 20190119 | |
# tested on ubuntu 16.04 docker | |
# quit if the following commands has errors | |
set -e | |
# tools | |
sudo apt-get update && |
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 | |
# 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 |
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++)){ |
NewerOlder