Skip to content

Instantly share code, notes, and snippets.

View braeburnladny's full-sized avatar

braeburnladny

View GitHub Profile
#!/usr/bin/perl
print "\n[*] ebCTF BIN 200\n".
" No comment...\n\n";
$secret = "Sup3RSeCr3tStuFf!";
print "[*] What is the secret? ";
$answer = <STDIN>;
chomp($answer);
@braeburnladny
braeburnladny / codegate2013_misc4_10.html
Created June 4, 2013 10:34
Codegate 2013, Misc #4, Snippet #10
<html>
<head>
<script>
this.zoom = 1337;
lave = eval;
epacsenu = unescape;
cipher = "673B672B3E663C666F2B37390D362061";
myFunc = "function C0D3G4T3(){HaCkInG=Math.PI;dEfEnSe=parseInt;O3o121oO=dEfEnSe(~((HaCkInG&HaCkInG)|(~HaCkInG&HaCkInG)&(HaCkInG&~HaCkInG)|(~HaCkInG&~HaCkInG)));O3o309oO=dEfEnSe(((O3o121oO&O3o121oO)|(~O3o121oO&O3o121oO)&(O3o121oO&~O3o121oO)|(~O3o121oO&~O3o121oO))&1);/*Encrypt By yut.codegate.org's CGXX 0.13 YUT*/SECUrity='length';LuCkY7=31337-01337-9197-0xD15E;for(KangNam=O3o121oO;KangNam<myFunc[SECUrity];KangNam-=-O3o309oO)LuCkY7+=myFunc.charCodeAt(KangNam)^myFunc.length;YUTNORI=LuCkY7>>1>>1>>1>>1>>1>>1>>1>>1>>1>>1>>1>>1>>1;zuvxer='';h4ck3r=String[epacsenu('%6'+'6%72%'+'6F%6D%4'+'3%68%61'+'%72%4'+'3%6F%64'+'%65')];for(COEX=O3o121oO;COEX<cipher[SECUrity];COEX++,COEX++)zuvxer+=h4ck3r(dEfEnSe(O3o121oO+epacsenu('x')+cipher.charAt(COEX)+cipher.charAt(COEX+dEfEnSe(O3o309oO)))^YUTNORI);app.alert(zuvxer.split('').reverse().join(''));}lave('C0D3G4T3();')";
//lastFunc = lave(lave);
//lastFunc(myFunc);
@braeburnladny
braeburnladny / codegate2013_misc4_9.txt
Created June 4, 2013 10:33
Codegate 2013, Misc #4, Snippet #9
%PDF-1.3
1 0 obj
<<
/Type /Catalog
/Outlines 2 0 R
/Pages 3 0 R
/OpenAction 7 0 R
>>
endobj
@braeburnladny
braeburnladny / codegate2013_misc4_8.php
Created June 4, 2013 10:32
Codegate 2013, Misc #4, Snippet #8
<?php
$filename = "binaryfile";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
$uncompressed = gzuncompress($contents);
echo $uncompressed;
?>
@braeburnladny
braeburnladny / codegate2013_misc4_7.txt
Created June 4, 2013 10:31
Codegate 2013, Misc #4, Snippet #7
8 0 obj
<< /Length 71 >>
stream
BT /F1 99 Tf 1 0 0 1 1 715 Tm(\
]\
\
i\
\
\
l\
@braeburnladny
braeburnladny / codegate2013_misc4_6.txt
Created June 4, 2013 10:30
Codegate 2013, Misc #4, Snippet #6
7 0 obj
<< /Length 46 >>
stream
BT /F1 99 Tf 1 0 0 1 1 715 Tm(\106_\106) Tj ET
endstream
endobj
@braeburnladny
braeburnladny / codegate2013_misc4_5.txt
Created June 4, 2013 10:29
Codegate 2013, Misc #4, Snippet #5
6 0 obj
<< /Length 66 >>
stream
BT /F1 99 Tf 1 0 0 1 1 715 Tm<50
7
0
50
446
44
4
@braeburnladny
braeburnladny / codegate2013_misc4_4.txt
Created June 4, 2013 10:28
Codegate 2013, Misc #4, Snippet #4
/Contents 5 0 R
@braeburnladny
braeburnladny / codegate2013_misc4_3.txt
Created June 4, 2013 10:27
Codegate 2013, Misc #4, Snippet #3
2nd_key is combination of strings in three objects; strlen(2nd_key) == 14;
@braeburnladny
braeburnladny / codegate2013_misc4_2.txt
Created June 4, 2013 10:25
Codegate 2013, Misc #4, Snippet #2
12 0 obj
<<
/Title(Confidential Documents) /Author(RExVuz) /Subject(CODEGATE2013 YUT Challenge) /Keywords(PDF, Miscellanea) /CreationDate(D:20130301210000+0900) /ModDate(D:20130303090000+0900) /1st_key(nn@LiC!oU$) /Producer(CODEGATE PDF Maker 2013) /Creator(CODEGATE PDF Maker 2013)
>>
endobj