-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
deauth_setup.bat
31 lines (20 loc) · 1.33 KB
/
deauth_setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
setlocal enabledelayedexpansion
rem Define file paths
set "esp32_file=%userprofile%\.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib\libnet80211.a"
set "esp32s3_file=%userprofile%\.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32s3\lib\libnet80211.a"
set "esp32_file2=%userprofile%\.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib\libnet80211_temp.a"
set "esp32s3_file2=%userprofile%\.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32s3\lib\libnet80211_temp.a"
rem Now execute objcopy commands (only if backups were created)
"%userprofile%"\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\bin\objcopy --weaken-symbol=ieee80211_raw_frame_sanity_check "%esp32_file%" "%esp32_file2%"
rem Rename the original file to .old
ren "%esp32_file%" "libnet80211.a.old"
rem Rename the _temp to original
ren "%esp32_file2%" "libnet80211.a"
rem Now execute objcopy commands (only if backups were created)
"%userprofile%"\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\bin\objcopy --weaken-symbol=ieee80211_raw_frame_sanity_check "%esp32s3_file%" "%esp32s3_file2%"
rem Rename the original file to .old
ren "%esp32s3_file%" "libnet80211.a.old"
rem Rename the _temp to original
ren "%esp32s3_file2%" "libnet80211.a"
PAUSE