Mirror of metasploit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

msfconsole.rc 251B

12345678910
  1. <ruby>
  2. run_single("setg LPORT #{ENV['LPORT']}") if ENV['LPORT']
  3. if ENV['LHOST']
  4. lhost = ENV['LHOST']
  5. else
  6. lhost = %x(hostname -i)
  7. end
  8. run_single("setg LHOST #{lhost}")
  9. run_single("db_connect #{ENV['DATABASE_URL']}") if ENV['DATABASE_URL']
  10. </ruby>