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 os | |
| import time | |
| import requests | |
| API_URL = os.environ.get("API_URL", "https://ctf.heroctf.fr/api/v1").rstrip("/") | |
| CTFD_TOKEN = os.environ.get( | |
| "CTFD_TOKEN", | |
| "ctfd_TOKEN_GOES_HERE", | |
| ) |
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
| # grep -r 'class Unattended' | |
| ... | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedWindowsSifInstaller : public UnattendedInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedWindowsXmlInstaller : public UnattendedInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedOs2Installer : public UnattendedInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedLinuxInstaller : public UnattendedInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedDebianInstaller : public UnattendedLinuxInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedUbuntuPreseedInstaller : public UnattendedDebianInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedUbuntuAutoInstallInstaller : public UnattendedDebianInstaller | |
| src/VBox/Main/include/UnattendedInstaller.h:class UnattendedRhelInstaller : public UnattendedLinuxInstaller |
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 idaapi | |
| import idautils | |
| import ida_hexrays | |
| jnienv_tinfo = idaapi.tinfo_t() | |
| idaapi.parse_decl(jnienv_tinfo, idaapi.cvar.idati, "JNIEnv *env;", 0) | |
| for func_ea in idautils.Functions(): | |
| name = idaapi.get_name(func_ea) | |
| if not name.startswith("Java_"): |
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 idaapi | |
| import idautils | |
| import time | |
| import re | |
| __author__ = "yarienkiva" # though the script is based on mrspicky by pat0s | |
| LOGGING_FUNC = { | |
| # func_name : interesting arg num |
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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from z3 import * | |
| import struct | |
| import os | |
| # fmt: off | |
| S = ( | |
| 0xd6, 0x90, 0xe9, 0xfe, 0xcc, 0xe1, 0x3d, 0xb7, 0x16, 0xb6, 0x14, 0xc2, 0x28, 0xfb, 0x2c, 0x05, |
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
| # this was coded months ago and I have no idea if it worked / still works | |
| from scapy.all import AsyncSniffer, wrpcap, TCPSession, IP, TCP | |
| from scapy.config import Conf | |
| import threading | |
| import logging | |
| import queue | |
| import time | |
| import sys | |
| logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO) |
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 base64 | |
| import sys | |
| import os | |
| import io | |
| from PIL import Image | |
| from pythonnet import load | |
| load("coreclr") |
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 tqdm import tqdm | |
| import subprocess | |
| import logging | |
| import email | |
| import time | |
| logging.basicConfig(level=logging.INFO) | |
| VM_USERNAME = "..." | |
| VM_PASSWORD = "..." |
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 sys | |
| import re | |
| CIPHERTEXT = ... | |
| class RC4: | |
| def __init__(self, key: bytes) -> None: | |
| self.S = list(range(256)) |
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 re | |
| PID = int(subprocess.check_output(["pgrep", "-f", ... ])) | |
| CIPHERTEXT = ... | |
| LIST_INIT_DOC = b"list(iterable=(), /)\n--\n\nBuilt-in mutable sequence.\n\nIf no argument is given, the constructor creates a new empty list.\nThe argument must be an iterable if specified." | |
| class RC4: |
NewerOlder