Skip to content

Instantly share code, notes, and snippets.

View racterub's full-sized avatar
🌴
On vacation

racterub racterub

🌴
On vacation
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@racterub
racterub / .py
Created February 16, 2017 16:31
123
#!/usr/lib/env python
import random
f = open('abc.txt', 'w')
a = {'a':'dads', 'b':'offw', 'c':'dadwa', 'd':'gagra', 'e':'dadwadf', 'f':'dadwafd'}
for i in random.sample(a.items(), 6):
f.write(str(i) + "\n")
@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()
@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
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 / 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 / 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 / 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 = []
#!/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 / 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