Skip to content

Instantly share code, notes, and snippets.

@rekkusu
rekkusu / gist:873892
Created March 17, 2011 05:42
node.cs hello world sample
using http = http;
class Startup
{
public static Main()
{
http.createServer((req, res) =>
{
res.writeHead(
#include <string>
#include <iostream>
using namespace std;
#define W 25
#define H 25
int direction[8][2] = {
{ -1, -2 },
{ 1, -2},
@rekkusu
rekkusu / autobots.py
Created September 20, 2015 22:33
[CSAW CTF 2015] Exploit 350 autobots
from pwn import *
import re
import os
import time
import sys
REMOTE = len(sys.argv) >= 2 and sys.argv[1] == 'r'
csu_pop = 0x4008ca
csu_call = 0x4008b0
/*
* 102行付近GetImage
* こんな感じにすればpcklesに対応できる
*
* 実際のURLは
* http://pckles.com/[user]/[pic_id](.png)
* http://pckl.es/[user]/[pic_id](.png)
* 正規表現使ったほうが正確かもしれない。
*
*/
// Key values
const string XAuthUsername = "x_auth_username";
const string XAuthPassword = "x_auth_password";
const string XAuthMode = "x_auth_mode";
public bool GetAccessToken(string userName, string password)
{
List<KeyValuePair<string, string>> para = new List<KeyValuePair<string, string>>();
para.Add(new KeyValuePair<string, string>(XAuthUsername, userName));
// バグ有り注意
using System;
using System.Collections.Generic;
namespace Vuvuzela
{
class Program
{
static void Main(string[] args)
{
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
namespace SleepyBird.View.Controls
{
/// <summary>
/// DropDownButton
using System;
namespace Dec2Bin
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Dec2Bin - 10進数から2進数に変換");
Console.WriteLine("プログラム能力を試すのにお薦め");
using System;
using System.Collections.Generic;
namespace Brainf__k
{
class Program
{
static void Main(string[] args)
{
int length = 1024;
// コード汚いです。。
// import System.Windows.Forms
public class SortableListBox : ListBox
{
int moveItemIndex = -1;
public event EventHandler ItemSorted;
public SortableListBox()
: base()
{