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 platform | |
| import random | |
| import re | |
| import socket | |
| import ssl | |
| import struct | |
| import subprocess | |
| import threading | |
| import time | |
| from concurrent.futures import ThreadPoolExecutor, as_completed |
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 php:8.3.6-apache | |
| # Install all the system dependencies and enable PHP modules | |
| RUN apt-get update && apt-get install -qq -y \ | |
| libicu-dev \ | |
| libpq-dev \ | |
| libmcrypt-dev \ | |
| supervisor \ | |
| git \ | |
| cron \ |
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
| package main | |
| import ( | |
| "unicode" | |
| "regexp" | |
| "fmt" | |
| ) | |
| func verifyPasswordRules(password string, minLength int, requireCapital bool, requireNumber bool, requireSpecial bool, minCapital int, minNumber int, minSpecial int) bool { | |
| passwordLength := len(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
| function verifyPasswordRules($password, $minLength, $requireCapital, $minCapital, $requireNumber, $minNumber, $requireSpecial, $minSpecial) { | |
| $passwordLength = strlen($password); | |
| $capitalCount = preg_match_all('/[A-Z]/', $password); | |
| $numberCount = preg_match_all('/[0-9]/', $password); | |
| $specialCount = preg_match_all('/[^A-Za-z0-9]/', $password); | |
| // Check minimum length rule | |
| if ($passwordLength < $minLength) { | |
| return false; | |
| } |
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 argparse | |
| import ast | |
| import os.path | |
| import re | |
| import sys | |
| class Hexify: | |
| @staticmethod | |
| def hexify_strings(source: str) -> str: |
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
| # Use a base image with systemd support, you free to modify the base image as you want | |
| FROM ubuntu:23.10 | |
| #FROM debian:12 | |
| # Enable systemd | |
| ENV container docker | |
| STOPSIGNAL SIGRTMIN+3 | |
| # Install systemd and other dependencies | |
| RUN apt-get update && \ |
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.path | |
| import shutil | |
| from distutils.command.build_ext import build_ext | |
| from distutils.extension import Extension | |
| from Cython.Build import cythonize | |
| from distutils.core import setup | |
| class CustomBuildExt(build_ext): |
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 argparse | |
| import ast | |
| import os.path | |
| import re | |
| import sys | |
| class Modification: | |
| @staticmethod | |
| def remove_docstring(source: str): |
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
| class Printer: | |
| def __init__(self, is_verbose: bool = False): | |
| self.is_verbose = is_verbose | |
| def verbose(self, message: str): | |
| if self.is_verbose: | |
| print(f"[v] {message}") | |
| @staticmethod | |
| def basic(message: str): |
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 psutil | |
| def get_users_information() -> list[dict[str, str]]: | |
| """ | |
| The get_users_information function returns a list of dictionaries containing information about the users currently logged into the system. | |
| Returns: | |
| A list of dictionaries |
NewerOlder