Fix Meterpreter route error message

git-svn-id: file:///home/svn/framework3/trunk@5868 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2008-11-10 04:17:31 +00:00
parent cce1166199
commit 23274e6efc
1 changed files with 4 additions and 2 deletions

View File

@ -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