Metasploit mailing list archives
RC files and background scripts' threading
From: Marco Polo <titjow () hotmail com>
Date: Fri, 12 Nov 2010 02:54:06 +0000
Hi all! I have some questions about the background cmd and rc files. I've attached a (dirty) rc file I made for fun and profit but I had some problem running it... The fact is that the console is running all cmds before watching if the previous one ended. The problem is, on the first cmds, it tries to get privs before the migration completed which often cause the session to die, but not only that. What I want to do is implement a routine that will prevent a cmd to be executed if the previous one is not complete and another one that will prevent the session to be killed/backgrounded before all scripts are completed. I must admit that I have NO IDEA of "how to" do the first routine. Concerning the second one, i've looked into the links below, and I know the solution is right in front of me, but I must be too tired or too stupid to do it lol. So any help would be well-appreciated :) http://www.metasploit.com/redmine/projects/framework/repository/diff/lib/msf/ui/web/console.rb?rev=10699&type=sbs http://www.metasploit.com/redmine/projects/framework/repository/diff/scripts/shell/spawn_meterpreter.rb?rev=8954&type=sbs http://www.metasploit.com/redmine/projects/framework/repository/diff/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb?rev=8917&type=sbs This brings me to another question: are the backgrounded meterpreter scripts threaded? thx for the answers :) M.P.
Attachment:
msfconsole_rc.rc
Description:
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- RC files and background scripts' threading Marco Polo (Nov 11)