-
Notifications
You must be signed in to change notification settings - Fork 2.3k
xssrays not work ,report "Internal error while creating XSSRays scan on zombie with id aFG3YZuTYRpVfqiyF7ajKbR5BvXQ7J3KFtg1LugLI4HlgqdLlU3YZejw0xRvnpVygsnBmqRRUBi3ELGM (undefined method `id' for #<BeEF::Core::Models::HookedBrowser::ActiveRecord_Relation:0x0000557cd1e6a4a8" #1983
Description
Submit Issue
Verify first that your issue/request has not been posted previously:
- https://github.com/beefproject/beef/issues
- https://github.com/beefproject/beef/wiki/FAQ
Ensure you're using the latest version of BeEF.
Please do your best to provide as much information as possible. It will help substantially if you can enable and provide debugging logs with your issue. Instructions for enabling debugging logs are below:
- In the
config.yamlfile of your BeEF root folder set debug and client_debug (lines 11 & 13 respectively) totrue- If using a standard installation of
beef-xssthe root folder will typicaly be/usr/share/beef-xss
- If using a standard installation of
- Reproduce your error
- Retrieve your client-side logs from your browser's developer console (Ctrl + Shift + I)
- Retrieve your server-side logs from
~/.beef/beef.log - If using
beef-xss: Retrieve your service logs usingjournalctl -u beef-xss
Thank you, this will greatly aid us in identifying the root cause of your issue :)
If we request additional information and we don't hear back from you within a week, we will be closing the ticket off.
Feel free to open it back up if you continue to have issues.
Summary
Q: Please provide a brief summary of the issue that you experienced.
A: xssrays can not start. and i see error is this :
root@kalihost:~/osu_study/osu_beef/beef# ./beef
[ 5:05:25][] Browser Exploitation Framework (BeEF) 0.5.0.0-alpha-pre
[ 5:05:25] | Twit: @beefproject
[ 5:05:25] | Site: https://beefproject.com
[ 5:05:25] | Blog: http://blog.beefproject.com
[ 5:05:25] |_ Wiki: https://github.com/beefproject/beef/wiki
[ 5:05:25][] Project Creator: Wade Alcorn (@wadealcorn)
-- migration_context()
-> 0.0339s
[ 5:05:26][] BeEF is loading. Wait a few seconds...
[ 5:05:41][] 8 extensions enabled:
[ 5:05:41] | Network
[ 5:05:41] | Requester
[ 5:05:41] | Social Engineering
[ 5:05:41] | Proxy
[ 5:05:41] | Admin UI
[ 5:05:41] | XSSRays
[ 5:05:41] | Demos
[ 5:05:41] |_ Events
[ 5:05:41][] 305 modules enabled.
[ 5:05:41][] 3 network interfaces were detected.
[ 5:05:41][] running on network interface: 127.0.0.1
[ 5:05:41] | Hook URL: http://127.0.0.1:3000/hook.js
[ 5:05:41] |_ UI URL: http://127.0.0.1:3000/ui/panel
[ 5:05:41][] running on network interface: 10.73.157.194
[ 5:05:41] | Hook URL: http://10.73.157.194:3000/hook.js
[ 5:05:41] |_ UI URL: http://10.73.157.194:3000/ui/panel
[ 5:05:41][] running on network interface: 192.168.192.129
[ 5:05:41] | Hook URL: http://192.168.192.129:3000/hook.js
[ 5:05:41] |_ UI URL: http://192.168.192.129:3000/ui/panel
[ 5:05:41][] RESTful API key: babe2a590d10ff75ce22e675e519464c1ee02549
[ 5:05:41][] HTTP Proxy: http://127.0.0.1:6789
[ 5:05:41][] BeEF server started (press control+c to stop)
[ 5:06:15][!] Internal error while creating XSSRays scan on zombie with id aFG3YZuTYRpVfqiyF7ajKbR5BvXQ7J3KFtg1LugLI4HlgqdLlU3YZejw0xRvnpVygsnBmqRRUBi3ELGM (undefined method id' for #<BeEF::Core::Models::HookedBrowser::ActiveRecord_Relation:0x0000557cd18063a0> Did you mean? ids) [ 5:21:32][!] Internal error while creating XSSRays scan on zombie with id aFG3YZuTYRpVfqiyF7ajKbR5BvXQ7J3KFtg1LugLI4HlgqdLlU3YZejw0xRvnpVygsnBmqRRUBi3ELGM (undefined method id' for #BeEF::Core::Models::HookedBrowser::ActiveRecord_Relation:0x0000557cd1e6a4a8
Did you mean? ids)
Environment
Please identify the environment in which your issue occurred.
-
BeEF Version:
0.5.0.0-alpha-pre -
Ruby Version:
root@kalihost:~/osu_study/osu_beef/beef# ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux-gnu]
root@kalihost:~/osu_study/osu_beef/beef#
- Browser Details (e.g. Chrome v81.0):
版本 84.0.4147.89(正式版本) (64 位) - Operating System (e.g. OSX Catalina):
Win10
Configuration
Q: Have you made any changes to your BeEF configuration?
A: seems no。
Q: Have you enabled or disabled any BeEF extensions?
A: seems no, i attach it
Expected vs. Actual Behaviour
Expected Behaviour:
i can start xssrays
Actual Behaviour:
it do not work .
Steps to Reproduce
Please provide steps to reproduce this issue.
- In webUI , right click the hooked zombies, and click "lauch xssrays on hooked domain"
- we see error in server.
Additional Information
beef.log
g output can be retrieved by following the instructions towards the top of the issue template.