It would be cool if there's webpack for python, since sometimes I need a custom syntax for the python.
exec transform('{a, b} = {"a": 1, "b": 1}')
# a = 1
# b = 1| import subprocess | |
| import Queue | |
| import threading | |
| import time | |
| import sys | |
| def Popen(*args, **kwargs): | |
| q = Queue.Queue() | |
| done = [] |
| 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/' \ |
| // 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}; |
| 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 |
| #!/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 |
| 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' |
| // gcc % -fno-stack-protector | |
| #include <unistd.h> | |
| int main() { | |
| char buf[16]; | |
| read(0, buf, 0x10000); | |
| return 0; | |
| } |
| 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)) | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <style type="text/css"> | |
| body { | |
| margin: 0; | |
| } |
It would be cool if there's webpack for python, since sometimes I need a custom syntax for the python.
exec transform('{a, b} = {"a": 1, "b": 1}')
# a = 1
# b = 1