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 | |
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
#!/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
/* | |
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 | |
_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
#!/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 |
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 requests | |
import random | |
import string | |
import csv | |
import os | |
from pprint import pprint | |
token = "<TOKEN_GOES_HERE>" | |
headers = { | |
"Authorization": f"Token {token}", |
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
/* 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}"; |
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 #### | |
############################# | |
########################################################################### | |
###### Change this to the amount of brightness you want to inc/dec ######## | |
base=0.1 | |
########################################################################### |
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 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: |