Skip to content

Instantly share code, notes, and snippets.

@nk0t
nk0t / Bruteforce.cs
Created December 25, 2012 16:48
総当りプログラム
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bruteforce
{
class Program
{
@nk0t
nk0t / HelloWorld1.cs
Created December 31, 2012 09:06
HelloWorld.
using System;
using System.Linq;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
Console.WriteLine(new string(@"`;,@@^|/[,_~\]".Select((c, i) => (char)(c ^ "(^@,/~+@)@;_}|"[i])).ToArray()));
}
@nk0t
nk0t / SettingManager.cs
Created March 8, 2013 13:59
設定管理クラス的な何か
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestApplication.Core.Configuration
{
public sealed class SettingManager
@nk0t
nk0t / turai.cs
Created May 3, 2013 15:22
つらい
#!/usr/bin/csharp
Action 甲 = () => Console.WriteLine("つらい");
Action 乙 = () => Console.WriteLine("しにたい");
for (int i = 0; i < 1000; i++)
{
甲();
乙();
}
@nk0t
nk0t / helloworld.asm
Created June 18, 2013 09:04
HelloWorld
BITS 32
mov eax, 4
mov ebx, 1
push 0x0a21646c
push 0x726f576f
push 0x6c6c6548
mov ecx, esp
mov edx, 12
int 0x80
# Aliases
alias emacs="vim"
alias v="vim"
alias cls="clear"
alias ls="ls -G --color"
# General Settings
PATH=$PATH:$HOME/bin
export EDITOR=vim
export LANG=ja_JP.UTF-8
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace AOJ
{
class Program
@nk0t
nk0t / echoserver.py
Created August 9, 2013 14:50
simple echo server in python
import socket
import threading
def accept_request(client):
client.send('welcome to echo server\n')
client.send('please input\n')
while True:
msg = client.recv(1024)
if(msg == 'exit\r\n'):
break
@nk0t
nk0t / HTTPy.py
Created August 9, 2013 15:34
simple http server in python
import os
import os.path
import socket
import threading
import subprocess
import locale
server_string = 'Server: httpy/1.0\r\n'
document_root = ''
index_page = ''
@nk0t
nk0t / codecode.py
Created September 1, 2013 06:03
ASIS CTF PPC/Code&Code
import sys
import socket
import Image
from qrtools import QR
def solve(qrcode):
make_qrcode_image(qrcode)
code = QR(filename='qrcode.png')
if code.decode():