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
public class Example { | |
public static void main(String[] args) { | |
System.out.println("Hello world!!"); | |
} | |
} |
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
import java.lang.Integer.parseInt | |
val input = "87 101 108 1100011 0157 6d 0145 040 116 0157 100000 0164 104 1100101 32 0123 69 67 0103 1001111 1001110 040 062 060 49 064 100000 0157 110 6c 0151 1101110 101 040 0103 1010100 70 101110 0124 1101000 101 100000 1010011 1000101 67 0103 4f 4e 100000 105 1110011 040 116 1101000 0145 040 1100010 0151 103 103 0145 1110011 0164 100000 1101000 0141 99 6b 1100101 0162 32 0143 111 1101110 1110100 101 0163 0164 040 0151 0156 040 74 0141 1110000 1100001 0156 056 4f 0157 0160 115 44 040 0171 1101111 117 100000 1110111 0141 0156 1110100 32 0164 6f 32 6b 1101110 1101111 1110111 100000 0164 1101000 0145 040 0146 6c 97 1100111 2c 100000 0144 111 110 100111 116 100000 1111001 6f 117 63 0110 1100101 0162 0145 100000 1111001 111 117 100000 97 114 0145 46 1010011 0105 0103 67 79 1001110 123 87 110011 110001 67 110000 1001101 32 55 060 100000 110111 0110 110011 32 53 51 0103 0103 060 0116 040 5a 0117 73 0101 7d 1001000 0141 1110110 1100101 100000 102 0165 0156 33" | |
for (s <- input.sp |
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
// nc number.quals.seccon.jp 31337 | |
import scala.sys.process._ | |
import java.io.ByteArrayInputStream | |
import java.io.ByteArrayOutputStream | |
import java.io.InputStream | |
import java.io.PrintWriter | |
import java.io.InputStreamReader | |
import java.io.BufferedReader | |
import java.net.Socket |
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
String.prototype.contains = function(t) { return this.indexOf(t) > -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 json | |
import scala.util.parsing.combinator._ | |
class JSON extends JavaTokenParsers { | |
def obj: Parser[Map[String, Any]] = "{" ~> repsep(member, ",") <~ "}" ^^ { Map() ++ _ } | |
def arr: Parser[List[Any]] = "[" ~> repsep(value, ",") <~ "]" | |
def member: Parser[(String, Any)] = stringLiteral ~ ":" ~ value ^^ { | |
case name ~ ":" ~ value => (name, value) | |
} |
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
<?php | |
$flag = false; | |
if (isset($_POST['sql'])) { | |
$flag = true; | |
$link = mysql_connect('localhost', 'root', 'pass') or die('Cannot connect to SQL Server.'); | |
mysql_set_charset("utf8"); # UTF8 | |
$sdb = mysql_select_db('aaa', $link) or die('Cannot select database.'); | |
$sql = $_POST['sql']; | |
$res = mysql_query($sql, $link) or print("<h4>".mysql_error()."</h4>"); |
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/env python | |
from pwn import * | |
import itertools | |
# eval and compare | |
def seval(s, e): | |
# print s | |
try: | |
return eval(s) == e | |
except ZeroDivisionError: |
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
XXXXXXX_X___X_XXX_XXX__XXX__XX__X__X__XX__X_X_XXX_X_XXXXXXXXX_XXXXXXX | |
X_____X____XX__XX_XXX_X_XXX__X_XXXX___X__XXX_X__X_X_X_XX______X_____X | |
X_XXX_X_XX__X_X_____X__X_X_XXXX___XXXXXX_XXX_XXX_X_X__XX_XX___X_XXX_X | |
X_XXX_X_____XXXX___X_XXXXXX_X___XXXXX__________X_X_____X_X__X_X_XXX_X | |
X_XXX_X______XX___X__X_X_XX_XX__XXXXX_XX__XXX_X___XXX_XXX_X_X_X_XXX_X | |
X_____X_X___XXXX___X___X______X_X___XX____XX_XXX__XXX_X_XXX___X_____X | |
XXXXXXX_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_X_XXXXXXX | |
___________X_XX___X_X_XXXX___X_XX___X_XXX_X_XXX_XX_XXX_XXXX__________ | |
X_X___XX_XX__X_X_X_XX_XXXXXX__XXXXXXX_X_X_XXX_X_X___XXX_XXXX___X__X_X | |
_X_XX____X___XX__X____X_XX_X__XX_XX_XX_X_X__XX___X_XXX_XX__X_X_XX___X |
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
aj | |
j |
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
wei |
OlderNewer