Hack Forums
[C#] how to inject exe file into pdf or word file - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] how to inject exe file into pdf or word file (/showthread.php?tid=6079119)



how to inject exe file into pdf or word file - madeha elsayedxxxx - May 17, 2020

hello every one
using c# . how to inject exe file into pdf or word file
and the output file be with word or pdf extension
thanks


RE: how to inject exe file into pdf or word file - VisualSoft - May 17, 2020

you can not do this with C#, you need to get some exploit to make it possible.


RE: how to inject exe file into pdf or word file - madeha elsayedxxxx - May 17, 2020

(May 17, 2020 01:27 PM)VisualSoft Wrote:  you can not do this with C#, you need to get some exploit to make it possible.

what is the best language ,
python?


RE: how to inject exe file into pdf or word file - VisualSoft - May 17, 2020

(May 17, 2020 03:18 PM)madeha elsayedxxxx Wrote:  what is the best language ,
python?

you can search around but yes i have seen some in python.


RE: how to inject exe file into pdf or word file - Shadow_Cloud - May 19, 2020

(May 17, 2020 01:27 PM)VisualSoft Wrote:  you can not do this with C#, you need to get some exploit to make it possible.

I think you can, assuming you know what it is you are writing here. This is pure byte manipulation, it should be language agnostic? If you are referring to executing the EXE reliably when the PDF opens, sure that's a different discussion entirely although, with .Net Core this should be possible assuming you have the attack vector.