Skip to content

Instantly share code, notes, and snippets.

View racterub's full-sized avatar
🌴
On vacation

racterub racterub

🌴
On vacation
View GitHub Profile
~$ wget -S -O- --progress=dot "$(apt-get download --print-uris libxcb-render0 | sed -e "s/^'//;s/'.*//")" | file -s - &> result.txt
--2017-07-02 05:39:24-- http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-render0_1.11.1-1ubuntu1_amd64.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.26, 91.189.91.23, 2001:67c:1562::19, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Sun, 02 Jul 2017 05:39:25 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Mon, 09 Nov 2015 03:05:05 GMT
vagrant@vagrant:~$ wget -S -O /dev/null --progress=dot "$(apt-get download --pri nt-uris libxcb-render0 | sed -e "s/^'//;s/'.*//")"
--2017-07-01 15:13:11-- http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libx cb/libxcb-render0_1.11.1-1ubuntu1_amd64.deb
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.23, 91.189. 91.26, 2001:67c:1562::19, ...
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Sat, 01 Jul 2017 15:13:13 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Mon, 09 Nov 2015 03:05:05 GMT
ETag: "2c72-52412dc255a40"
@racterub
racterub / installlog.txt
Last active July 1, 2017 13:10
logs for askubuntu
The following additional packages will be installed:
autotools-dev build-essential dbus-x11 debhelper dh-strip-nondeterminism dpkg-dev fontconfig fontconfig-config fonts-dejavu-core fonts-lato g++
g++-5 gconf-service gconf-service-backend gconf2 gconf2-common gettext gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gconf-2.0 gir1.2-gdkpixbuf-2.0
gir1.2-gnomekeyring-1.0 gir1.2-gtk-2.0 gir1.2-pango-1.0 hicolor-icon-theme icu-devtools intltool-debian javascript-common libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-zip-perl libart-2.0-2 libart-2.0-dev libasound2 libasound2-data libasprintf-dev
libatk1.0-0 libatk1.0-data libavahi-client-dev libavahi-client3 libavahi-common-data libavahi-common-dev libavahi-common3 libavahi-glib-dev
libavahi-glib1 libbonobo2-0 libbonobo2-common libbonobo2-dev libbonoboui2-0 libbonoboui2-common libcairo-gobject2 libcairo-script-interpreter2
libcairo2 libcanberra-dev libcanberra0 libcroco3 libcups2 libdatrie1 libdbus-1-dev libexpat1-dev libf
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# 3 basic data type
a = 'this is a string'
b = ['this is first element in this list', 'this is second element in this list']
c = {'pig':'cute', 'lion':'king'}
b[0] == 'this is first element in this list'
@racterub
racterub / patch.py
Created May 23, 2017 14:27
patch for EmerldBlue and doublepulse exploit
#!/usr/bin/env python
import os
import subprocess
import sys
import time
print "Initializing....."
time.sleep(5)
ruleres = []
@racterub
racterub / index.md
Created May 9, 2017 14:57
hexo theme, about page

劉軒佑

學校: 桃園高中 一年級

經歷:

  • HITCON 2016 Attendee
  • Cyber Defence Exercise Attendee
  • AIS3

CTF隊伍: n00bCTF

程式語言:

  • python
  • html
@racterub
racterub / ex.py
Created March 31, 2017 15:05
RSA common module attack
#!/usr/lib/env python
#-*-coding: utf-8-*-
#author:Racter
def egcd(a, b):
if a == 0:
return (b, 0, 1)
else:
g, y, x = egcd(b % a, a)
return (g, x - (b // a) * y, y)
@racterub
racterub / a.py
Created March 14, 2017 13:40
抽順序
#!/usr/lib/env python
import random
f = open('data', 'r')
a = {}
for line in f:
k, v = line.strip().split('=')
a[k.strip()] = v.strip()
@racterub
racterub / pyyy.py
Created March 10, 2017 18:35
pyyyy
#Embedded file name: pyyy.py
__import__('sys').setrecursionlimit(1048576)
data = 'Tt1PJbKTTP+nCqHvVwojv9K8AmPWx1q1UCC7yAxMRIpddAlH+oIHgTET7KHS1SIZshfo2DOu8dUt6wORBvNVBpUSsuHa0S78KG+SCQtB2lr4c1RPbMf0nR9SeSm1ptEY37y310SJMY28u6m4Y44qniGTi39ToHRTyxwsbHVuEjf480eeYAfSVvpWvS8Oy2bjvy0QMVEMSkyJ9p1QlGgyg3mUnNCpSb96VgCaUe4aFu4YbOnOV3HUgYcgXs7IcCELyUeUci7mN8HSvNc93sST6mKl5SDryngxuURkmqLB3azioL6MLWZTg69j6dflQIhr8RvOLNwRURYRKa1g7CKkmhN4RytXn4nyK2UM/SoR+ntja1scBJTUo0I31x1wBJpT4HjDN47FLQWIkRW+2wnB3eEwO5+uSiQpzA8VaH7VGRrlU/BFW4GqbaepzKPLdXQFBkNyBKzqzR/zA2GIrYbLIVScWJ19DqJCOyVLGeVIVXyzN1y327orYL2Ee3lRITnE3FouicRStaznIcw8xmxvukwVMRZIJ/vTu8Zc1WQIYEIFXMHozGuvzZgROZTyFihWNRCBBtoP9DJJALJb0pA1IKIb2zLh+pwGF40Y6y93D6weKejGPO+A0DBXH9vuLcCcCIvr/XPQhO3jLKCBN+h9unuJKW3dyWxyaVPdR2V+BTw10VXolo7yaTH1GbR4TiVSB308mBOMwfchwihEe7RdMXvmXgaGarKkJe0NLUCd8jwhYII+WymjxO/xOz/ppOvNfAyIQksW0sggRPQTlgXSZ7MIVA1h66sGNljJ833MoFzWof3azLabaz1OrAJFqYXBg/myDsy1tV6rULSQ82hVR/TNnSmBGvyEDJTrLSwHyj78NOrW4mUnlLGBnAgWfw6pW2lRK2jkNX9NM6DfLsRK8lwl85UP8CZSuNdcLmLwHTVMZG
@racterub
racterub / a.py
Last active February 21, 2017 15:20
123132
#!/usr/lib/env python
f = open('data', 'w+')
s = {}
for line in f:
k, v = line.strip().split('=')
s[k.strip()] = v.strip()