Skip to content

Instantly share code, notes, and snippets.

View TheFlash2k's full-sized avatar
😎
Running

Ali Taqi Wajid TheFlash2k

😎
Running
View GitHub Profile
setx prompt "┌──[%username%@%computername%]─[$P]$_└──╼ $$ "
@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"
#!/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 / 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
@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.
import requests
import re
url = "http://192.168.0.130:8000/"
def download(file_name):
r = requests.get(url + file_name, allow_redirects=True)
print(f"[+] Downloading {file_name}", end='')
try:
with open(file_name, 'wb') as f:
@TheFlash2k
TheFlash2k / brightness.sh
Created December 1, 2022 14:14
Increase or decrease the brightness of your monitor using arguments to this script
#!/bin/bash
#############################
#### Author: @TheFlash2k ####
#############################
###########################################################################
###### Change this to the amount of brightness you want to inc/dec ########
base=0.1
###########################################################################
@TheFlash2k
TheFlash2k / fill.js
Last active May 26, 2024 05:58
Air University Student Portal Fill QEC Form
/* COURSE EVALUATION FORM */
function CourseEvaluation() {
option = 1; // A = 1, B = 2, C = 3, D = 4
var baseOpts = document.querySelector("#ctl00_ContentPlaceHolder2_cmb_courses");
if(baseOpts.length == 1) {
console.log("Completed. Returning to home..");
document.querySelector("#ctl00_ContentPlaceHolder2_linkBack").click();
}
baseOpts.options[1].selected = true; // Selecting the first available value
selector = "#ctl00_ContentPlaceHolder2_q{VAR}_{OPTION}";
@TheFlash2k
TheFlash2k / ctfd-register-teams-with-user.py
Last active October 24, 2023 21:24
CSV: team_name,user_1,user_2
import requests
import random
import string
import csv
import os
from pprint import pprint
token = "<TOKEN_GOES_HERE>"
headers = {
"Authorization": f"Token {token}",
@TheFlash2k
TheFlash2k / localip
Created June 2, 2023 12:32
Lists local IP of an interface
#!/bin/bash
if [[ $# != 1 ]]; then
echo "No interface specified!"
exit 1
fi
ip a s $1 | grep inet | cut -d $'\n' -f 1 | cut -d ' ' -f 6 | cut -d '/' -f 1