Last active
June 29, 2023 02:30
-
-
Save refabr1k/2de9d4c18c0b9dab5722594ad404d765 to your computer and use it in GitHub Desktop.
win cmd
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
# Local Group Policy blocks powershell | |
## Windows Setting > Security Settings > Software Restriction Policies > Additional Rules > PowerShell.EXE (Type Hash, Disallowed) | |
copy system32 powershell to desktop | |
Set /p comm=cmd~ | |
cmd~echo >> C:\path\of\desktop\powershell.exe | |
# 'Prevent access to command prompt' bypass (refer as runcmd.bat) | |
@echo off | |
:a | |
Set /p comm=cmd~ | |
%comm% | |
Goto a | |
# hide files | |
copy /b image.jpg+secret.zip secretphoto.jpg | |
# encrypt | |
cipher /E secretfolder | |
# hide folder | |
attrib +h +s +r secretfolder | |
# unhide | |
attrib -h -s -r secretfolder | |
# wifi plaintext | |
netsh wlan show profile | |
netsh wlan show "ssid" key=clear | |
netsh wlan show "ssid" key=clear | findstr "Key Content" | |
# get all wifi pw (use with .bat) | |
for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @if "%j" NEQ "" (echo SSID: %j & netsh wlan show profiles %j key=clear | findstr "Key Content") & echo. | |
# map folder as drive | |
subst z: "C:\user\abc\foldername" | |
# unmap | |
subst /d z: | |
# delete temp | |
del /q /f /s %temp%\* | |
del /s /q C:\Windows\temp\* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment