Commit graph

321 commits

Author SHA1 Message Date
evilsocket
69b3daa5b9 new: net.sniffer.interface parameter to sniff from a different interface 2025-03-27 07:47:30 +01:00
☸️
159aed5080
Implement session script onExit call. 2024-11-23 15:49:05 +01:00
evilsocket
169b0cb8c9 new: added removeEventListener builtin function (closes #1139) 2024-11-20 14:30:17 +01:00
Simone Margaritelli
209725d623 misc: small fix or general refactoring i did not bother commenting 2024-09-22 17:40:23 +02:00
Simone Margaritelli
8446d66d12 misc: small fix or general refactoring i did not bother commenting 2024-09-22 14:00:39 +02:00
Simone Margaritelli
5bc9dd9259 fix: added better debug logging for core.Exec (fixes #1125) 2024-09-13 12:27:22 +02:00
Simone Margaritelli
3ec7b01bed new: added CAN to session json object 2024-08-21 15:47:27 +02:00
Simone Margaritelli
23e074b686 fix: do not report a routing error if the interface is disconnected 2024-08-18 13:43:19 +02:00
Simone Margaritelli
6282fe3451 new: ble, can, hid and wifi modules will now set a custom prompt (closes #1117) 2024-08-17 12:10:38 +02:00
Simone Margaritelli
86e87ab656 fix: attempt to fix tests on windows 2024-08-16 15:59:54 +02:00
Simone Margaritelli
cdefa3c9d3 fix: attempt to fix tests on windows 2024-08-16 15:53:42 +02:00
Simone Margaritelli
ee944d9640 fix: attempt to fix tests on windows 2024-08-16 15:47:00 +02:00
Simone Margaritelli
fcf285aabb chore: more veborse errors in environment tests 2024-08-16 15:33:48 +02:00
Simone Margaritelli
1df51fd13a fix: fixed windows test failure in environment_test.go 2024-08-16 15:20:18 +02:00
Simone Margaritelli
2659a559c9 fix: using proper v2 package suffix (fixes #727) 2024-08-09 18:19:21 +02:00
evilsocket
93de427f9a new: history file location can now be set via BETTERCAP_HISTORY env var (closes #627) 2024-08-09 17:27:06 +02:00
evilsocket
5fe3ef3d52 new: new can module for CAN-bus 2024-08-09 15:42:03 +02:00
guoguangwu
043bd4593b fix: close cpu profile
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
2024-04-03 13:51:10 +08:00
Simone Margaritelli
4f3f55f648 fix: fs related scripting functions will now resolve paths containing special characters 2022-06-13 16:55:41 +02:00
Simone Margaritelli
11d96069ae new: added fileExists function to the session scripting runtime 2022-06-10 23:38:48 +02:00
Simone Margaritelli
28371084d3 new: added saveJSON function to the session scripting runtime 2022-06-10 22:39:29 +02:00
Simone Margaritelli
eff8135d99 new: added loadJSON function to the session scripting runtime 2022-06-10 22:27:13 +02:00
Simone Margaritelli
22de9d3d4f new: added session.stopped event (and fixed session.started event propagation) 2022-06-10 22:12:45 +02:00
Simone Margaritelli
81ae731b9f new: new -pcap-buf-size option to set a custom pcap buffer size (closes #896) 2021-08-21 14:44:36 +02:00
xuchunming1
9020c53820 make import statement clean
Signed-off-by: xuchunming1 <xuchunming@jd.com>
2021-07-01 15:18:12 +08:00
Simone Margaritelli
c38de3a511 fix: support for negative numbers for decimal parameters (closes #866) 2021-04-21 14:02:36 +02:00
Simone Margaritelli
4dac3b9373 fix: handle disconnection (nil gateway) in routes monitor 2021-04-12 12:39:19 +02:00
Simone Margaritelli
c47e3f6195 new: gateway.change event for MITM monitoring 2021-04-10 22:59:03 +02:00
Simone Margaritelli
93b7e7f2ed new: exposing the graph object to js 2021-04-09 13:46:33 +02:00
Simone Margaritelli
bfe307ffe6 new: ticker now broadcasts a tick event 2021-04-07 17:03:47 +02:00
Simone Margaritelli
8827a2af84 new: session scripts can now include other scripts via require('file') 2021-04-04 17:17:37 +02:00
Simone Margaritelli
2b1ff7d59f fix: fixed vm locking 2021-04-04 15:58:48 +02:00
Simone Margaritelli
40727063ec new: new -script allows to run JS code to instrument session 2021-04-04 15:15:32 +02:00
Simone Margaritelli
57436a811c new: experimental ipv6 ndp spoofer (closes #851) 2021-04-03 22:55:03 +02:00
Simone Margaritelli
bef4c6abaa new: basic ipv6 support 2021-04-03 18:42:14 +02:00
Simone Margaritelli
d0b5c34763 new: module parameters now accept <iface-name> that will be resolved to the interface IP address 2021-04-03 16:41:55 +02:00
Simone Margaritelli
d63122bab3 new: new -caplets-path argument to specify an alternative caplets base path (closes #850) 2021-03-23 19:05:58 +01:00
Simone Margaritelli
583a54c194 new: new c2 module, first draft 2021-01-27 00:17:25 +01:00
bonedaddy
05b8e3065e
go vet fixes 2020-12-24 17:31:40 -08:00
Hasibul Hasan Anik
8c3f60641e Remove unnecessary and empty if block.
The if block itself is empty. Calling recover is enough to recover from panic
2020-03-05 13:01:17 +06:00
Lars Lehtonen
07459424fb
caplets: Swap Error Returns 2019-11-13 15:39:20 -08:00
Simone Margaritelli
b8ff8a00e8 Merge branch 'master' of git://github.com/rumpelsepp/bettercap into rumpelsepp-master 2019-10-18 15:23:25 +02:00
evilsocket
12a11ef19d
new: wifi.min.rssi, wifi.ap.ttl and wifi.sta.ttl changes are now applied in realtime 2019-09-15 15:10:56 +02:00
Stefan Tatschner
6406885928 Update broken tests 2019-06-30 22:22:36 +02:00
evilsocket
45951d2f82
new: implemented mDNS server / spoofer (closes #542) 2019-04-22 13:53:32 +02:00
kelson
01d33415a6 goroutine references address overwritten in loop; pass-by-value 2019-04-13 17:26:02 -04:00
evilsocket
ee809b6083
new: exporting hardware resources usage from api.rest 2019-04-09 12:08:30 +03:00
evilsocket
36e5fe8bdb
fix: modules that require net.recon can now specify it as a dependency 2019-04-02 00:06:43 +02:00
evilsocket
50d01429cd
new: added Updated field to session.GPS 2019-03-30 00:26:38 +01:00
evilsocket
fdc26ca3aa
misc: reporting session replay loading progress as api.rest state object 2019-03-29 19:31:20 +01:00