Results 1 to 4 of 4

Thread: Can msfencode encode myself backdoor?

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    4

    Default Can msfencode encode myself backdoor?

    When I'm trying to encodemyself backdoor "Server.exe"(Not metasploit's payload),but it hang:

    root@bt:/pentest/exploits/framework3# ./msfencode -i /root/Server.exe -c 1 -t exe -e x86/shikata_ga_nai -o sen.exe
    [*] exec:./msfencode -i /root/Server.exe -c 1 -t exe -e x86/shikata_ga_nai -o sen.exe

    ----hang

    What will you suggest me to do?? Where is the problem?Thanks a lot



    PS
    - BT 4 R2 , msf 3.7
    - File is generated in windows,normal
    - File size is 750 kB

  2. #2
    Just burned his ISO
    Join Date
    Nov 2011
    Posts
    1

    Default Re: Can msfencode encode myself backdoor?

    msfencode accepts only raw file format not exe's so you will get an error message " .text section is too small " ... I was wondering if there is any way to convert exe to raw then encoding it and putting it back to an exe .... Sorry for the late reply ,only now i joined this forum ....

  3. #3
    Good friend of the forums scottm99's Avatar
    Join Date
    Feb 2010
    Location
    underwater
    Posts
    371

    Default Re: Can msfencode encode myself backdoor?

    First off, I'd upgrade to the latest version of BackTrack & the Metasploit Framework. I think your best option is use msfpayload, in combination with msfencode. For example, "msfpayload [your payload] | msfencode -e [your encoder] > [your target exe filename]". Drop the exe on your target box, then start up a multi-handler in MSF that matches the payload in the exe. Whenever the exe is run on the target box, you've got your back-door.
    If I could figure out how to scuba dive & hack at the same time, there would be nothing I couldn't do...

  4. #4
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Can msfencode encode myself backdoor?

    You should try checking in with the metasploit support team they should be able to answer your question.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

Similar Threads

  1. Replies: 2
    Last Post: 12-08-2010, 01:51 AM
  2. msf encode av bypass works
    By pentest09 in forum Beginners Forum
    Replies: 3
    Last Post: 06-12-2010, 04:19 PM
  3. msfencode ??
    By BurningDownBabylon in forum Beginners Forum
    Replies: 3
    Last Post: 05-12-2010, 10:35 AM
  4. How to encode a PDF payload in metasploit?
    By AlinuX in forum OLD Pentesting
    Replies: 4
    Last Post: 04-01-2010, 08:01 PM
  5. how to make Persistent.rb encode its payload?
    By AlinuX in forum OLD Newbie Area
    Replies: 2
    Last Post: 01-27-2010, 02:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •