Giter Club home page Giter Club logo

ui's Introduction

bettercap

Release Software License

This is the official bettercap's web UI.

Installation

Refer to bettercap's documentation.

Building from Sources

Assuming you have make, node and npm correctly installed, first clone the repo somewhere, build the source and install to /usr/local/share/bettercap/ui:

git clone https://github.com/bettercap/ui.git ~/ui
cd ~/ui
make deps
make build
sudo make install

License

This UI is made with ♥ by the dev team and it's released under the GPL 3 license.

ui's People

Contributors

buffermet avatar dependabot[bot] avatar evilsocket avatar guizzo avatar iamstoick avatar milesoberstadt avatar symbiansymoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ui's Issues

Login Button no response

Hello,

I am having an issue when starting http-ui. I get no response from when I hit the login button from the WEBUI. It just sits there.
I have bettercap and ui in the /usr/share/better directory and installed all prereqs.

[/usr/share/bettercap/ui]
└──╼ $ls
3rdpartylicenses.txt
assets
fa-brands-400.175ef492f87a05e2ce45.woff
fa-brands-400.24a77b8baa5b34fb5081.woff2
fa-brands-400.28c2e91df5676f8a615b.eot
fa-brands-400.85dcebc2b9d56a2b94f7.svg
fa-brands-400.8742c0293a67556fbb57.ttf
fa-regular-400.34e0db45ef15f5a05814.woff2
fa-regular-400.47758afd15884569fa98.svg
fa-regular-400.73e57f339e3e8574d0d4.eot
fa-regular-400.7599ecd0c99d05133229.ttf
fa-regular-400.c6e6643b688fe307651a.woff
fa-solid-900.26fdf2ddc0e845cc454b.ttf
fa-solid-900.cb45ce038f8d6ccf24a4.eot
fa-solid-900.e474ff3afacf902ab8f4.svg
fa-solid-900.ecafd67cb64dc8f4d064.woff
fa-solid-900.fb4ea3247aace8c1c8bc.woff2
favicon.ico
index.html
main.ec83a59338123ba3bb5d.js
polyfills.681b44b3f292a3819611.js
runtime.26209474bfa8dc87a77c.js
scripts.68228f7acaf48355d8cf.js
styles.92a454e3ed7c5bffbed3.css

I also changed the Caplet from the default username and password

Error: EACCES: permission denied, mkdir '/usr/share/bettercap/ui/node_modules/electron/.electron'

Getting permission error while running below command. same error occurred even for sudo user

kali@kali:/usr/share/bettercap/ui$ sudo make deps

installing dependencies ...

[email protected] postinstall /usr/share/bettercap/ui/node_modules/electron
node install.js

/usr/share/bettercap/ui/node_modules/electron/install.js:49
throw err
^

Error: EACCES: permission denied, mkdir '/usr/share/bettercap/ui/node_modules/electron/.electron'
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself.
npm WARN The package tar is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@angular/compiler-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Inventory notification

Your tool/software has been inventoried on Rawsec's CyberSecurity Inventory.

https://inventory.rawsec.ml/tools.html#bettercap%20web%20UI

What is Rawsec's CyberSecurity Inventory?

An inventory of tools and resources about CyberSecurity. This inventory aims to help people to find everything related to CyberSecurity.

  • Open source: Every information is available and up to date. If an information is missing or deprecated, you are invited to (help us).
  • Practical: Content is categorized and table formatted, allowing to search, browse, sort and filter.
  • Fast: Using static and client side technologies resulting in fast browsing.
  • Rich tables: search, sort, browse, filter, clear
  • Fancy informational popups
  • Badges / Shields
  • Static API
  • Twitter bot

More details about features here.

Note: the inventory is a FLOSS (Free, Libre and Open-Source Software) project.

Why?

  • Specialized websites: Some websites are referencing tools but additional information is not available or browsable. Make additional searches take time.
  • Curated lists: Curated lists are not very exhaustive, up to date or browsable and are very topic related.
  • Search engines: Search engines sometimes does find nothing, some tools or resources are too unknown or non-referenced. These is where crowdsourcing is better than robots.

Why should you care about being inventoried?

Mainly because this is giving visibility to your tool, more and more people are using the Rawsec's CyberSecurity Inventory, this helps them find what they need.

