beefproject/beef

Hook.js problem

Closed this issue · 12 comments

I got some problem in hooking browsers.

  1. When i try to hook a browser with http://xxx:3000/hook.js it seems me
    Screenshot_20241026_235309

  2. When i execute create popup under it seems me created successful but when i move to another page that browser goes offline.

  3. I used auto run commands, it seems me blank results
    Screenshot_20241027_001022

  4. When i use https://ngrok:443/ui/panel i can't login there. Its all same to http://xxx:3000/ui/panel but i can login in http://xxx:3000/ui/panel but can't in https://ngrok:443/ui/panel. When i enter username and pass and press login ngrok page don't say anything and seems me that same page

I'll be very thankful if someone helps me to solve those problem.

Thank you.

  1. Correct
  2. Was a popunder window created?
  3. Does the command normally return results when not run using autorun?
  4. Set allow_reverse_proxy: true - https://github.com/beefproject/beef/wiki/Using-BeEF-With-NGROK
  1. But it don't hook the browser, i am using /butcher/index.html for hooking
  2. Nope in Android but i didn't tryied in pc
  3. Yeah.
  4. Done but same problem.
video_20241028_003507_edit.mp4

Screenshot_20241028_004009

  1. But it don't hook the browser, i am using /butcher/index.html for hooking
  2. Nope in Android but i didn't tryied in pc
  3. Yeah.
  4. Done but same problem.

video_20241028_003507_edit.mp4

Screenshot_20241028_004009

  1. Correct. Try the demo page instead.
  2. true not false
  1. Correct. Try the demo page instead.
  2. true not false

1.Oh. I used it. Its same.
2. Tnx.
3. What about popup under+ browser goes offline?
4. What about autorun commands seeing blank.

Here is a video of popup under error

lv_0_20241029005804.1.mp4
  1. What about popup under+ browser goes offline?

If all hooked tabs/windows are closed the hook will be lost.

  1. What about autorun commands seeing blank.

The popunder_window module should return at least one message to BeEF with beef.net.send:

beef.debug("[Create Pop-Under] Creating window '" + popunder_name + "' for '" + popunder_url + "'");
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Pop-under window requested');
try {
window.open(popunder_url,popunder_name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=1,height=1,left='+screen.width+',top='+screen.height+'').blur();
window.focus();
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Pop-under window successfully created!', beef.are.status_success());
} catch(e) {
beef.debug("[Create Pop-Under] Could not create pop-under window");
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Pop-under window was not created', beef.are.status_error());
}

If all hooked tabs/windows are closed the hook will be lost.

But this tab is not closed. Watch my video here I have clearly given here when I moved from that page to another page in the same tab. But still my connection is lost

  1. What about autorun commands seeing blank.

But it still seems blank.

Screenshot_20241027_001022

If all hooked tabs/windows are closed the hook will be lost.

But this tab is not closed. Watch my video here I have clearly given here when I moved from that page to another page in the same tab. But still my connection is lost

Same thing.

If all hooked tabs/windows are closed the hook will be lost.

But this tab is not closed. Watch my video here I have clearly given here when I moved from that page to another page in the same tab. But still my connection is lost

Same thing.

Bro but isn't there is any way to make my connection established with this tab or browser like when the browser gets close, it'll saw offline and as the browser opens, it'll automatically establish the connection.

Bonus Problem:
When I hook a new browser it should show browser logo next to browser ip like if I hook google chrome browser it should show next to ip but it doesn't.

IMG_20241101_085301

Bro but isn't there is any way to make my connection established with this tab or browser like when the browser gets close, it'll saw offline and as the browser opens, it'll automatically establish the connection.

Persistence modules.

Bonus Problem:
When I hook a new browser it should show browser logo next to browser ip like if I hook google chrome browser it should show next to ip but it doesn't.

The browser type/version was not detected. The version may be too new. Update BeEF.

Bro but isn't there is any way to make my connection established with this tab or browser like when the browser gets close, it'll saw offline and as the browser opens, it'll automatically establish the connection.

Persistence modules.
I used it. Plz watch my video that i've sent before.

Bonus Problem:
When I hook a new browser it should show browser logo next to browser ip like if I hook google chrome browser it should show next to ip but it doesn't.

The browser type/version was not detected. The version may be too new. Update BeEF.

How?

Please join the BeEF discord to discuss this issue. Someone there might be able to help https://discord.gg/ugmKmHarKc

No ones replying. I msged in general. Come there.