Skip to content

Instantly share code, notes, and snippets.

View thepwrtank18's full-sized avatar
😪
tirrrreeed

TheTank20 thepwrtank18

😪
tirrrreeed
  • Skibidi Enterprises, LLC
  • glitched hell
  • 11:23 (UTC -05:00)
View GitHub Profile
@WitherOrNot
WitherOrNot / tmogged.cmd
Last active October 31, 2026 19:40
i'm sorry dave
<# :
:: I wonder who made Task Manager...
@setlocal DisableDelayedExpansion
@echo off
echo "%*" | find /i "-el" >nul && set _elev=1
set _PSarg="""%~f0""" -el
@thepwrtank18
thepwrtank18 / batchfile.md
Last active July 26, 2021 04:14
Batchfile Tips and Tricks

Batchfile

Want to make .bat (or .cmd) scripts? This is for you!

Simple stuff

These are the simple stuff, but very useful.

echo

echo is basically the console.log or console.WriteLine of Batchfile. It is important to put @echo off (or echo off if that doesn't work) on the first line of your script.

Input: echo Never

#!/usr/bin/sudo ruby
#
# revealer.rb -- Deobfuscate GHE .rb files.
#
# This is simple:
# Every obfuscated file in the GHE VM contains the following code:
#
# > __ruby_concealer__ "..."
#