Metasploit mailing list archives

Simple Scripting Question


From: Phil Hester <pineapple_surprise () hotmail com>
Date: Thu, 24 Feb 2011 06:15:09 +0000


I am working with a very simple script that is causing me some confusion:

session = client
def run()
    print_line "running"
end
print_status("About to run...")
run()
print_status("Finished!")
raise Rex::Script::Completed

When it is run, the first time it works:

meterpreter > run testing123
[*] About to run...
running
[*] Finished!

But then the 2nd time it does not:

meterpreter > run testing123
[-] Error in script: ArgumentError wrong number of arguments (1 for 0)

And after that, no script will run:

meterpreter > run checkvm 
[-] Error in script: ArgumentError wrong number of arguments (1 for 0)

Any ideas why my simple script is causing this issue?
                                          
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

Current thread: