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
| #!/bin/bash | |
| _len=10 | |
| if [[ $# == 1 ]]; then | |
| _len=$1 | |
| fi | |
| tr -dc A-Za-z0-9 </dev/urandom | head -c $_len ; echo '' |
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
| /* | |
| logger.hpp - A Single Logging solution. | |
| Author: @TheFlash2k | |
| */ | |
| #pragma once | |
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <iostream> | |
| #include <stdlib.h> |
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
| #!/bin/bash | |
| # Finding the base drive | |
| drive_name=`df -h | rev | grep -E '^/\s' | rev | cut -d ' ' -f 1 | rev | cut -d '/' -f 1 | rev` | |
| if [[ $# == 1 ]]; then | |
| drive_name=$1 | |
| fi | |
| res=`df -h | grep $drive_name` |
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 python3 | |
| import argparse | |
| import struct | |
| def pack_address(address, arch, byte_order): | |
| _ = { 'x64' : { 'little' : '<Q', 'big' : '>Q' }, 'x86' : { 'little' : '<I', 'big' : '>Q' } } | |
| return struct.pack(_[arch][byte_order], address) | |
| def main(): |
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
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <stdio.h> | |
| #include <time.h> | |
| #pragma warning (disable : 4005) | |
| #pragma warning (disable : 4172) // Line 22 | |
| #define TIME_BUFFER_SIZE 20 | |
| char timeBuffer[TIME_BUFFER_SIZE]; |
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 python3 | |
| # .~ Author: @TheFlash2k | |
| import sys | |
| from colorama import Fore, init | |
| from datetime import datetime | |
| import os | |
| from pathlib import Path | |
| init(autoreset=True) |
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
| #!/bin/bash | |
| ## Author: @TheFlash2k | |
| set -e | |
| cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf | |
| overlay | |
| br_netfilter | |
| EOF |
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
| # For enums | |
| from enum import Enum | |
| # For parsing and handling | |
| import json | |
| import sys | |
| import random | |
| import string | |
| import logging | |
| import tempfile |
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
| #!/bin/bash | |
| # Default Mode: 2 | |
| # MODES: | |
| # 0 - disable | |
| # 1 - stack and code segment | |
| # 2 - stack, code and data segment (default) | |
| # Options: | |
| # aslr on # 2 |
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
| #!/bin/bash | |
| username=$(cat /etc/passwd | grep 1000 | cut -d ':' -f1) | |
| if [[ -z $username ]]; then $username="root"; fi | |
| sudo dpkg --add-architecture i386 | |
| sudo apt-get update | |
| sudo apt update | |
| sudo apt install -y libc6:i386 libncurses5:i386 libstdc++6:i386 snapd gcc g++ build-essential python3 python3-pip gpg ruby strace ltrace ruby-dev liblzma-dev liblzo2-dev zlib1g-dev nasm bless unzip p7zip-full cmake libcapstone-dev autoconf g++-multilib gcc-multilib curl wget git python2 docker.io docker-compose patchelf gdb dos2unix elfutils bat screen tmux libseccomp-dev |