Home page logo
/

metasploit logo Metasploit mailing list archives

Re: post append_file kills meterpreter
From: Balint Varga-Perke <vpbalint () gmail com>
Date: Mon, 30 May 2011 00:56:32 +0200

I also think that write_file() for plain *nix shells is basically broken:

session.shell_command_token("cat #{data} >> '#{file_name}'")

I think echo should be used instead of cat and whitespace in data should be properly escaped. Unfortunately I don't have idea yet to transfer binary data...

I would like to work on this issue, how should I send in patches?


On 2011-05-29 19:44, Balint Varga-Perke wrote:
Hi,

I'm writing a post module that has to append some lines at the end of a file. I'm using Meterpreter on a Win7 machine for testing and append_file() of Msf::Post::File for file access.

As append_file() tries to open the file the Meterpreter process dies with c0000417 exception code.

the actual code can be found here: https://github.com/v-p-b/MSF-Addons/blob/master/modules/post/multi/manage/firefox_install_addon.rb#L258

Is this a bug? Thanks in advance:

Balint

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]