How to Fix bettercap "E Unable to locate package" or kali Linux 2.0


How to Fix bettercap "E Unable to locate package" or kali Linux 2.0

Bettercap when you installation kali linux some like of error message “E Unable to locate package and apt problem” the different type of fix replacement the root kali linux etc/apt/sources.txt but still same problem.

This should download the list files from the repos in /etc/apt/sources.list so that apt-get install knows what packages to look for
Here are a few optional repos you can go ahead and add to the bottom of your sources.list.

So some command kali:

root@kali:~# sudo apt-get install update

root@kali:~# sudo apt-get update && upgrade

root@kali:~# apt-get install bettercap


Check your version the command bettercap –v and ruby-v its check to the version kali linux VMware

root@kali:~# bettercap –v

.
What is Bettercap?

Bettercap is a complete, modular, portable and easily extensible MITM tool and framework with every kind of diagnostic and offensive feature you could need in order to perform a man in the middle attack. It is created by Simone Margaritelli

Usage: bettercap [options]

PROXYING:

TCP:

--tcp-proxy                  Enable TCP proxy ( requires other --tcp-proxy-* options to be specified ).
--tcp-proxy-module MODULE    Ruby TCP proxy module to load.
--tcp-proxy-port PORT        Set local TCP proxy port, default to 2222 .
--tcp-proxy-upstream ADDRESS:PORT
Set TCP proxy upstream server address and port.
--tcp-proxy-upstream-address ADDRESS
Set TCP proxy upstream server address.
--tcp-proxy-upstream-port PORT
Set TCP proxy upstream server port.

HTTP:

--proxy                      Enable HTTP proxy and redirects all HTTP requests to it, default to false.

--proxy-port PORT            Set HTTP proxy port, default to 8080.

--allow-local-connections    Allow direct connections to the proxy instance, default to false.
--no-sslstrip                Disable SSLStrip.

--log-http-response          Log HTTP responses.

--no-http-logs               Suppress HTTP requests and responses logs.

--proxy-module MODULE        Ruby proxy module to load, either a custom file or one of the following: injecthtml, injectjs, redirect, injectcss.

--http-ports PORT1,PORT2     Comma separated list of HTTP ports to redirect to the proxy, default to 80.
--proxy-upstream-address ADDRESS
If set, only requests coming from this server address will be redirected to the HTTP/HTTPS proxies.

HTTPS:

--proxy-https                Enable HTTPS proxy and redirects all HTTPS requests to it, default to false.
--proxy-https-port PORT      Set HTTPS proxy port, default to 8083.
--proxy-pem FILE             Use a custom PEM CA certificate file for the HTTPS proxy, default to /root/.bettercap/bettercap-ca.pem .

--https-ports PORT1,PORT2    Comma separated list of HTTPS ports to redirect to the proxy, default to 443.

CUSTOM:

--custom-proxy ADDRESS       Use a custom HTTP upstream proxy instead of the builtin one.

--custom-proxy-port PORT     Specify a port for the custom HTTP upstream proxy, default to 8080.

--custom-https-proxy ADDRESS Use a custom HTTPS upstream proxy instead of the builtin one.

--custom-https-proxy-port PORT

Specify a port for the custom HTTPS upstream proxy, default to 8083.

--custom-redirection RULE    Apply a custom port redirection, the format of the rule is PROTOCOL

ORIGINAL_PORT NEW_PORT. For instance TCP 21 2100 will redirect all TCP traffic going to port 21, to port 2100.


SERVERS:

--httpd                      Enable HTTP server, default to false.
--httpd-port PORT   Set HTTP server port, default to 8081.
--httpd-path PATH   Set HTTP server path, default to ./ .
--dns FILE               Enable DNS server and use this file as a hosts resolution table.
--dns-port PORT      Set DNS server port, default to 5300.


Share this

Related Posts

Previous
Next Post »