From 1ac8b5abe9e0096c55e4cf9d57852522bacb2d52 Mon Sep 17 00:00:00 2001 From: James Lee Date: Mon, 27 Dec 2010 18:21:33 +0000 Subject: [PATCH] fix a nil.dup by returning a proper platformlist when we don't have a session, dump actual info with 'info' command instead of nothing git-svn-id: file:///home/svn/framework3/trunk@11425 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/base/serializer/readable_text.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/msf/base/serializer/readable_text.rb b/lib/msf/base/serializer/readable_text.rb index f2037bff93..1c3aa0d3e3 100644 --- a/lib/msf/base/serializer/readable_text.rb +++ b/lib/msf/base/serializer/readable_text.rb @@ -29,6 +29,8 @@ class ReadableText return dump_exploit_module(mod, indent) when MODULE_AUX return dump_auxiliary_module(mod, indent) + when MODULE_POST + return dump_basic_module(mod, indent) else return dump_generic_module(mod, indent) end