Simone Margaritelli
a234c20650
fix: better ipv6 detection logic
2024-09-22 15:03:06 +02:00
Simone Margaritelli
2659a559c9
fix: using proper v2 package suffix ( fixes #727 )
2024-08-09 18:19:21 +02:00
Simone Margaritelli
9abf7c809a
fix: if interface name has not been provided, avoid default to a tun interface
2024-08-08 16:42:52 +02:00
☸️
aba29e03f6
fix: revert back to parsing IPv4 address blocks in net.FindInterface
2021-09-20 17:12:12 +10:00
☸️
e255eba69f
simplify interface IPv4 address parsing
2021-09-20 16:52:53 +10:00
☸️
44a17602ed
fix: adopt new IPv4 parsing logic
2021-09-20 15:42:07 +10:00
☸️
eee94e993c
simplify IPv4 validators
2021-09-20 14:20:44 +10:00
☸️
7fd9d18625
fix macParser, MACValidator and IPv4Validator regexp selectors + add IPv4BlockValidator
...
This commit fixes the `network.macParser` and `network.MACValidator` regexp selectors which could validate invalid MAC addresses (e.g. `a🅱️ c:d:e:f`).
It also introduces a new `IPv4BlockValidator` regexp selector which allows us to distinguish IPv4 address blocks from single IPv4 addresses, as the previous implementation of `IPv4Validator` would also validate IPv4 address blocks (e.g. `10.0.0.0/8`) whilst only being used to validate single IPv4 addresses.
Both IPv4RangeValidator and IPv4Validator were optimized to only match the IPv4 format.
### Validation examples
- `IPv4BlockValidator` validates `10.0.0.0/8`
- `IPv4RangeValidator` validates `10.0-255.0-255.0-255`
- `IPv4Validator` validates `10.0.0.0`
2021-09-20 14:04:21 +10:00
Simone Margaritelli
dfe64ee4db
fix: showing the entire error message when a command fails
2021-05-14 15:26:50 +02:00
Simone Margaritelli
43a93fd866
fix: refactored routing logic ( fixes #701 )
2021-04-10 21:55:00 +02:00
Simone Margaritelli
31b06638d8
fix: fixed a panic in net.show.meta when rendeing open ports
2021-04-07 13:16:20 +02:00
Simone Margaritelli
57436a811c
new: experimental ipv6 ndp spoofer ( closes #851 )
2021-04-03 22:55:03 +02:00
Ben Draut
32eee7d94b
Fix bug in target parsing
...
When a MAC address with uppercase letters was provided, parsing would
return an error because the parsing logic would only attempt to remove
normalized versions (all lowercase) from the target list. This would
leave the address with uppercase letters in the target list, which it
would then try to interpet as an Alias. This fixes the bug by using
the original address form when removing it from the target list.
2021-03-09 20:30:48 -07:00
skooch
3612e767d7
Update iw txpower syntax to only use int
...
This is probably due to a bug in iw, we do this because if we include "mBm", the strtol() that iw does has a check on endptr that returns 2, even if the txpower is valid.
2020-03-20 16:07:43 +11:00
skooch
140f33109f
Fix iw txpower syntax
...
The syntax used to set the txpower is incorrect and misses the keyword "fixed", this results in wireless adapter drivers that only support iw failing to initialize within bettercap.
This bug was introduced in commit bettercap/bettercap@2f3390cf36 which was a fix for issue bettercap/bettercap#657 due to maybe the code not being tested extensively.
2020-03-19 14:30:27 +11:00
Simone Margaritelli
2f3390cf36
fix: using iw instead of iwconfig whenever possible ( fixes #657 )
2019-11-25 11:59:04 +01:00
evilsocket
afe300cd8a
fix: gracefully handling wifi device disconnection
2019-03-30 16:17:26 +01:00
evilsocket
c234f3d36b
fix: fixes 'iw executable not found in path' error on macOS ( fixes #454 )
2019-02-20 12:27:01 +01:00
evilsocket
345c1f5d45
new: new wifi.region and wifi.txpower parameters
2019-02-19 12:09:00 +01:00
evilsocket
f72dac0c95
new: parsing BLE flags and company identifiers from advertisements
2019-02-14 12:26:28 +01:00
evilsocket
4cfcaf1c59
misc: small fix or general refactoring i did not bother commenting
2019-02-13 15:24:28 +01:00
evilsocket
ca421cf8e3
fix: fixed a logic bug which made targets lookup by alias fail.
2019-02-13 10:53:24 +01:00
evilsocket
003139a2e3
new: wifi.recon will activate the interface if it's down instead of failing
2019-02-06 09:42:48 +01:00
evilsocket
ca734335fa
new: implemented wifi.deauth.skip variable ( closes #375 )
2019-01-18 16:19:30 +01:00
evilsocket
7f808ac059
refact: migrated aliases to islazy/data.UnsortedKV
2018-10-13 18:39:31 +02:00
evilsocket
d070445225
refact: refactored to use islazy and updated deps
2018-10-10 19:00:25 +02:00
evilsocket
a2b3ee79fb
new: net.show now accepts a comma separated list of ip, macs or aliases to filter for
2018-10-06 14:57:40 +02:00
evilsocket
ae0afc54b5
fixed a bug which caused a cidr being parsed as an ip and eventually a panic ( fixes #241 )
2018-04-26 19:33:05 +02:00
evilsocket
1afab5d7be
more lint driven refactoring
2018-04-26 12:19:52 +02:00
evilsocket
0de6f3a76e
more lint driven refactoring
2018-04-24 18:26:16 +02:00
evilsocket
6c50cc2918
new: added new arp.spoof.whitelist variable which supports macs, ips, ip ranges and aliases ( closes #205 )
2018-03-26 11:58:31 +02:00
evilsocket
54607993ba
new: aliases can now be used along with MACs and IP ranges for the arp.spoof.targets variable (ref #204 )
2018-03-26 11:38:22 +02:00
evilsocket
0a8b8548b6
misc: small fix or general refactoring i did not bother commenting
2018-03-12 15:58:45 +01:00
evilsocket
7fe6cd232c
new: implemented ble.recon (ref #74 )
2018-02-26 18:18:58 +01:00
evilsocket
cf187520e8
fix: windows is a special kid
2018-02-25 17:24:28 +01:00
evilsocket
20f92a68e0
misc: small fix or general refactoring i did not bother commenting
2018-02-25 14:20:17 +01:00
evilsocket
12ff2918da
misc: small fix or general refactoring i did not bother commenting
2018-02-25 13:44:10 +01:00
evilsocket
053cff0dd5
fix: subnet bits were not correctly set while creating the interface endpoint object (ref #82 )
2018-02-25 13:40:52 +01:00
evilsocket
e6bd5a9584
misc: small fix or general refactoring i did not bother commenting
2018-02-25 03:32:59 +01:00
evilsocket
69e91d3a13
fix: trying to fix gateway detection on android
2018-02-25 03:01:03 +01:00
evilsocket
f0158342d6
fix: fixed and refactored network.FindInterface because it was shit
2018-02-24 18:13:20 +01:00
evilsocket
63cea73f8e
misc: small fix or general refactoring i did not bother commenting
2018-02-23 00:07:09 +01:00
evilsocket
d8ec87036e
misc: small fix or general refactoring i did not bother commenting
2018-02-20 15:35:05 +01:00
evilsocket
8d0e4ed0b1
fix: fixed bug which prevented some interfaces wiht IPv6 only addresses from being detected.
2018-02-20 15:19:28 +01:00
evilsocket
b5ffeeba7a
new: -iface argument now also accepts a mac address (tnx Windows)
2018-02-20 04:32:43 +01:00
evilsocket
3bcbbefe96
misc: small fix or general refactoring i did not bother commenting
2018-02-20 04:28:12 +01:00
evilsocket
efe9fd1ab9
misc: small fix or general refactoring i did not bother commenting
2018-02-20 04:27:35 +01:00
evilsocket
c0981ea9e6
misc: small fix or general refactoring i did not bother commenting
2018-02-20 04:26:19 +01:00
evilsocket
86456e76a9
misc: small fix or general refactoring i did not bother commenting
2018-02-16 22:47:58 +01:00
evilsocket
3e100ce633
misc: small fix or general refactoring i did not bother commenting
2018-02-16 13:21:52 +01:00