We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d326f3 + 23e97f4 commit d511491Copy full SHA for d511491
docker/msfconsole.rc
@@ -1,5 +1,10 @@
1
<ruby>
2
-run_single("setg LHOST #{ENV['LHOST']}") if ENV['LHOST']
3
run_single("setg LPORT #{ENV['LPORT']}") if ENV['LPORT']
+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'].gsub('postrgres://', '')}") if ENV['DATABASE_URL']
10
</ruby>
0 commit comments