0

When trying to set RHOSTS for an auxiliary module, I tried using $server, which is a bash variable I've set before entering msfconsole. It is not readable from within msfconsole.

How do I access bash variables from msfconsole?

schroeder
  • 123,438
  • 55
  • 284
  • 319
driverobject
  • 103
  • 2

1 Answers1

1

Keep in mind that metasploit do not contain all bash functionality. It has some basic commands like ls or ping but I am not sure if you can use full bash inside. You can try to create a script of echoing the variable and simple copy paste can do the job.

Xlav4nder
  • 24
  • 1