Comments (11)
Maybe its better to handle this case by skipping reading files, not throw errors. @moonD4rk↳
Yes, it could be the issue. I will release a major update in the coming weeks and this particular ISSUSE will be resolved at the same time.
from hackbrowserdata.
@sheepdog0x3e Thanks Bro. The temporary solution is to disable ChromiumCookie
in DefaultChromium
. I will fix this issue as soon as possible.
from hackbrowserdata.
When the file C:\Users\Prisoner-Test\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies
is locked by other process, the following code will throw this error: [ERROR] [main.go:60,func1] open C:\Users\Prisoner-Test\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies: The process cannot access the file because it is being used by another process.
utils/fileutil/fileutil.go line98-108
func CopyFile(src, dst string) error {
s, err := os.ReadFile(src) // The programe can't read Cookies because the file is locked by other process
if err != nil {
return err
}
err = os.WriteFile(dst, s, 0o600)
if err != nil {
return err
}
return nil
}
Maybe its better to handle this case by skipping reading files, not throw errors.
@moonD4rk
from hackbrowserdata.
@sheepdog0x3e Yep, it seems that the reason is that the temporary Cookie files were not deleted. On which platform did this ISSUSE occur? Windows or macOS?
from hackbrowserdata.
The core reason for this issue is the file C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies
is locked by some process and the program doesn't have the priv to open this file.
I tried to copy this file mannually by using windows' copy /b "C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies" ".\cookie"
, but I got Process cannot access file because it is being used by another process
.
So I comment //case item.ChromiumCookie
to skip reading Chrome's cookies and delete the temp file cookie
manually.
(I find out that I can comment this line out then the program will not try to parse cookie. And I don't have to delete the temp file either)
var DefaultChromium = []Item{
ChromiumKey,
ChromiumPassword,
// ChromiumCookie,
ChromiumBookmark,
ChromiumHistory,
ChromiumDownload,
ChromiumCreditCard,
ChromiumLocalStorage,
ChromiumSessionStorage,
ChromiumExtension,
}
Maybe you should check if you have the priv to open target files first, if not, then continue to parse next item .
from hackbrowserdata.
我也遇到了这个问题
from hackbrowserdata.
+1
from hackbrowserdata.
BTW, I wonder why don't you throw errors in place so you can keep the actual line number for debugging? It took me quite a while to adrress this issue.
Finally I came up with a temp work around by commenting out these lines of code:
browingdata/browingdata.go
func (d *Data) addSources(items []item.Item) {
for _, source := range items {
switch source {
case item.ChromiumPassword:
d.sources[source] = &password.ChromiumPassword{}
// case item.ChromiumCookie:
// d.sources[source] = &cookie.ChromiumCookie{}
case item.ChromiumBookmark:
d.sources[source] = &bookmark.ChromiumBookmark{}
......
}
}
}
PS: It will leave a file called cookie
in the working directory. You must delete the file mannually when done.
from hackbrowserdata.
@sheepdog0x3e Yep, it seems that the reason is that the temporary Cookie files were not deleted. On which platform did this ISSUSE occur? Windows or macOS?
Windows.
from hackbrowserdata.
作者大哥,什么时候能解决这个问题
from hackbrowserdata.
Discuss the specific solution to this issue in this ISSUSE. 👇
from hackbrowserdata.
Related Issues (20)
- Feature Request: Support multiple files/folders to determine existence together.
- Feature Request: Replace the go-sqlite3 based by CGO with a pure GO sqlte3. HOT 3
- Feature: Refactor the logging module using the standard library's slog
- Chore: Update the default branch name to main branch.
- Deploy: Increase compilation and unit testing actions across multiple platforms
- Deploy: use goreleaser publish all go binary
- Feature: Replace the cli with flag to reduce the size of the command-line binary file.
- Feature Request: Reduce the size of binary files and remove the net module.
- Feature Request: Add more golangcilint linters
- Feature Request: Add github actions for typo check linter
- [BUG] Unable to export Chrome passwords in macOS Time Machine backup. HOT 7
- Feature Request: Optimize the templates for bug reports and feature requests to support yml.
- Feature Request: Provide multiple drivers for sqlite3, controlled through golang compilation options. HOT 1
- Feature Request: Add error handling when entering the system password incorrectly on macOS.
- Feature Request: Increase unit testing for folders walk.
- Feature Request: Handle the Firefox masterkey in the same way as initializing chromium. HOT 1
- Feature Request: Add encryption and testcase for crypto
- Feature Request: Increase the running speed of Github Actions runner.
- Bug: When failing to obtain the chromium masterkey, it is not possible to export unencrypted data.
- Feature Request: Optimize the logic of obtaining browser data. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackbrowserdata.