Skip to content

Instantly share code, notes, and snippets.

View chihchun's full-sized avatar
🎯
Focusing

Rex Tsai chihchun

🎯
Focusing
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
echo "Please enter password to install testing tools"
sudo apt-get install -y coreutils mtr-tiny gist curl
OUTPUT=$(/bin/mktemp /tmp/SNAPDEBUG.XXXX.txt)
{
set -x
cd /tmp
date -R
@chihchun
chihchun / -
Created January 24, 2018 03:04
diff --git a/src/docker-wrapper b/src/docker-wrapper
index 9c78334..802f8b7 100755
--- a/src/docker-wrapper
+++ b/src/docker-wrapper
@@ -2,7 +2,7 @@
export DOCKER_ENV="$SNAP/docker-env"
export PATH="$DOCKER_ENV/usr/sbin:$DOCKER_ENV/usr/bin:$DOCKER_ENV/sbin:$DOCKER_ENV/bin:$PATH"
export LD_LIBRARY_PATH="$DOCKER_ENV/lib:$DOCKER_ENV/usr/lib:$DOCKER_ENV/lib/x86_64-linux-gnu:$DOCKER_ENV/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
-export PYTHONPATH="$DOCKER_ENV/lib/python2.7/site-packages"
+export PYTHONPATH="$DOCKER_ENV/lib/python2.7/site-packages:$DOCKER_ENV/lib/python2.7/site-packages/yaml"
@chihchun
chihchun / overpass.geojson
Last active October 1, 2017 02:33 — forked from anonymous/overpass.geojson
data exported by overpass turbo
area["ISO3166-1:alpha3"="TWN"]->.boundaryarea;
(
node["natural"="peak"](area.boundaryarea);
);
out meta;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chihchun
chihchun / overpass.geojson
Last active September 20, 2017 16:39 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chihchun
chihchun / overpass.geojson
Last active August 15, 2017 12:53 — forked from anonymous/overpass.geojson
台灣區域有使用 trail_visibility 的路線
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Building snapcraft/xenial-i386:2.32 ... continue? [y]squid-deb-proxy
+ docker inspect --format={{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} squid-deb-proxy
+ docker build --force-rm --build-arg http_proxy=http://172.17.0.2:8000 -t snapcraft/xenial-i386:2.32 .
Sending build context to Docker daemon 4.608kB
Step 1/22 : FROM snapcraft/ubuntu-base:i386-16.04.2
---> a4e9ef1a41bd
Step 2/22 : MAINTAINER Rex Tsai "http://about.me/chihchun"
---> Using cache
---> aa857b9c594e
Step 3/22 : ENV SNAPCRAFT_VERSION 2.32
命令稿啟動於 2017年05月27日 (週六) 00時39分12秒
$ : 1495816752:0;script.sh 34:0;docker run -t -i --rm -p 4444:4444 kali-metasploit:trunk ^C
$
$
$
$
$ docker run -t -i --rm -p 4444:4444 kali-metasploit:trunk
[*] Starting the Metasploit Framework console.../ [*] Starting the Metasploit Framework console...- [*] Starting the Metasploit Framework console...\ [*] starting the Metasploit Framework console...| [*] STarting the Metasploit Framework console.../ [*] StArting the Metasploit Framework console...- [*] StaRting the Metasploit Framework console...\ [*] StarTing the Metasploit Framework console...| [*] StartIng the Metasploit Framework console.../ [*] StartiNg the Metasploit Framework console...- [*] StartinG the Metasploit Framework console...\ [*] Starting the Metasploit Framework console...| [*] Starting The Metasploit Framework console.../ [*] Starting tHe Metasploit Framework console...- [*] Starting thE Metasp
% cat /etc/apt/sources.list.d/zesty.list
deb http://tw.archive.ubuntu.com/ubuntu/ zesty restricted main universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ zesty restricted main universe multiverse
% cat /etc/apt/preferences.d/zesty
Package: *
Pin: release a=zesty
Pin-Priority: 300