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.
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...
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.
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...
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)
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)."