Hello all,
This is just a small bit of logic to pull the architecture type from the machine and based on that, perform different functionality calls IE: for Mimikatz using both the 32 / 64 bit versions or with procdump specifying -64 for 64 bit machines or not... etc.
STRING wmic computersystem get SystemType | find "x64" >nul&& (set "SystemType=64bit") || (set "SystemType=32bit")
Anyhow, you'd put in logic after this which would run your different executable based on the %SystemType% var
I'll write up a full demo script in a bit for those of you wanting an example.
Thank you.
Enjoy!