I'm trying to pack benign executable files to test if the packer works before trying it on my beacons. Currently I'm just getting errors no matter what options or executable (x64) I pass.
The following is an attempt with whoami.exe on a 64-bit windows 10 machine.
$ file /mnt/c/windows/system32/whoami.exe
/mnt/c/windows/system32/whoami.exe: PE32+ executable (console) x86-64, for MS Windows
PS C:\Safe\AtomPePacker\Pre-Compiled> .\PePacker.exe 'C:\Windows\System32\whoami.exe' -e
[i] Reading " C:\Windows\System32\whoami.exe " ...
[i] 64-PE Input Detected ... [ SUPPORTED ]
[i] Generating Exe Output ...
[i] Reading The Loader "PP64Stub.exe" ... [ DONE ]
[i] Packing ... [ DONE ]
[+] Compressed Ratio : 43%
[+] Final Pe Size : 32172
[+] Section .ATOM is Created Containing The Input Packed Pe
PS C:\Safe\AtomPePacker\Pre-Compiled> .\PP64Stub.exe
The specified resource type cannot be found in the image file.
PS C:\Safe\AtomPePacker\Pre-Compiled> C:\Windows\System32\whoami.exe
redacted\aphilbert
PS C:\Safe\AtomPePacker\Pre-Compiled> .\PePacker.exe C:\Safe\open_calc.exe
[i] Reading " C:\Safe\open_calc.exe " ...
[i] 64-PE Input Detected ... [ SUPPORTED ]
[i] Generating Exe Output ...
[i] Reading The Loader "PP64Stub.exe" ... [ DONE ]
[i] Packing ... [ DONE ]
[+] Compressed Ratio : 22%
[+] Final Pe Size : 12644
[+] Section .ATOM is Created Containing The Input Packed Pe
PS C:\Safe\AtomPePacker\Pre-Compiled> .\PP64Stub.exe
Mingw-w64 runtime failure:
Address 0000000140005370 has no image-section