2023-06-20 12:08:03 -06:00
|
|
|
`sudo apt install libpcap-dev gcc`
|
|
|
|
|
|
|
|
```bash
|
2023-06-21 12:54:59 -06:00
|
|
|
go mod tidy
|
|
|
|
go build wlan2eth
|
2023-06-20 12:08:03 -06:00
|
|
|
```
|
|
|
|
|
2023-06-21 12:54:59 -06:00
|
|
|
Run the program like this:
|
2023-06-20 12:08:03 -06:00
|
|
|
|
2023-06-21 12:54:59 -06:00
|
|
|
```
|
|
|
|
./wlan2eth --dhcp-modify-src --eth [name of ethernet] --wlan [name of wireless interface]
|
|
|
|
```
|
2023-06-20 12:08:03 -06:00
|
|
|
|
2023-06-21 12:54:59 -06:00
|
|
|
`--dhcp-modify-src` will modify the client address in the DHCP packets.
|