How to convert EXE files to PDF or DOC files in Python

25 pts.
Tags:
.DOC file
.EXE file
PDF
Python
I have this project to convert EXE to PDF or DOC with Python. Any help would be appreciated.

Answer Wiki

Thanks. We'll let you know when a new response is added.

In Kali linux, you can use some CVE has release for inject .exe to word file. But it not FUD and silent when vicim open your doc file.

Example CVE-2017-8759, CVE-2017-0199, CVE-2016-3316, CVE-2016-3313, CVE-2015-0097, CVE-2015-6132, CVE-2015-6128,…
Or simple you can use this tools (good for test): mswordexploit.com/download-software/

Discuss This Question: 9  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    EXE to PDF/DOC, never heard about that. An EXE file is an executable file, while PDF/DOC is totally different from that. You can run an EXE file, but never open to read its contents. Somehow If you open EXE file, you can not read properly, because so many junc characters are shown. What is the purpose of your project. What did you want to achieve by doing this conversion while it is near to impossible. More information help to get fruitful replies.
    114,380 pointsBadges:
    report
  • raywang
    What we require is for the EXE file to run once the DOC/PDF file is open, its more like hiding the EXE file inside the DOC/PDF or like using the DOC/PDF file as decoy.
    25 pointsBadges:
    report
  • Subhendu Sen
    OK. So have you written a code on the same? If yes, then what error shown there. Or just not running?
    114,380 pointsBadges:
    report
  • raywang
    Have writing a code for DOC but not for PDF.
    25 pointsBadges:
    report
  • Subhendu Sen
    If you have written a code for doc, then the same logic works for PDF also. Just change something slight in your code. Hope you get the idea and write the code yourself.
    114,380 pointsBadges:
    report
  • ToddN2000
    You may not get help here. Sounds like malicious intent, basically you sound like you want to embed a virus into a document.
    110,110 pointsBadges:
    report
  • TheRealRaven
    Of course, it should fail on most systems simply because AV/anti-malware would either block the import of the PDF/DOC into the system or block execution of the embedded EXE. Since it would most likely fail on most target systems, it's hard to think of any good business reason for this.
    27,140 pointsBadges:
    report
  • Subhendu Sen
    @hpadmin5, generally pdf files are for text based/image based conversion. However you can convert an EXE to PDF by using PDF Printer. A PDF Printer is a virtual printer which can use like any other printer. The difference to a normal printer is that a PDF Printer creates PDF files. You do not print on physical paper. The PDF printer prints the contents of the source file into a PDF format.
    114,380 pointsBadges:
    report
  • ToddN2000
    Went back and read this again. I'm curious as to where this so called project may have came from. Is it part of an ethical hacking course or just something to bait us into provide hacking information?? It still sounds a little bit shady.
    110,110 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: