Can anyone tell me how I would go about providing a variable to an irb
session? For example, see the following screenshot from the Metasploit
Meterpreter in irb mode.
Can anyone tell me how I would go about providing a variable to an irb
session? For example, see the following screenshot from the Metasploit
Meterpreter in irb mode.
Does anyone know how they are actually providing the ‘client’ variable
to the irb session?
–
Thanks!
Bryan
You can run your script at Ruby startup by specifying env variables
(Ruby (Al2O3::Cr), scroll to Add to
load path), or you can specify env variable IRBRC pointing to a Ruby
file that will be executed at the start of irb only.
Can anyone tell me how I would go about providing a variable to an irb
session? For example, see the following screenshot from the Metasploit
Meterpreter in irb mode.