Badges

The badge shows to your community that your are inventoried. This also shows you care about your project and want it growing, that your tool is not an abandonware.

Feel free to claim your badge here: http://inventory.rawsec.ml/features.html#badges, it looks like that Rawsec's CyberSecurity Inventory, but there are several styles available.

Want to thank us?

If you want to thank us, you can help make the project better known by tweeting about it! For example: Twitter URL

So what?

That's all, this message is just to notify you if you care.

UI shows a blank page, no login prompt

Hi! I love your work and decided to try out the http-ui for the first time tonight and fell down a 3 hour rabbit hole. When I load 127.0.0.1:80 I get a blank screen. Checking the source, I see the exact contents of bettercap/ui/index.html so it is definitely loading the correct page.

Starting bettercap -caplet http-ui shows what it should (ie http.server starting on 127.0.0.1:80 and api.rest starting on 127.0.0.1:8081) Naturally I assume that means that I'm good to go, but it doesn't seem to start the ui-root app when I load the page.

Running Kali 5.5.0-amd64 on bare metal.
Bettercap v2.27.1
I have bettercap-ui installed (tried both apt and built from src)
I have already set up symblink to fix the /usr/local/share vs /usr/share/ issue and that got me from a 404 to a blank screen.

I know there is probably some more information and reports for some diag tests I could run that would be helpful to you, but it's 3:30am in my part of the world and I can't fathom what they might be, but I am happy to follow instructions if you need more!

Thanks!

Can't login with rest api credentials

Hi,
i have installed and started your ui with the following commands:

set api.rest.username admin
set api.rest.password adminpsw
api.rest on
set http.server.address 127.0.0.1
set http.server.path /Users/Fenix/hydra/dist/hydra
 http.server on

But when i try to login it apprear Unknow error.

image
image

Maybe i miss the link between api url and hydra?
Thanks

Caplet http-ui, bind address already in use

I hope this is the right place for this issue,
Im using linux mint (amd64) and trying to start bettercap.
If i'm trying to start bettercap with ~$ sudo bettercap -caplet http-ui,
im getting following error:

bettercap v2.28 (built for linux amd64 with go1.14.4) [type 'help' for a list of commands]

192.168.10.0/24 > 192.168.10.28  » [23:51:51] [sys.log] [inf] http.server starting on http://127.0.0.1:80
panic: listen tcp 127.0.0.1:8081: bind: address already in use

goroutine 27 [running]:
github.com/bettercap/bettercap/modules/api_rest.(*RestAPI).Start.func1()
	/build/bettercap-F2qCew/bettercap-2.28/modules/api_rest/api_rest.go:288 +0x309
created by github.com/bettercap/bettercap/session.(*SessionModule).SetRunning
	/build/bettercap-F2qCew/bettercap-2.28/session/module.go:281 x1ba

I also tried running bettercap from docker, otherprecompiled binaries and self compiled.
I tried running the https-ui caplet, which worked, but I got this error while trying to log in: cant cnnect to api
I found some similar issues in WSL (windows subsystem for linux) but I didnt found this issue with linux yet.
Any solution for this?

npm audit fix is creating deps

$ make deps
installing dependencies ...

[email protected] install /home/ma/ui/node_modules/node-sass
node scripts/install.js

Cached binary found at /home/ma/.npm/node-sass/4.12.0/linux-x64-64_binding.node

[email protected] postinstall /home/marui/node_modules/node-sass
node scripts/build.js

Binary found at /home/ma/ui/node_modules/node-sass/vendor/linux-x64-64/binding.node
Testing binary
Binary is fine

[email protected] postinstall /home/ma/ui/node_modules/electron
node install.js

npm WARN The package tar is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@angular/compiler-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1190 packages from 1371 contributors and audited 43175 packages in 105.833s
found 596 vulnerabilities (1 moderate, 595 high)
run npm audit fix to fix them, or npm audit for details

ma@os:~/ui$ npm audit fix
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN The package tar is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@angular/compiler-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

  • [email protected]
    removed 2 packages and updated 6 packages in 36.528s
    fixed 596 of 596 vulnerabilities in 43175 scanned packages

kishan

image
When I try to bettercap, it gets stuck at the above image with no prompt and any command I enter, I think, is being ignored. I am a total beginner. Any help is appreciated.
This is run on Ubuntu 20.04.
I am trying to do this on wifi.

ui - wifi wlan0 although selected was not working, had to re set it

Description of the bug or feature request

Environment

Please provide:

  • Bettercap version you are using ( bettercap -version ).
    2.21.1
  • OS version and architecture you are using.
    debian linux
  • Go version if building from sources.
    1.11
  • Command line arguments you are using.
    starting the ui
  • Caplet code you are using or the interactive session commands.
    http-ui

Steps to Reproduce

  1. open ui,, login
  2. go to wifi module, saw that the wlan0 is selected
  3. go to advanced, set the wifi.recon on
  4. error: eth0 interface cannot be used .
  5. go to the wifi module, rechoose the wlan0 from the dropdown
  6. go to advanced set again the wifi.recon on, no issue

it seems like although initially the wlan0 appeared, it was not working and i had to reselect it.

Mac Issue

/Users/my/.zprofile:2: no such file or directory: /opt/homebrew/bin/brew
   ~  /opt/local/bin/bettercap ; exit;  ✔  15:31:38 
bettercap v2.32.0 (built for darwin amd64 with go1.19.1) [type 'help' for a list of commands]

Permission Denied

Saving session...completed.

[Process completed]

shitty

this shit so fucking gay lol. it dont even work in kali or ANY os. all you fucking skiddy ass bettercap devs cant do shit right lol

Feature request : Android apk to control bettercap

Hi guizzo,

I opened an issue (here) in bettercap repo to request a new feature, and @yungtravla recommended me to contact you.

Bettercap is very suitable for use on small devices, like RP ZW, and i would love to easily use it on the field. The idea is to control bettercap through an android apk, like @eliddell1 made for his own proof of concept here. Your GUI is very cool IOT control throught a bigger screen, but maybe not adaptable for a smartphone.

In addition, it would be advantageous for sharing smartphone position with bettercap (GPS/WIFI/BTS location...) without add a specific GPS hardware.

What do you think about it? ... And do you plan to developp an android application? ;-)

Thanks for your work

http-ui correct login hangs and fills RAM

Environment

bettercap v2.28 (built for linux amd64 with go1.15)
Linux x86_64
go version go1.15 linux/amd64

  • Command line arguments you are using.
    -iface wlan0 -debug

  • Caplet code you are using or the interactive session commands.
    http-ui
    https-ui

  • Full debug output while reproducing the issue ( bettercap -debug ... ).

wlan0 » https-ui
[23:38:27] [sys.log] [inf] api.rest loading TLS key from /root/.bettercap-https.key.pem
[23:38:27] [sys.log] [inf] api.rest loading TLS certificate from /root/.bettercap-https.cert.pem
[23:38:27] [mod.started] api.rest
[23:38:27] [sys.log] [inf] https.server loading server TLS key from /root/.bettercap-https.key.pem
[23:38:27] [sys.log] [inf] https.server loading server TLS certificate from /root/.bettercap-https.cert.pem
[23:38:27] [mod.started] https.server
[23:38:27] [sys.log] [inf] api.rest api server starting on https://0.0.0.0:8083
wlan0 » 2020/11/11 23:38:32 http: TLS handshake error from [::1]:48492: remote error: tls: unknown certificate
[23:38:32] [sys.log] [dbg] https.server [ GET localhost/
wlan0 » [23:38:32] [sys.log] [dbg] https.server [ GET localhost/styles.92a454e3ed7c5bffbed3.css
wlan0 » [23:38:32] [sys.log] [dbg] https.server [ GET localhost/runtime.26209474bfa8dc87a77c.js
wlan0 » [23:38:32] [sys.log] [dbg] https.server [ GET localhost/polyfills.681b44b3f292a3819611.js
wlan0 » [23:38:32] [sys.log] [dbg] https.server [ GET localhost/scripts.68228f7acaf48355d8cf.js
wlan0 » [23:38:32] [sys.log] [dbg] https.server [ GET localhost/main.ec83a59338123ba3bb5d.js
wlan0 » [23:38:32] [sys.log] [dbg] https.server [ GET localhost/assets/images/logo.png
wlan0 » [23:38:33] [sys.log] [dbg] https.server [ GET localhost/assets/images/logo.png
wlan0 » 2020/11/11 23:38:35 http: TLS handshake error from [::1]:41308: remote error: tls: unknown certificate
wlan0 » ^C
Are you sure you want to quit this session? y/n y
^C
Stopping modules and cleaning session state ...
`

Steps to Reproduce

  1. Run bettercap -iface wlan0 -debug
  2. Execute: https-ui
  3. Surf to https://localhost
  4. Enter correct username and password and rest address from https-ui.cap and hit "Login"
  5. Nothing changes in the browser, RAM quickly gets filled up.

It happens the same with http-ui caplet.

Ran bettercap -eval "caplets.update; ui.update; q" before.

No rule to make target 'deps'. Stop. make: ng: Command not found make: *** [Makefile:7: build] Error 127 cp: cannot stat 'dist/ui': No such file or directory make: *** [Makefile:16: install] Error 1

Can someone help me out with these errors? I can these commands first.

curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install -y nodejs
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
apt-get install

npm

Linux kali-pi 4.14.93-Re4son-v7+ #1 SMP Thu Jan 24 12:44:19 AEDT 2019 armv7l GNU/Linux

git clone https://github.com/bettercap/ui.git /ui
Cloning into '/root/ui'...
remote: Enumerating objects: 227, done.
remote: Counting objects: 100% (227/227), done.
remote: Compressing objects: 100% (171/171), done.
remote: Total 4087 (delta 151), reused 114 (delta 55), pack-reused 3860
Receiving objects: 100% (4087/4087), 10.51 MiB | 3.46 MiB/s, done.
Resolving deltas: 100% (1800/1800), done.
Checking out files: 100% (1722/1722), done.
root@kali-pi:
# cd /ui
root@kali-pi:
/ui# make deps
make: *** No rule to make target 'deps'. Stop.
root@kali-pi:/ui# make build
buiding ui ...
make: ng: Command not found
make: *** [Makefile:7: build] Error 127
root@kali-pi:
/ui# sudo make install
installing to /usr/local/share/bettercap/ui ...
cp: cannot stat 'dist/ui': No such file or directory
make: *** [Makefile:16: install] Error 1
root@kali-pi:~/ui#

404 Page not found.

any solutions or ideas?
im just starting bettercap with bettercap -caplet http-ui. Both https and http get 404

Error displaying UI after logon

Error is using v1.3.0 of the UI, kali linux 2022.3 installed direct. Local tested on KALI machine, online tested on my Windows machine using Chrome.

Local and online versions of the UI have the same error. It persists and repeats until the program is terminated or crashes.

ERROR TypeError: Cannot read properties of undefined (reading 'devices')
    at n.updateSession (main.ec83a59338123ba3bb5d.js:1:727637)
    at new n (main.ec83a59338123ba3bb5d.js:1:726698)
    at ji (main.ec83a59338123ba3bb5d.js:1:130429)
    at Ai (main.ec83a59338123ba3bb5d.js:1:129156)
    at po (main.ec83a59338123ba3bb5d.js:1:140679)
    at Object.oo [as createEmbeddedView] (main.ec83a59338123ba3bb5d.js:1:139389)
    at t.createEmbeddedView (main.ec83a59338123ba3bb5d.js:1:123753)
    at n.createEmbeddedView (main.ec83a59338123ba3bb5d.js:1:120435)
    at n._updateView (main.ec83a59338123ba3bb5d.js:1:184730)
    at n.set [as ngIf] (main.ec83a59338123ba3bb5d.js:1:184135)

I have done a full removal and re-install of bettercap and the ui caplet 3 times using CLI to make sure it was uncorrupted.

I am using CLI apt install bettercap after updating the list of available programs to install it. Then using sudo bettercap -eval "caplets.update; ui.update; q" to install the ui caplet.

I also tried ui.update while bettercap was already running no difference.

Let me know if you need any more info or need me to run tests.

Attached is a screen snip of the webpage after logon.
error-bettercap-ui

UI Authentication Failure

After starting the UI with sudo bettercap -caplet https-ui, I attempted to login using the default credentials pwnagotchi:pwnagotchi. The UI returns 401 OK: wrong credentials and the following error is logged: [20:11:46] [sys.log] [war] api.rest Unauthorized authentication attempt from 10.0.0.1:56223 to /api/session?from=

Unauthorized access despite having introduced right credentials

Hello.

I've setup Hydra as Readme says, with "pepe" user and "1234 password. But when I want to log in, a red ballon appears with the message "Unkown error".

Looking at Bettercap console I can see the message "Unauthorized authentication attempt from xxxx"

Looking at "Developer tools" in my Firefox client I can see offending request gives an 401 error, has the method OPTIONS and want to go to http://bettercapIp:8081/api/session url.

Thanks

PD: I've seen #2 . i've just opened this issue for reference

variable search bar for the advanced tab

Just checking if this would be appreciated/isn't already being worked on:

A search bar, similar to the search bar that lets us filter logs, could make it easier to find variables in the advanced tab, rather than having to scroll or CTRL+F :)

HID Inject set default language / keyboard layout

Description of the feature request
Set the default keyboard layout for the "Over-the-Air Ducky Script"

Environment
Debian 9.9 stretch i686 (Running on a fitlet2 mini PC)
Bettercap Ui 1.3.0 and Bettercap 2.23
Go version 1.12.3 linux/amd64

Steps to Reproduce
Start the HID module, wait for a target to show up, right click on the Address and select Inject, there in the popup the default keyboardlayout is set to US - I would like to have it altered permanently to DK

I cant find any where to do that - is it a missing setting or am I missing something ?

Expected behavior:
In the Advanced menu under the "hid" Parameters i would like to see a Layout setting.

Actual behavior:
The setting is missing

Screenshot from 2019-06-21 22-01-30

Screenshot from 2019-06-21 22-13-26

[Request] Device Traffic History

Under the LAN tab in the ui can you please add a history drop down section under each device.

Because, when using bettercap on networks with a lot of traffic it can be hard to pick out useful info as it can get lost in all the events, thanks.

Events list is always empty

The events tab of the UI is always empty.
I can see events scrolling in the interactive terminal session.
There are errors in my Browser console, see below.

Environment

  • Bettercap: v2.28
  • UI: 1.3.0
  • OS: Kali Linux 2020.4, amd64
  • Go: 1.15.6
  • Browser: Chrome 87, also tried Firefox. Cleared cache on both.
  • Command line arguments: sudo /usr/local/bin/bettercap-2.28 -caplet http-ui -iface wlan0mon -debug
  • Console errors
main.665e4bd38af1922bb9c3.js:1 ERROR TypeError: Cannot read property 'tag' of null
    at Object.updateRenderer (main.665e4bd38af1922bb9c3.js:1)
    at Object.updateRenderer (main.665e4bd38af1922bb9c3.js:1)
    at fo (main.665e4bd38af1922bb9c3.js:1)
    at xo (main.665e4bd38af1922bb9c3.js:1)
    at wo (main.665e4bd38af1922bb9c3.js:1)
    at fo (main.665e4bd38af1922bb9c3.js:1)
    at xo (main.665e4bd38af1922bb9c3.js:1)
    at Co (main.665e4bd38af1922bb9c3.js:1)
    at fo (main.665e4bd38af1922bb9c3.js:1)
    at xo (main.665e4bd38af1922bb9c3.js:1)
_e @ main.665e4bd38af1922bb9c3.js:1
n.handleError @ main.665e4bd38af1922bb9c3.js:1
(anonymous) @ main.665e4bd38af1922bb9c3.js:1
e.invoke @ polyfills.681b44b3f292a3819611.js:1
t.run @ polyfills.681b44b3f292a3819611.js:1
n.runOutsideAngular @ main.665e4bd38af1922bb9c3.js:1
n.tick @ main.665e4bd38af1922bb9c3.js:1
(anonymous) @ main.665e4bd38af1922bb9c3.js:1
e.invoke @ polyfills.681b44b3f292a3819611.js:1
onInvoke @ main.665e4bd38af1922bb9c3.js:1
e.invoke @ polyfills.681b44b3f292a3819611.js:1
t.run @ polyfills.681b44b3f292a3819611.js:1
n.run @ main.665e4bd38af1922bb9c3.js:1
next @ main.665e4bd38af1922bb9c3.js:1
r @ main.665e4bd38af1922bb9c3.js:1
t.__tryOrUnsub @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
t._next @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
t.emit @ main.665e4bd38af1922bb9c3.js:1
We @ main.665e4bd38af1922bb9c3.js:1
Ke @ main.665e4bd38af1922bb9c3.js:1
onInvokeTask @ main.665e4bd38af1922bb9c3.js:1
e.invokeTask @ polyfills.681b44b3f292a3819611.js:1
t.runTask @ polyfills.681b44b3f292a3819611.js:1
t.invokeTask @ polyfills.681b44b3f292a3819611.js:1
invoke @ polyfills.681b44b3f292a3819611.js:1
n.args.<computed> @ polyfills.681b44b3f292a3819611.js:1
polyfills.681b44b3f292a3819611.js:1 GET http://192.168.50.81:8081/api/events?from=&n=25 400 (Bad Request)
_ @ polyfills.681b44b3f292a3819611.js:1
e.scheduleTask @ polyfills.681b44b3f292a3819611.js:1
onScheduleTask @ polyfills.681b44b3f292a3819611.js:1
e.scheduleTask @ polyfills.681b44b3f292a3819611.js:1
t.scheduleTask @ polyfills.681b44b3f292a3819611.js:1
t.scheduleMacroTask @ polyfills.681b44b3f292a3819611.js:1
d @ polyfills.681b44b3f292a3819611.js:1
(anonymous) @ polyfills.681b44b3f292a3819611.js:1
M.a.<computed> @ polyfills.681b44b3f292a3819611.js:1
(anonymous) @ main.665e4bd38af1922bb9c3.js:1
n._trySubscribe @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
(anonymous) @ main.665e4bd38af1922bb9c3.js:1
W @ main.665e4bd38af1922bb9c3.js:1
t._innerSub @ main.665e4bd38af1922bb9c3.js:1
t._tryNext @ main.665e4bd38af1922bb9c3.js:1
t._next @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
(anonymous) @ main.665e4bd38af1922bb9c3.js:1
n._trySubscribe @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
n.call @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
n.call @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
n.call @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
n.call @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
n.call @ main.665e4bd38af1922bb9c3.js:1
n.subscribe @ main.665e4bd38af1922bb9c3.js:1
(anonymous) @ main.665e4bd38af1922bb9c3.js:1
W @ main.665e4bd38af1922bb9c3.js:1
t._innerSub @ main.665e4bd38af1922bb9c3.js:1
t._next @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
t.notifyNext @ main.665e4bd38af1922bb9c3.js:1
t._next @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
t.__tryOrUnsub @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
t._next @ main.665e4bd38af1922bb9c3.js:1
t.next @ main.665e4bd38af1922bb9c3.js:1
o @ main.665e4bd38af1922bb9c3.js:1
t._execute @ main.665e4bd38af1922bb9c3.js:1
t.execute @ main.665e4bd38af1922bb9c3.js:1
t.flush @ main.665e4bd38af1922bb9c3.js:1
e.invokeTask @ polyfills.681b44b3f292a3819611.js:1
onInvokeTask @ main.665e4bd38af1922bb9c3.js:1
e.invokeTask @ polyfills.681b44b3f292a3819611.js:1
t.runTask @ polyfills.681b44b3f292a3819611.js:1
t.invokeTask @ polyfills.681b44b3f292a3819611.js:1
invoke @ polyfills.681b44b3f292a3819611.js:1
n.args.<computed> @ polyfills.681b44b3f292a3819611.js:1
Show 24 more frames
  • Full debug output while reproducing the issue ( bettercap -debug ... ).
└─$ sudo /usr/local/bin/bettercap-master0110 -caplet http-ui -debug
bettercap v2.28 (built for linux amd64 with go1.15.6) [type 'help' for a list of commands]

192.168.0.0/16 > 192.168.50.81  » [12:02:20] [sys.log] [dbg] FindGateway(eth0) [cmd=ip opts=[route] parser=^(default|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\svia\s([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\sdev\s(\S+).*$]
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [sys.log] [dbg] FindGateway(eth0) output:
default via 192.168.50.1 dev eth0 proto dhcp metric 100 
192.168.0.0/16 dev eth0 proto kernel scope link src 192.168.50.81 metric 100
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [sys.log] [dbg] FindGateway(eth0) line 'default via 192.168.50.1 dev eth0 proto dhcp metric 100' matched with [default via 192.168.50.1 dev eth0 proto dhcp metric 100 default 192.168.50.1 eth0]
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [sys.log] [dbg] gateway is 192.168.50.1[0c:9d:92:02:63:50]
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [session.started] {session.started 2021-01-10 12:02:20.308179564 -0500 EST m=+0.096551474 <nil>}
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [mod.started] events.stream
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [mod.started] api.rest
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [mod.started] http.server
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [sys.log] [inf] api.rest api server starting on http://0.0.0.0:8081
192.168.0.0/16 > 192.168.50.81  » [12:02:20] [sys.log] [inf] http.server starting on http://0.0.0.0:80
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/styles.92a454e3ed7c5bffbed3.css
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/polyfills.681b44b3f292a3819611.js
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/scripts.68228f7acaf48355d8cf.js
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/runtime.26209474bfa8dc87a77c.js
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/main.ec83a59338123ba3bb5d.js
192.168.0.0/16 > 192.168.50.81  » [12:02:31] [sys.log] [dbg] http.server 192.168.50.138 GET 192.168.50.81/assets/images/logo.png
192.168.0.0/16 > 192.168.50.81  »  

Steps to Reproduce

  1. Install latest version of pre-compiled bettercap (v2.28)
  2. Install UI, via ui.update
  3. Start bettercap
  4. Turn on http.server, pointed at the ui
  5. Load the ui in web browser (tried Chrome and Firefox)
  6. Login and look at the events tab.

Expected behavior:
List of events populating, just as in the interactive console.

Actual behavior:
Events list stays empty.

stucked on login page of web ui

  • Bettercap version 2.28
  • OS version debian 5.7.6 architecture amd64
  • Go version go1.15.6
  • Caplet http-ui
  • Full debug output
[21:24:35] [sys.log] [dbg] FindGateway(wlan0) [cmd=ip opts=[route] parser=^(default|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\svia\s([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\sdev\s(\S+).*$]
[21:24:35] [sys.log] [dbg] FindGateway(wlan0) output:
default via 192.168.0.1 dev wlan0 proto dhcp metric 600 
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.122 metric 600
[21:24:35] [mod.started] api.rest
[21:24:35] [sys.log] [dbg] gateway is 192.168.0.1[50:0f:f5:e3:b8:d0]
192.168.0.0/24 > 192.168.0.122  » [21:24:35] [mod.started] http.server
192.168.0.0/24 > 192.168.0.122  » [21:24:35] [mod.started] api.rest
192.168.0.0/24 > 192.168.0.122  » [21:24:35] [sys.log] [inf] http.server starting on http://127.0.0.1:80
192.168.0.0/24 > 192.168.0.122  » [21:24:35] [sys.log] [inf] api.rest api server starting on http://127.0.0.1:8081
192.168.0.0/24 > 192.168.0.122  » [21:24:35] [mod.started] http.server
192.168.0.0/24 > 192.168.0.122  » [21:24:35] [sys.log] [inf] http.server starting on http://127.0.0.1:80
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/runtime.26209474bfa8dc87a77c.js
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/polyfills.681b44b3f292a3819611.js
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/main.ec83a59338123ba3bb5d.js
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/scripts.68228f7acaf48355d8cf.js
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/styles.92a454e3ed7c5bffbed3.css
192.168.0.0/24 > 192.168.0.122  » [21:24:50] [sys.log] [dbg] http.server 127.0.0.1 GET 127.0.0.1/assets/images/logo.png
192.168.0.0/24 > 192.168.0.122  »  

Steps to Reproduce

  1. launch web ui with : sudo bettercap -caplet http-ui
  2. connect to 127.0.0.1
  3. enter credentials ( for testing user, pass)
  4. click on "login"

Expected behavior:
after install the last realease of golang and bettercap , i wanted to try the bettercap's ui

Actual behavior:
i'm stuck on login page , nothing happened

i hope give a complete report , thanks for your help
and sorry for my bad english

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.