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 | |
# Please excuse the awfully formatted code, I did not take the time to make it look nice. | |
def main(): | |
print() | |
if len(sys.argv) != 2: | |
print(f' Usage: {sys.argv[0]}') |
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
#include "stdafx.h" | |
#include <windows.h> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ | |
cout << "\r\n"; | |
if (argc != 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
#!/bin/bash | |
mkdir illegal_files # no -p flag, we don't want to overwrite/delete actual data | |
cd illegal_files | |
mkdir -p folders | |
mkdir -p files | |
mkdir -p files_with_extension | |
ILLEGAL_NAMES="CON PRN AUX NUL \ |
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 | |
mkdir illegal_files # no -p flag, we don't want to overwrite/delete actual data | |
cd illegal_files | |
mkdir -p folders | |
mkdir -p files | |
mkdir -p files_with_extension | |
ILLEGAL_NAMES="CON PRN AUX NUL \ |
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 winreg | |
VALUE_TO_WRITE = 0x69 | |
root_dict = { | |
'HKEY_CLASSES_ROOT': winreg.HKEY_CLASSES_ROOT, | |
'HKEY_CURRENT_USER': winreg.HKEY_CURRENT_USER, | |
'HKEY_LOCAL_MACHINE': winreg.HKEY_LOCAL_MACHINE, | |
'HKEY_USERS': winreg.HKEY_USERS, |
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
Set objFS = CreateObject("Scripting.FileSystemObject") | |
outFile = "clip.txt" | |
oldClip = "" | |
Do | |
newClip = ClipBoard(Null) | |
If newClip <> oldClip Then | |
Set objFile = objFS.OpenTextFile(outFile, 8, True) | |
objFile.Write "############" & vbCrLf & ClipBoard(Null) & vbCrLf | |
objFile.Close |
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 | |
from flask import Flask, request, send_from_directory | |
from datetime import datetime | |
from user_agents import parse | |
app = Flask(__name__) | |
def censor_ip(ip): |