benjholla / CookieMonster

A utility for exfiltrating cookies from local browser cookie stores
MIT License
53 stars 30 forks source link

unable to run jar file against latest chrome version - windows #16

Closed soujanyash closed 1 year ago

soujanyash commented 1 year ago

Hi, I am trying to run the jar file in my windows machine and the chrom version is 115. I always get error

C:\Users\djsou\CookieMonster\CookieMonster>java -jar CookieMonster.jar --browsers=chrome --domains=facebook.com
Selected Browsers: Chrome
Selected Domains: facebook.com
============================================================
Searching cookies for domain: facebook.com
============================================================
Searching in browser: Chrome
============================================================
java.nio.file.FileSystemException: C:\Users\djsou\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies -> .cookies.db: The process cannot access the file because it is being used by another process
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:208)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:284)
        at java.base/java.nio.file.Files.copy(Files.java:1299)
        at cmonster.browsers.ChromeBrowser.processCookies(ChromeBrowser.java:142)
        at cmonster.browsers.Browser.getCookiesForDomain(Browser.java:40)
        at cmonster.CookieMonster.dumpCookies(CookieMonster.java:131)
        at cmonster.CookieMonster.main(CookieMonster.java:107)
No cookies found.
============================================================
============================================================
Finished.

Looks like the cookies file not able to be copied before starting reading it. Is there anything missing here ?