openbullet / OpenBullet2

OpenBullet reinvented
https://docs.openbullet.dev/
MIT License
1.78k stars 479 forks source link

Shutdown button #503

Open rockyd3vil opened 3 years ago

rockyd3vil commented 3 years ago

Need a shut down button. To close the OB from web interface. Need this for auto-saving all user data at that particualar moment.

If I'm pressed ctrl + c on cmd prompt then it closes but if i started again then hits and tochecks are gone in jobs tab. Need backup for them.

and how to reset the Job ID to 1. and remove that permission to copy data on jobs tab and in Hits tab. ( should work on http other than https ) ( may be put a tick box in OB settings)

Tor proxy is showing fail in proxy check but works in Jobs. "Enable logging in the job viewer page" move this to down of the page I mean in Job task.

JReming85 commented 3 years ago

They get moved to the hits db. If your really pressed about it, have it set to the db + a file

rockyd3vil commented 3 years ago

They get moved to the hits db. If your really pressed about it, have it set to the db + a file

yea both I selected even all my hits are gone. no where they are saved. to avoid that need backup feature. the shutdown button helps.

JReming85 commented 3 years ago

Then I think you might be having more issues if its not saving anything.

It will auto save to the DB the moment it hits something, be it Success, Custom, or Tocheck. Same goes for file.

If your saying its not saving anything at all then you have a completely different problem to solve

rockyd3vil commented 3 years ago

Issue with OB2. I reinstalled and tried myself still same they are unble to save in Database. to file because linux path is / but windows path is \ . may be here messed up.

rockyd3vil commented 3 years ago

proofs : Job image hits tab with no filters image

some problem regarding proxies also. I have checked all proxies image but in Proxies menu image

it should show remaining in not working. But they aren't.

And sometimes when I'm starting Job it pops error regarding wordlist type not supported. both I wordlist type is credentials even it pops.

JReming85 commented 3 years ago

The proxy totals are a known issue and there already is a ticket for them.

They will still update (individual proxy) the status when you reload the page. The delete all non-working will work regardless of reloading the page as well/.

JReming85 commented 3 years ago

I also just installed OB2 on one of my spare linux boxes running Ubuntu 20.04.3 LTS server image

Imported a config and a working wordlist and tested it.

It saved every hit to the DB as it found them as well as to the file. I then CTRL-C and reran OB2 and they were still in the DB and files.

image

What are you typing in the file path exactly?

rockyd3vil commented 3 years ago

What are you typing in the file path exactly? nothing I'm typing their . 2 ways I tried i.) normal without any change not saving anything. ii.) I added "/" then it worked .

(ii) happened after reinstalling OB2 and again when I restarted the OB2 from then it is start working. untill then it is not worked. Now after few reinstalls and restarts it is working. IDK why it happens. when I raised this issue it never saved anywhere and not even send to telegram bot too. Now it is working. I don't know how and seems like some remote operations from you. ! hahaha

another errors are popping proxies group is not suitable for this job. and wordlist type is not matched with the current job.

Now for me the saving issue is cleared. but you have to look why it is happening and after few days it may encounter again.

Even need a select all and copy option in jobs itself. unless I lost all my hits. huge loss because of captchas. remove the https problem for copying.

rockyd3vil commented 3 years ago

why it pops ? image

JReming85 commented 3 years ago

It says right in that window, read the message

rockyd3vil commented 3 years ago

I don't have any memory problem I have 100GB free space still it pops. in VPS.

And if possible add combined config. I mean normal + puppeter image add here selenium and normal. so that both can write in 1 config. only if possible. just my request.

rockyd3vil commented 3 years ago

can you please add any button to expand this. image

openbullet commented 3 years ago

I don't have any memory problem I have 100GB free space still it pops. in VPS.

With "memory" we usually mean the RAM, not the hard drive space. Maybe you have 2 or 4 GB RAM in your VPS and it's not enough to properly execute OB2.

can you please add any button to expand this.

You can refresh the page using F5 or you can drag the bottom-right corner of the text area (I would prefer the refresh, takes less time).

rockyd3vil commented 3 years ago

With "memory" we usually mean the RAM, not the hard drive space. Maybe you have 2 or 4 GB RAM in your VPS and it's not enough to properly execute OB2. I have 8GB space. ok leave that... anyway.. You can refresh the page using F5 or you can drag the bottom-right corner of the text area (I would prefer the refresh, takes less time). If long source code then how to view that..

what about the shutdown button in UI.

openbullet commented 3 years ago

The shutdown button has nothing to do with this. Basically if there is not enough RAM, OB2 will not be able to save hits to the database and hence you lose them. Please consider using a file system hit output instead of database if you're having RAM issues. Also did you make sure to disable "bot log" as that's the main cause of RAM starvation?

rockyd3vil commented 3 years ago

On new version again hits to database and to file, to anything not even telegram bot. is not working. image I used save to database and to a file. image image the filter I made is I used for above config.. not issue if that.

openbullet commented 3 years ago

@rockyd3vil can you show the ram usage in the task manager when the issue happens please?

rockyd3vil commented 3 years ago

@rockyd3vil can you show the ram usage in the task manager when the issue happens please?

I disabled the bot logging already yesterday and my ram is 8GB , it occupies only 600MB.

After restarting few times it is working. ( ~3 restarts )

JReming85 commented 3 years ago

For some reason I originally thought you installed on linux but windows works fine as well for my main setup running 24/7.

The issue you are having is most likely because its running out of ram or vram. Check your RAM usage and if need be expand your Paging file (VRAM)

https://www.tomshardware.com/news/how-to-manage-virtual-memory-pagefile-windows-10,36929.html

Good rule of thumb on vram/paging is RAM * 1.5

rockyd3vil commented 3 years ago

still saving to database problem not resolved ?

openbullet commented 3 years ago

@rockyd3vil if the issue is still open then it means it wasn't solved yet. Asking for updates is not going to magically make it resolve faster.