Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] invalid restore file (end) #934

Open
hndrbrm opened this issue Feb 25, 2024 · 2 comments
Open

[ERROR] invalid restore file (end) #934

hndrbrm opened this issue Feb 25, 2024 · 2 comments

Comments

@hndrbrm
Copy link

hndrbrm commented Feb 25, 2024

I use hydra with this script:
./hydra -V -l admin -x 1:6:a1 192.168.10.19 ftp
Then press keyboard Ctrl-C.
When try to resume its error:
[ERROR] invalid restore file (end)

I have read the similar issue, but i think its different.

When i use the debug it stop in the last step (step 12).

frogit@frogserver:~/thc-hydra$ ./hydra -d -R
Hydra v9.6dev (c) 2023 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

[INFORMATION] reading restore file ./hydra.restore
[DEBUG] reading restore file: Step 1 complete
[DEBUG] reading restore file: Step 2 complete
[DEBUG] run_debug 0, orig_debug 1
[DEBUG] reading restore file: Step 3 complete
[DEBUG] reading restore file: Step 4 complete
[DEBUG] reading restore file: Step 5 complete
[DEBUG] reading restore file: Step 6 complete
[DEBUG] reading restore file: Step 7 complete
[DEBUG] reading restore file: Step 8 complete
[DEBUG] reading restore file: Step 9 complete
[DEBUG] reading restore file: Step 10 complete
[DEBUG] reading restore file: Step 11 complete
[DEBUG] reading restore file: Step 12 complete
[ERROR] invalid restore file (end)
frogit@frogserver:~/thc-hydra$ 

I use hydra from the git (build it manually) in ubuntu server.

Heres the restore file.
hydra.restore.zip

My guess theres bug when parsing the restore file, such that the ending position is not on the ending of the restore file ('Hydra' token).

Note:
Previously i have use dictionary file, and the restore is working fine. This issue happened only if i use the -x options.
Are there any tool to simply generate the -x into txt file? So i could simply use the dictionary one.

@vanhauser-thc
Copy link
Owner

hmm ok, will look into this. sorry that this happened!

@tithobeelzbub
Copy link

tithobeelzbub commented Mar 11, 2024

I'm facing a similar issue. I've set up three Hydra sessions targeting different SSH ports, and I've stored their data in distinct folders to prevent any conflicts with hydra.restore. However, when I try to restore one of these sessions, it fails with the error message '[ERROR] invalid restore file (end)'.

:This error seems to occur consistently whenever Hydra runs for an extended period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants