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 Check-UserExists { | |
param([string]$username) | |
net user | findstr $username | |
$out=$? | |
return $out | |
} | |
function CreateUser { | |
param ( | |
[switch]$RDP, |
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 | |
''' | |
Printing all the specifier's value using PRINTF. | |
Helps in format string bugs. | |
''' | |
from pwn import * | |
import sys |
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 sys | |
from pwn import * | |
def find(data): | |
data = data[2:] if data[:2] == "0x" else data | |
offset = -1 | |
try: | |
data = unhex(data)[::-1].decode() |
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 | |
from rstr import xeger as generate_pattern | |
def brute_regex( | |
regex: str, | |
count: int = 1000, | |
match: str = "", | |
show: bool = 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
#!/bin/bash | |
######### YOU CAN CHANGE THESE ############ | |
TMP_FOLDER="/tmp" | |
INSTALL_FOLDER="/opt" | |
BASE_URL="https://ftp.gnu.org" | |
RC_FILE=`echo ~/.my_functions` | |
if [ ! -f $RC_FILE ]; then | |
touch $RC_FILE |
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 |
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
# 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 | |
## 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
#!/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) |