This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HWND hWnd = ::FindWindow(NULL, window_name); | |
LONG style = GetWindowLong(hWnd, GWL_STYLE); | |
style &= ~WS_SIZEBOX; | |
SetWindowLong(hWnd, GWL_STYLE, style); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# CODEGATE2011 Crypt300 Writeup | |
# | |
# oracle old password hash | |
# http://svn.sqlmap.org/sqlmap/trunk/sqlmap/lib/utils/hash.py | |
# | |
# openssl library for ruby | |
# $ sudo apt-get install libopenssl-ruby | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# CODEGATE2011 CTF Pre-qual Crypto100 Writeup | |
# | |
# how to: | |
# $ ruby crypt100-writeup.rb | |
# incryptographyasubstitutioncipherisamethodofencryptionbywhichunitsof | |
# plaintextarereplacedwithciphertextaccordingtoaregularsystemtheunits | |
# maybesingleletterspairsofletterstripletsoflettersmixturesoftheabovethis | |
# ciphertextisencryptedbytelephonekeypadsowecallthiskeypadcipher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# Stringクラスにxor(^)を追加してみるテスト。主にCTF用? | |
# | |
class String | |
def ^(str) | |
raise "Illigal size!" if self.size != str.size | |
(0...self.size).inject("") {|r,i| r += (self[i] ^ str[i]).chr} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# Stringクラスにxor(^)を追加してみるテスト。主にCTF用? | |
# | |
class String | |
def ^(str) | |
raise "Illigal size!" if self.size != str.size | |
(0...self.size).inject("") {|r,i| r + (self[i] ^ str[i]).chr} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/param.h> | |
#include <libgen.h> | |
#include <memory.h> | |
// for linux only | |
void get_exe_path(char *dir, int size) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
$KCODE='utf8' | |
require 'base64' | |
require 'webrick' | |
include WEBrick | |
include WEBrick::HTTPServlet | |
# default configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# jishin_notifier.rb | |
# | |
# How to use... | |
# | |
# $ gem sources -a http://gems.github.com/ | |
# $ gem install intridea-tweetstream | |
# $ gem install xmpp4r | |
# $ gem install net-netrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# jishin_notifier.rb | |
# | |
# How to use... | |
# | |
# $ gem sources -a http://gems.github.com/ | |
# $ gem install intridea-tweetstream | |
# $ gem install xmpp4r | |
# $ gem install net-netrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# UDP packet recieve test... | |
# | |
require 'socket' | |
addr = '127.0.0.1' | |
port = 12345 | |
puts "== create socket for recv ==" |