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

[BUG] Wordlist removal doesn't work after job stop #10

Closed
XazkerBoy opened this issue Mar 9, 2021 · 2 comments
Closed

[BUG] Wordlist removal doesn't work after job stop #10

XazkerBoy opened this issue Mar 9, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@XazkerBoy
Copy link

XazkerBoy commented Mar 9, 2021

Steps to reproduce:

  1. Upload new wordlist
  2. Start a new job with it (and any config)
  3. Stop or abort a job (at this point deleting no longer works)
  4. Try to delete the wordlist FROM DISK

Error in the console:
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit 'sBhh3SnBf9FBEkX8Kic4o4Ups_QXDIU8zyaoWBGk08A'. System.IO.IOException: The process cannot access the file 'C:\Users\Xazker\Desktop\OpenBullet2\UserData\Wordlists\e4492ed6-5f5b-43c3-a168-5e21198e8340.txt' because it is being used by another process. at System.IO.FileSystem.DeleteFile(String fullPath) at System.IO.File.Delete(String path) at OpenBullet2.Repositories.HybridWordlistRepository.Delete(WordlistEntity entity, Boolean deleteFile) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Repositories\HybridWordlistRepository.cs:line 64 at OpenBullet2.Pages.Wordlists.DeleteWordlist() in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Pages\Wordlists.razor.cs:line 165 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

Also, there is such a warning:
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100] Unhandled exception rendering component: The process cannot access the file 'C:\Users\Xazker\Desktop\OpenBullet2\UserData\Wordlists\e4492ed6-5f5b-43c3-a168-5e21198e8340.txt' because it is being used by another process. System.IO.IOException: The process cannot access the file 'C:\Users\Xazker\Desktop\OpenBullet2\UserData\Wordlists\e4492ed6-5f5b-43c3-a168-5e21198e8340.txt' because it is being used by another process. at System.IO.FileSystem.DeleteFile(String fullPath) at System.IO.File.Delete(String path) at OpenBullet2.Repositories.HybridWordlistRepository.Delete(WordlistEntity entity, Boolean deleteFile) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Repositories\HybridWordlistRepository.cs:line 64 at OpenBullet2.Pages.Wordlists.DeleteWordlist() in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Pages\Wordlists.razor.cs:line 165 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

Screenshot
https://prnt.sc/10gsacd

OS Information:

  • OS: Windows 10 LTSC
  • Browser: Mozilla Firefox 86.0
  • Version 0.1.0
@XazkerBoy XazkerBoy changed the title [BUG] Wordlist removal soesn't work after job stop [BUG] Wordlist removal doesn't work after job stop Mar 9, 2021
@Laiteux Laiteux added the bug Something isn't working label Mar 9, 2021
Laiteux added a commit that referenced this issue Mar 9, 2021
@Laiteux
Copy link
Contributor

Laiteux commented Mar 9, 2021

Thanks for your report!

My commit will fix the exact described issue (deleting after stop/abort), but deleting a wordlist while a job is running remains an issue.

@openbullet maybe we could prevent deleting a wordlist if a running job is using it?

@openbullet
Copy link
Owner

@Laiteux yes we can definitely do that

Laiteux added a commit that referenced this issue Mar 9, 2021
@Laiteux Laiteux closed this as completed in f1c352c Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants