Bettercap: Is it possible to write the output of events.stream to a file?

Created on 12 Mar 2018  Â·  7Comments  Â·  Source: bettercap/bettercap

Prerequisites

  • [x] I read the README.
  • [x] I am running the latest stable version.
  • [x] I already searched other issues to see if this problem was already reported.
  • [x] I understand I don't necessarily have to paste this Prerequisites section in the issue.

Description

Write events.stream to a file

Environment

Please provide:

  • Bettercap 2.1
  • Raspbian 9 (stretch)
  • Go 1.8 linux/arm
  • wifi.recon on
    ble.recon on
    net.sniff on

Is it possible to save the output to a file? I know net.sniff supports pcap but I would like to capture the ble and wifi traffic to a file as well.

Thank you

♥ ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY ♥

new feature request

Most helpful comment

@robertdavidgraham the events.stream module starts automatically, try switching it off before setting the output destination: -eval "events.stream off; set events.stream.output ~/bettercap-events.log; events.stream on; net.sniff on"

All 7 comments

mmm not yet :)

Now it is:

bettercap -no-colors -eval "set events.stream.output ~/bettercap-events.log"

( Personally I don't use -no-colors as I like to replay the events with full coloring, but you can use it if you want :) )

See https://github.com/bettercap/bettercap/wiki/events.stream

Thank you sir. Going forward I will expect all my requests to be completed in a timely manor (less than 24 hours) ;-)

Don't put your expectations too high, this is not my job, I do it when I have time :)

I assume this feature is no longer supported? I can't get it to work pasting the exact command.
bettercap v2.24 (built for linux amd64 with go1.11.6)

Screen Shot 2019-06-11 at 8 31 57 PM

@robertdavidgraham the events.stream module starts automatically, try switching it off before setting the output destination: -eval "events.stream off; set events.stream.output ~/bettercap-events.log; events.stream on; net.sniff on"

Thanks, this worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  3Comments

vasiliyph picture vasiliyph  Â·  4Comments

mrbluecoat picture mrbluecoat  Â·  5Comments

khast3x picture khast3x  Â·  3Comments

fugitivus picture fugitivus  Â·  5Comments