# CentOS7
yum install -y \
git gcc wget make autoconf libtool automake perl o\
penssl-* zlib-* libssh2-devel libssh2
mkdir -p ~/src
cd ~/src
curl https://curl.haxx.se/download/curl-7.29.0.tar.gz | tar xzv
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 | |
# CHANGE THESE | |
auth_email="user@example.com" | |
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
zone_name="example.com" | |
record_name="www.example.com" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ipv4.icanhazip.com) |
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 | |
# ./tar-diff.sh dir_name_here 8 | |
DIR_NAMES=${1:-"asdf"} | |
DAYS=${2:-"8"} | |
LASTDATE=`(date --date "${DAYS} days ago" --rfc-3339=seconds)` | |
TIMESTMP=`date '+%Y-%m-%d'` | |
tar -cvz --newer-mtime="${LASTDATE}" -f ${DIR_NAMES}-diff-${TIMESTMP}-${DAYS}d.tgz ${DIR_NAMES} |
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 | |
MASTER_IP="10.1.2.96" | |
HOSTNAME=`hostname` | |
CA_FILE="/opt/k3s-master/output/ca-certificates.crt" | |
TOKEN=`cat /opt/k3s-master/data/server/node-token` | |
WORK_DIRS="/opt/${HOSTNAME}" | |
mkdir -p ${WORK_DIRS} || true | |
cp -f ${CA_FILE} ${WORK_DIRS}/ |
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
# For RHEL8 | |
FROM registry.access.redhat.com/ubi8 | |
# For RHEL7 | |
FROM registry.access.redhat.com/rhel | |
RUN subscription-manager register --username="id_here" --password="pass_here" --auto-attach && \ | |
subscription-manager refresh && \ | |
yum install -y yum-utils createrepo |
- Python3 에서 동작 가능
pip install elastic-apm
- 환경 변수 설정
pip install PySocks
import urllib2
import socks
from sockshandler import SocksiPyHandler
opener = urllib2.build_opener(SocksiPyHandler(socks.SOCKS5, "127.0.0.1", 1080))
opener.open("http://www.naver.com/").read()[:100]
- This code is over 4years. and works well in recent blocking issue. :)
- This is for testing only. about techincal issue.
- I masked URL from result. :)
- Testing Result via Simple SNI Proxy Server by me.
- This server is not intended to by-pass SNI censorship in korea. as you see, this code is 4 years old.
- Download modified usbloader, which will copy proper busybox into
/system/busybox
and enable telnetd on your device (will add additional line into/system/autorun.sh
). Use it only on E5885, not on other device! - Load it using balong-usbdload. Refer to this disassembling manual.
- After loading, wait about one minute, disconnect device from the computer and power off the device holding power button for ~15 seconds.
- Insert MicroSD card to the device and power it on.
telnet 192.168.8.1 2323
/system/busybox sh
- 테더링은 /system/bin/ndc 을 사용 하여 네트워크 설정을 하는 것으로 보임.
Below are commands that Android talking to netd to start/stop tethering.
1. Start tethering
"softap fwreload wlan0 AP"
"softap start wlan0"
"softap set wlan0 wl0.1 hotspot456 open null 6 0 8"