This array is created manually since CommandLineToArgvA doesn't exist, so manually freeing each item in array
| 331 | |
| 332 | //This array is created manually since CommandLineToArgvA doesn't exist, so manually freeing each item in array |
| 333 | void freeargvA(char** array, int Argc) |
| 334 | { |
| 335 | //Wipe cmdline args from beacon memory |
| 336 | for (int i = 0; i < Argc; i++) |
| 337 | { |
| 338 | memset(array[i], 0, strlen(array[i])); |
| 339 | } |
| 340 | LocalFree(array); |
| 341 | } |
| 342 | |
| 343 | //This array is returned from CommandLineToArgvW so using LocalFree as per MSDN |
| 344 | void freeargvW(wchar_t** array, int Argc) |
nothing calls this directly
no outgoing calls
no test coverage detected