Skip to content

Instantly share code, notes, and snippets.

View racterub's full-sized avatar
🌴
On vacation

racterub racterub

🌴
On vacation
View GitHub Profile
#!/usr/bin/env python3
"""
MIT License
Copyright 2021 Racterub <root@racterub.me>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
def gen_token(uid):
import datetime
import base64
payload = ['Y', 'Z']
time = datetime.date.today()
tmp = str(time.year) + '/' + str(time.month).rjust(2, '0') +'/' + str(time.day).rjust(2, '0')
payload += list(tmp) + list('s' + str(uid))
return 'https://portalx.yzu.edu.tw/PortalSocialVB/FMain/PostWall.aspx?Menu=User&UserAccount=' + base64.b64encode(('\x00'.join(payload) + '\x00').encode()).decode()

海外恨国党名单:文睿,文昭,老雷,滕彪,虞锐,鲍彤,王丹,柴玲,盛雪,方政,尹胜,赵岩,萧茗,石涛,石平,何平,路德,安红,谢田,何频,王剑,胡平,吕朴,张洵,lnty(阴蒂),vlog心声(刘大圣),方的言,周周侃,蒋罔正,stone(屎洞记),秦伟平,万延海,周锋锁,李一平,吴建明,黄明珍,曹旭云,苏晓康,严家祺,邱家军,李沐阳,裴毅然,郭岩华,邱岳首,齐家贞,任松林,俞万利,章天亮,宋永毅,唐元隽,章家墩,夏业良,郑旭光,曹雅学,廖天琪,林培瑞,陈小平,陈晓天,李恒青,赵云龙,顾为群,翁寒松,李兰斯,李伟东,张博树,李南央,曹长青,江森哲,艾未未,Av Daniel violin (陈丹九),陈破空,郭文贵,郭宝胜,吕京花,魏京生,杨建利,辛灝年,王军涛,胡正军,吴仁华,李洪宽,龚小夏,袁红斌,程晓农,何清莲,周来友,陈奎德,纪硕鸣,郝毅博,林林七,面具人,Leonard(莱昂纳德),小民之心,老黑公民,吾尔开希,江峰时刻,公子时评,书香夜话,冷眼财经,悉尼奶爸,移民访谈录,徐杰慢半拍,裤论徐思远,lisa在英国,老北京茶馆,加州姜太公,大康有话说,旗袍体验派,猫眼看中国,小西看世界,大师兄则席,看中国的狗哥,苏小和批评书,新闻拍案惊奇大宇。

跪舔公知:陈秋实,袁腾飞,梁艳萍,高晓松,周孝正,郝海东,叶钊颖,向松祚,李承鹏,方舟子,崔永元,潘石屹,任志强,刘晓波,许章润,徐晓东,茅于轼,方方,马东,

港独自媒体名单:大J,鱷魚,城寨,陶杰,吴志森,梁锦祥,曾志豪,张坚庭,黃毓民,蕭若元,吴明德,李慧玲,关庆宁,李达宁,杜汶泽,笑波子,啤梨晚报,苹果日报,香港花生,高清本土台,升旗易得道,852邮报,赵氏读书生活。

港独汉奸名单:黄之锋,黄台仰,何韵诗,黄秋生,陈浩天,周浩辉,钟翰林,梁颂恒,毛孟静,李卓人,黎智英,李柱明,陈方安生,陈日君,游蕙祯,罗冠聪,涂谨申,梁国雄,张倩盈,朱凯迪,李柱铭,周庭,

台独自媒体名单:佐拉,呱吉,唐浩,波特王,不要闹,阿滴仔,阿兜仔,钟明轩,明居正,范世平,王瑞德,彭文正,沈富雄,郑弘仪,周玉蔻,余莓莓,李家宝,胡婉玲,王时齐,李四端,张雅琴,安幼琪,丁学伟,陈雅琳,陈凝观,黄创夏,刘宝洁,曾建元,曾博恩,马西屏,张铭佑,长男次男,摄徒日记,志祺七七,台湾基进,3Q陈柏惟,馆长陈痴汉,鸡排郑家纯,Thesis taiwan(老外看台湾)。

#include <stdio.h>
int main(int argc, char *argv[])
{
int a,b,c,sum,product,min,max;
float avg;
printf("Input a b c: ");
scanf("%d%d%d", &a, &b, &c);
def parseParam():
parser = ArgumentParser()
parser.add_argument("-d", "--dir", help="Path to challenges", default="chal/", dest="path")
parser.add_argument("-p", "--port", help="Pwn challenges' starting port (Default => 6000)", type=int, default=6000, dest="port")
parser.add_argument("-i", "--img", help="Docker base image for your pwn challenges (Default => ubuntu:18.04) or do just do <img>:<tag>", default="ubuntu:18.04", dest="image")
parser.add_argument("-t", "--timeout", help="Set timeout limit", default=0, dest="time")
parser.add_argument("-g", "--gen-conf", help="Generate docker-compose.yml", action="store_true", dest="gen_conf")
parser.add_argument("-e", "--ex-libc", help="Export libc from container", action="store_true", dest="ex_libc")
args = parser.parse_args()
return args
00:55 $ tshark -r dns.pcapng -T fields -e dns.qry.name
bugly.qq.com
bugly.qq.com
bugly.qq.com
sparta.qb.mig.tencent-cloud.net
sparta.qb.mig.tencent-cloud.net
bugly.qq.com
sparta.qb.mig.tencent-cloud.net
sparta.qb.mig.tencent-cloud.net
star.c10r.facebook.com
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2019-02-16 08:59:40
# @Author : Racter (vivi.450@hotmail.com)
# @Profile : https://racterub.me
# OJ: https://zerojudge.tw/ShowProblem?problemid=b966
while 1:
try:
22:40 $ cat /var/folders/dx/d8cq9qgj3tl375567_hhycm40000gn/T/pymode_debug_file.txt
-------------------------------------------------------------------------------
pymode debug msg 1: Starting debug on: 2019-01-17...qgj3tl375567_hhycm40000gn/T/pymode_debug_file.txt
-------------------------------------------------------------------------------
pymode debug msg 2: Operating system: Darwin
-------------------------------------------------------------------------------
pymode debug msg 3: Scriptnames:
1: ~/.vim/bundle/python-mode/debugvimrc.vim
2: /usr/local/Cellar/macvim/8.1-151/MacVim.app/Contents/Resources/vim/runtime/plugin/getscriptPlugin.vim
def Merge_Sort(array):
if len(array) > 1:
mid = len(array) // 2
left_array = array[:mid]
right_array = array[mid:]
Merge_Sort(left_array)
Merge_Sort(right_array)
right_index = 0;
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2018-10-06 23:05:41
# @Author : Racter (vivi.450@hotmail.com)
# @Profile : https://racterub.me
def change():
target = input()
if target == '0 0':