Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display the event date as in bettercap 1.x ? #476

Closed
ghost opened this issue Mar 9, 2019 · 12 comments
Closed

How to display the event date as in bettercap 1.x ? #476

ghost opened this issue Mar 9, 2019 · 12 comments
Assignees

Comments

@ghost
Copy link

ghost commented Mar 9, 2019

Hi! Is there a way to add a date before time to the output of the interactive session? Default settings show only the event time, while in earlier versions bettercap in each row displays the date and then time. And if it is possible, how to adjust the date and time format? Thanks in advance!

@ghost ghost changed the title How to display the event date as in bettercap 1.x How to display the event date as in bettercap 1.x ? Mar 9, 2019
@evilsocket
Copy link
Member

there's no way to do it currently, will implement now, stay tuned ;)

@evilsocket evilsocket self-assigned this Mar 9, 2019
@ghost
Copy link
Author

ghost commented Mar 9, 2019

ok, thanks!

@evilsocket
Copy link
Member

implemented, you can see an example here https://www.bettercap.org/modules/core/events.stream/#examples

@evilsocket
Copy link
Member

sudo bettercap -eval "set events.stream.time.format Mon Jan 2 15:04:05 -0700 MST 2006"

or just (during the interactive session):

> set events.stream.time.format Mon Jan 2 15:04:05 -0700 MST 2006

@ghost
Copy link
Author

ghost commented Mar 9, 2019

doesn't work for me

termux@xperia ~ $ sudo bettercap -eval "set events.stream.time.format Mon Jan 2 15:04:05 -0700 MST 2006 ; net.sniff on"
bettercap v2.18 (type 'help' for a list of commands)

[15:23:15] [endpoint.new] endpoint 192.168.1.100 (roma-pc.lan.) detected as 20:cf:30:7e:dc:fc (ASUSTek COMPUTER INC.).
192.168.1.0/24 > 192.168.1.103 » [15:23:17] [endpoint.new] endpoint 192.168.1.104 detected as 00:13:0d:39:53:ee (Galileo Avionica).
192.168.1.0/24 > 192.168.1.103 » [15:23:17] [net.sniff.mdns] mdns marina-phone.lan. : PTR query for _37F83649._sub._googlecast._tcp.local
192.168.1.0/24 > 192.168.1.103 » [15:23:17] [net.sniff.mdns] mdns marina-phone.lan. : PTR query for _googlecast._tcp.local

@evilsocket
Copy link
Member

did you pull the new code from master?

@ghost
Copy link
Author

ghost commented Mar 9, 2019

I'm an idiot )))

@evilsocket
Copy link
Member

@ghost
Copy link
Author

ghost commented Mar 9, 2019

I compile on the device at the moment, I will check soon... You said there would be no precompiled versions for arm, right?

@evilsocket
Copy link
Member

well, i managed to solve the main compilation issue i had on android arm, so it's now available again :)

@ghost
Copy link
Author

ghost commented Mar 9, 2019

Checked out, works perfectly! That's what was required, thank you very much!

termux@xperia ~ $ sudo bettercap -eval "set events.stream.time.format Mon Jan 2 15:04:05 -0700 MST 2006 ; net.sniff on"
bettercap v2.19 (built for android arm with go1.12) [type 'help' for a list of commands]

[Sat Mar 9 15:39:47 +0000 UTC 2019] [endpoint.new] endpoint 192.168.1.100 detected as 20:cf:30:7e:dc:fc (ASUSTek COMPUTER INC.).
192.168.1.0/24 > 192.168.1.103 » [Sat Mar 9 15:39:50 +0000 UTC 2019] [endpoint.new] endpoint 192.168.1.104 (marina-phone.lan.) detected as 00:13:0d:39:53:ee (Galileo Avionica).

@evilsocket
Copy link
Member

you're welcome! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant