HackBrowserData icon indicating copy to clipboard operation
HackBrowserData copied to clipboard

Compress options does not work, file remains locked??

Open ghost-ng opened this issue 3 years ago • 1 comments

I was trying to figure out why the compress option wasnt working for me (I could not find the zip), during searching I noticed that this error may be showing why the compress function isnt working?

[WARNING] [bookmark.go:130,Parse] sql: Scan error on column index 4, name "title": converting NULL to string is unsupported  
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_bookmark.csv success  
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_history.csv success  
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_download.csv success
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_localstorage.csv success  
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_cookie.csv success  
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_extension.csv success
[NOTICE] [browsingdata.go:65,Output] output to file results/firefox_7zcuz6y2_default_release_password.csv success
[ERROR] [main.go:66,func1] remove results/firefox_7zcuz6y2_default_release_bookmark.csv: The process cannot access the file 
because it is being used by another process.

I added log.Error statements after each error so I can see which err caused this:

this is the offending line: err = os.Remove(fileName)

[ERROR] [filetutil.go:166,CompressDir] remove results/firefox_7zcuz6y2_default_release_bookmark.csv: The process cannot access the file because it is being used by another process.

After adding more logging rules:

[ERROR] [filetutil.go:192,CompressDir] remove results/firefox_7zcuz6y2_default_release_bookmark.csv: The process cannot access the file because it is being used by another process.
[ERROR] [filetutil.go:192,CompressDir] remove results/firefox_7zcuz6y2_default_release_cookie.csv: The process cannot access the file because it is being used by another process.  
[ERROR] [filetutil.go:192,CompressDir] remove results/firefox_7zcuz6y2_default_release_download.csv: The process cannot access the file because it is being used by another process.
[ERROR] [filetutil.go:192,CompressDir] remove results/firefox_7zcuz6y2_default_release_extension.csv: The process cannot access the file because it is being used by another process.
[ERROR] [filetutil.go:192,CompressDir] remove results/firefox_7zcuz6y2_default_release_history.csv: The process cannot access the file because it is being used by another process.

ghost-ng avatar Aug 03 '22 01:08 ghost-ng

I threw in f.Close() on line 66, browsingdata.go and now it all works. Anyway, great job!

ghost-ng avatar Aug 03 '22 01:08 ghost-ng

fixed: https://github.com/moonD4rk/HackBrowserData/pull/156

moonD4rk avatar Aug 13 '22 07:08 moonD4rk