how i can run this command from cmd without run powershell ?
> [byte[]] $hex = get-content -encoding byte -path C:\temp\nc.exe > [System.IO.File]::WriteAllLines("C:\temp\hexdump.txt", ([string]$hex))
i try like this but not working
powershell -command " [byte[]] $hex = get-content -encoding byte -path C:\Users\evilcode1\Desktop\nc.exe ; [System.IO.File]::WriteAllLines('C:\Users\evilcode1\hexdump1.txt', ([string]$hex))"
how i can do that ! and then i need to reconstruct the executable from the text file with this command :
[string]$hex = get-content -path C:\Users\user\Desktop\hexdump.txt [Byte[]] $temp = $hex -split ' ' [System.IO.File]::WriteAllBytes("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\nc.exe", $temp)
how i can run them direct from cmd without open powershell