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 subprocess | |
import os | |
import tempfile | |
def run_php_code(php_code: str, *args) -> str: | |
""" | |
Executes a given PHP code string as a standalone PHP script. This function writes the code to a file, | |
executes it, captures the output, and performs cleanup. | |
Args: |
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 subprocess | |
import tempfile | |
import os | |
def run_java_code(java_code: str, *args) -> str: | |
""" | |
Executes a given Java code string as a standalone Java program. This function writes the code | |
to a temporary file, executes it using Java's direct execution feature (introduced in Java 11), | |
captures the output, and performs cleanup. |
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
#!/bin/bash | |
# Usage explanation if insufficient parameters are provided | |
if [[ -z "$1" ]]; then | |
echo "[x] Usage: $0 <password> [wordlist length]" | |
exit 1 | |
fi | |
# The correct password is taken from the first argument | |
PASSWORD="$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
#!/usr/bin/env python3 | |
import sys | |
from pathlib import Path | |
import argparse | |
from itertools import product | |
from typing import Generator | |
def username_variants_generator(fname: str, lname: str) -> Generator[str, None, None]: | |
""" |