Skip to content

Instantly share code, notes, and snippets.

View hellok's full-sized avatar

Chen Qin hellok

View GitHub Profile
@hellok
hellok / gist:8170962
Created December 29, 2013 14:32
30c3.log
[10:07am] fwg joined the chat room.
[10:07am] fwg left the chat room. (Max SendQ exceeded)
[10:08am] fwg joined the chat room.
[10:09am] gijs:
hi guys are there more challenges coming?
[10:10am] n00bz joined the chat room.
[10:15am] danitorwS left the chat room. (Read error: Connection reset by peer)
[10:15am] danitorwS joined the chat room.
[10:21am] y0no left the chat room. (Ping timeout: 490 seconds)
[10:21am] tr0ll:
@hellok
hellok / nisl.log
Created January 20, 2014 05:59
thunisl_2012~
Session Start: Sat Dec 15 22:42:05 2012
Session Ident: #ctf
03[22:42] * Now talking in #ctf
02[22:49] * YueLiu ([email protected]) Quit (Ping timeout: 121 seconds)
02[22:51] * adrian ([email protected]) Quit (Quit: Going offline, see ya! (www.adiirc.com))
03[23:06] * luke ([email protected]) has joined #ctf
Session Time: Sun Dec 16 00:00:00 2012
01[00:05] <hellok> 登陆密码是?
02[00:31] * Disconnected
#!/usr/bin/env ruby
require 'eventmachine'
require 'logger'
require File.expand_path("../blue.rb", __FILE__)
TIMER = 5
host = "0.0.0.0"
port = (ARGV[0].to_i > 0) ? ARGV[0].to_i : 12345
@hellok
hellok / -
Created March 15, 2014 14:14
#!/usr/bin/env ruby
require 'open-uri'
require 'json'
require 'colorize'
RANDOM = false
MARGIN_TOP = 2
MARGIN_LEFT = 3
SERVICE_CELL = " " * 3
/*
shell_reverse_tcp_shellcode
* 72 bytes
* null-bytes free if the port and address are
* the ip address and port number are easily changeable (2nd to 5th bytes are the IP) and (9th and 10th are the Port)
# gcc -m32 -fno-stack-protector -z execstack shellcode.c -o shellcode
#!/usr/bin/env ruby
require 'eventmachine'
require 'logger'
require File.expand_path("../blue.rb", __FILE__)
TIMER = 5
host = "0.0.0.0"
port = (ARGV[0].to_i > 0) ? ARGV[0].to_i : 12345
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@hellok
hellok / 1.txt
Last active August 29, 2015 13:59
{"ap":10,"bp":20,"services":{"freebsd":"11","bb":"22","c":"33","dd":"44"},"scores":10,"name":{"a" : "Hello","b" : "World"}}
@hellok
hellok / endian.h
Created April 21, 2014 17:46 — forked from yinyin/endian.h
#ifndef __FINK_ENDIANDEV_PKG_ENDIAN_H__
#define __FINK_ENDIANDEV_PKG_ENDIAN_H__ 1
/** compatibility header for endian.h
* This is a simple compatibility shim to convert
* BSD/Linux endian macros to the Mac OS X equivalents.
* It is public domain.
* */
#ifndef __APPLE__
--- a/drivers/video/logo/logo_linux_clut224.ppm 2014-06-09 02:19:54.000000000 +0800
+++ b/drivers/video/logo/logo_linux_clut224.ppm 2014-08-21 20:07:31.729230596 +0800
@@ -1,5 +1,5 @@
P3
-# Standard 224-color Linux logo
+# 224-color Minami Kotori bootup logo for Linux
80 80
255
0 0 0 0 0 0 0 0 0 0 0 0
@@ -11,8 +11,6 @@