mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-08-28 05:14:22 +00:00
Add host parameter to bwm_wifi_forward_up function
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
committed by
Philippe Teuwen
parent
4aa7e2ecb6
commit
cc8a2c04ca
+2
-1
@@ -4193,8 +4193,9 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||
uint16_t port = packet->data.asBytes[0] | (packet->data.asBytes[1] << 8);
|
||||
char *ssid = (char *)&packet->data.asBytes[2];
|
||||
char *pwd = ssid + strlen(ssid) + 1;
|
||||
char *host = pwd + strlen(pwd) + 1;
|
||||
uint32_t ip = 0;
|
||||
int res = bwm_wifi_forward_up(ssid, pwd, port, &ip);
|
||||
int res = bwm_wifi_forward_up(ssid, pwd, host, port, &ip);
|
||||
reply_ng (CMD_PM5_BWM_WIFI, res, (uint8_t *)&ip, sizeof(ip));
|
||||
#else
|
||||
reply_ng(CMD_PM5_BWM_WIFI, PM3_ENOTIMPL, NULL, 0);
|
||||
|
||||
Reference in New Issue
Block a user