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
| from pkg.internal_api import _ida_lib | |
| import ctypes | |
| functype, lib = _ida_lib() | |
| class qstring(ctypes.Structure): | |
| _fields_ = [ | |
| ('array', ctypes.c_void_p), |
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 subprocess | |
| import Queue | |
| import threading | |
| import time | |
| import sys | |
| def Popen(*args, **kwargs): | |
| q = Queue.Queue() | |
| done = [] |
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
| from hashlib import sha256 | |
| import os | |
| import sys | |
| import logging | |
| import urllib2 | |
| import tempfile | |
| # extracted from https://pypi.org/simple/virtualenv/ | |
| VIRTUALENV_URL = 'https://files.pythonhosted.org/packages/33/5d/' \ |
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
| // The whole code below does container[2] = buf[0] | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define SIZE 0x100 | |
| __attribute__((aligned(0x10))) | |
| long container[] = {0, 0x100 + 0x11, 0}; |
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
| from pwn import * | |
| HOST, PORT = "110.10.147.104", 13152 | |
| # HOST, PORT = "0.0.0.0", 31338 | |
| r = remote(HOST, PORT) | |
| ii = lambda x: r.sendline(str(x)) | |
| go = lambda x: (menu(), ii(x))[0] | |
| ii("""1 lOv3 1 2 |
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
| #!/bin/bash | |
| # ./remote server port 'menu string' | |
| touch "$1" || (echo "Cannot create file named $1" && exit 1) | |
| exec > "$1" | |
| echo 'from pwn import *' | |
| echo '' | |
| echo -e "HOST, PORT = \"$2\", \"$3\"" | |
| if [ ! -n "$HOST" ]; then HOST=0.0.0.0; fi |
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
| from pwn import * | |
| HOST, PORT = "gis.eatpwnnosleep.com", "9999" | |
| # HOST, PORT = "0.0.0.0", 31337 | |
| menu = lambda: r.recvuntil(":") | |
| ii = lambda x: r.sendline(str(x)) | |
| go = lambda x: (menu(), ii(x))[1] | |
| context.endian = 'big' |
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
| // gcc % -fno-stack-protector | |
| #include <unistd.h> | |
| int main() { | |
| char buf[16]; | |
| read(0, buf, 0x10000); | |
| return 0; | |
| } |
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
| from pwn import * | |
| HOST, PORT = "49.236.136.140", "15010" | |
| # HOST, PORT = "0.0.0.0", 31337 | |
| r = remote(HOST, PORT) | |
| def ii(x): return r.sendline(str(x)) | |
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> | |
| <head> | |
| </head> | |
| <body> | |
| <style type="text/css"> | |
| body { | |
| margin: 0; | |
| } |