- ksnctf
Test Problem (1)Easy Cipher (50)Crawling Chaos (100)Villager A (300)Onion (70)Login (120)Programming (110)Basic is secure? (50)Digest is secure! (150)
This file contains 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/python | |
import sys, struct, zlib | |
rsa_data = {} | |
text = int(sys.argv[1].encode("hex"), 16) | |
for x in open("id_rsa.private").readlines(): | |
if len(x.split("=")) > 1: | |
rsa_data[x.split("=")[0].rstrip()] = long("".join(x.split("=")[1].split(":")), 16) |
This file contains 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
Name | ScreenName | ID | |
---|---|---|---|
SEONews | @htbtr_seo | 385312377 | |
軍事ニュース | @htbtr_military | 2306752844 | |
WEBデザインニュース | @htbtr_wd | 2157032064 | |
javascriptニュース | @htbtr_js | 2248879796 | |
海外・国際ニュース | @htbtr_foreign | 2283553392 | |
政党ニュース | @htbtr_poliparty | 2289584250 | |
Pythonニュース | @htbtr_python | 2273530062 | |
アート・芸術ニュース | @htbtr_art | 2287851144 | |
Gitニュース | @htbtr_git | 2282048912 |
This file contains 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> | |
#define sub void | |
#define main main() | |
#define print printf | |
#define x1 | |
#if 0 | |
main(); | |
#endif | |
sub main { |
This file contains 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> | |
i; | |
void main() { | |
for(i--;++i<100;printf(&("%s%s\n\0%d\n\0"[(!(i%3)||!(i%5))?0:6]), !(i%3)?"Fizz":i%5?i:"", !(i%5)?"Buzz":"")); | |
} |
This file contains 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
package xyz.elliptic_shiho.ecalc.scala | |
import scala.util.parsing.combinator._ | |
/** | |
* @author eshiho | |
*/ | |
object EcalcParser extends RegexParsers { | |
def digit = "[0-9]+".r | |
def bindigit = "[01]+".r | |
def hexdigit = "[0-9a-fA-F]+".r |
This file contains 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 <string.h> | |
#define IS_EFFECTIVE_PTR(ptr) (((ptr) != NULL) && (ptr) != ((void*)0xdeadbeef)) | |
#define PTR(x, type) type *x = NULL; | |
#define MALLOC(x, type, size) do { \ | |
if (IS_EFFECTIVE_PTR(x)) { \ | |
ERROR("Already allocated pointer:%s", #x); \ | |
exit(-1); \ |
This file contains 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
package xyz.elliptic_shiho.Curry; | |
public class CMain { | |
public static void main(String...args) { | |
Curry.curry(CMain.class, "foo", new Class[]{double.class, int.class}, 1, 20).invoke(null, 1.5); | |
} | |
public int add(int a, int b) { | |
return a + b; | |
} | |
public static void foo(double A, int b) { |
This file contains 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
### 共通問題 | |
下記の共通問題にはすべて回答してください。 | |
■ 共通問題1 | |
セキュリティ・キャンプに応募した自分なりの理由とセキュリティ・キャンプで学んだことを何に役立てたいかを教えてください。 | |
【以下に回答してください(行は適宜追加してください)】 | |
SNSに代表される一般世代へのインターネットの普及によって情報セキュリティに関する技術は需要が高まっています。また、一般世代に対してもそれ相応の理解がそろそろ必要になって来ました。 | |
しかし、現状情報セキュリティ技術者は不足しています。一般への理解に関してもマスコミの過激な報道による間違った理解をしていることがほとんどです。 | |
私は現在高校一年生で、自分が切り拓くべき未来をどのようにするかを考えられる時間がありました。私は人にものを伝えることが苦手で、今までも話すことで興味を持ってもらえた例はほんのひと握り程度です。でも、私にはそれなりの技術があります。未来のためにその技術を磨き、そして私を見て少しでも興味を持ってもらえる人がいるような、そのような活動をしたいと思っています。 | |
セキュリティ・キャンプは私一人やCTFをする中で知り合った方々との知見の共有やお話の中では得ることに限界のある、実際のセキュリティの現場の技術を学べる数少ない機会です。私は私自身が更に成長するために、ひいてはセキュリティというまだまだ出てきて間もない世界の発展に貢献したいと思い、このセキュリティ・キャンプへと応募しました。 | |
【回答ここまで】 |
This file contains 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
from sage.all import * | |
def lagrange_delta(u,S): | |
d = 1 | |
var("x") | |
for j in S: | |
if j == u: continue | |
d *= (x-j)/(u-j) | |
return d |
OlderNewer