This file contains 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 sys | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
def dump_stuff(base, output_dir): | |
os.makedirs(output_dir, exist_ok=True) | |
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" | |
url = base | |
i = 0 |
This file contains 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
# TODO: Currently I need to spawn 2 Admin Powershells, they can probably be reduced to 1 | |
$run = wsl -l --running | |
$run = [string]::join("",($run.Split("`n"))) | |
$running = $false | |
function Run-Elevated ($scriptblock1, $scriptblock2) | |
{ | |
# Wait on this powershell instance to finish changing the time |
This file contains 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
# almost entirely based of https://stackoverflow.com/a/56175816 :p | |
from ctypes import windll, Structure, c_long, byref, create_string_buffer | |
import time | |
class POINT(Structure): | |
_fields_ = [("x", c_long)] | |
pt = None | |
while True: |