Results 1 to 5 of 5

Thread: Metasploit Linux/DOS question

Hybrid View

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

    Default Metasploit Linux/DOS question

    I managed to get in to an XP virtual machine with metasploit and got system level privs with a bind shell back to BT5.

    How do I edit a text file on the windows system from the dos command line as BT wont open up the EDIT.com command from the shell withing the metasploit console.

    Do I need to xhost+ and set my display back (SETENV) for it to work?
    I have been trying to do that, but I may not have the syntax correct for it...

  2. #2
    Just burned his ISO
    Join Date
    Jun 2011
    Posts
    4

    Default Re: Metasploit Linux/DOS question

    I should also point out that this is on a VM on my system so I put the text document there on the XP system.
    I just can't figure out how to edit it via the MSF console.

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

    Default Re: Metasploit Linux/DOS question

    Have you verified that the edit.com exists? If you've got system-level privileges, you should be able to cd into \Windows\system32 and run edit from there.
    If I could figure out how to scuba dive & hack at the same time, there would be nothing I couldn't do...

  4. #4
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default Re: Metasploit Linux/DOS question

    You're probably just missing edit.com from the \windows\system32 folder. You will just need to rip it from another xp box then put it in that folder and run it.

    However, I found out that my x64 version of windows7 home premium and I would guess the same for vista x64 do not have it and probably cannot run it. So another solution would be to use Vim! (Vim has a command line installer )

  5. #5
    Good friend of the forums spawn's Avatar
    Join Date
    Jan 2010
    Posts
    280

    Default Re: Metasploit Linux/DOS question

    try use "copy con "
    "If you aim the gun at your foot and pull the trigger, it's
    UNIX's job to ensure reliable delivery of the bullet to
    where you aimed the gun (in this case, Mr. Foot)."

Similar Threads

  1. Linux samba exploit using Metasploit and Nessus
    By noizepulse in forum BackTrack Videos
    Replies: 1
    Last Post: 01-02-2011, 10:46 AM
  2. metasploit linux reverse vnc ?
    By Radar_mX in forum Beginners Forum
    Replies: 5
    Last Post: 08-24-2010, 08:54 AM
  3. linux payloads metasploit
    By stboon in forum Tool Requests
    Replies: 5
    Last Post: 03-04-2010, 03:56 PM
  4. Question about SDC install and Linux
    By mobius_prime in forum OLD Newbie Area
    Replies: 2
    Last Post: 12-03-2008, 12:34 PM

Posting Permissions

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