Fix Meterpreter route error message
git-svn-id: file:///home/svn/framework3/trunk@5868 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
cce1166199
commit
23274e6efc
|
@ -107,8 +107,10 @@ class Console::CommandDispatcher::Stdapi::Net
|
|||
end
|
||||
}
|
||||
|
||||
cmd = args.shift
|
||||
|
||||
# Process the commands
|
||||
case args.shift
|
||||
case cmd
|
||||
when "list"
|
||||
routes = client.net.config.routes
|
||||
|
||||
|
@ -140,7 +142,7 @@ class Console::CommandDispatcher::Stdapi::Net
|
|||
|
||||
client.net.config.remove_route(*args)
|
||||
else
|
||||
print_error("Unsupported command: #{args[0]}")
|
||||
print_error("Unsupported command: #{cmd}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue