Skip to content

Instantly share code, notes, and snippets.

View TheFlash2k's full-sized avatar
😎
Running

Ali Taqi Wajid TheFlash2k

😎
Running
View GitHub Profile
@TheFlash2k
TheFlash2k / parser.cs
Last active August 27, 2022 17:53
A Basic C-Sharp command-line parser that will allow a user to create their own parsers according to their needs.
using System;
using System.Linq;
namespace CLI_Parser
{
/// <summary>
/// This is an abstract interface class that you can inherit and create a very powerful parser using this. There's
/// no need to use any sort of if/else statements to verify and stuff. One thing you need is a basic verifier that will
/// check the user input against existing commands and then load the specific function from the user input. And if any arguments are required,
/// it will use those accordingly.
@TheFlash2k
TheFlash2k / func_addr.py
Last active July 3, 2023 14:55
Removed the arch option and switched to context.binary and pack
#!/usr/bin/env python3
'''
pip3 install pwntools
pip3 install argparse
'''
from pwn import *
from sys import argv, stderr, stdout
import argparse
#!/bin/bash
_in=""
out=""
if [[ $# != 2 ]]; then
if [[ $# != 1 ]]; then
echo "No arguments provided!"
echo "Usage: $0 <input_file.c/cpp/cxx> [<output_file>]"
exit 1
@TheFlash2k
TheFlash2k / build.sh
Created December 12, 2021 16:25
A bash script to compile binaries vulnerable to Stack Buffer Overflow
#!/bin/bash
if [[ $# != 1 ]]; then
echo "[!] No arguments provided! Please provide the name of the file that you want to compile!"
echo "Usage: $0 <file_name.c>
exit
fi
out_file=`echo $1 | cut -d '.' -f 1`
echo "[+] Disabling ASLR"
setx prompt "β”Œβ”€β”€[%username%@%computername%]─[$P]$_└──╼ $$ "