fixed options display problem

git-svn-id: file:///home/svn/incoming/trunk@2875 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-09-23 14:33:32 +00:00
parent fcb280efda
commit 2ed2f34594
3 changed files with 22 additions and 8 deletions

View File

@ -15,6 +15,12 @@
- target says what type of instruction is viable
- pool returns a random return address for that target
- automatic opcode db synchronization
- add module meta-info
- payloads
- calling convention (staged shell is incompat with ord stagers)
- stack requirements
- etc
- exploit reloading
X - switch to x86 from ia32
X - exploit kick-off
@ -69,11 +75,6 @@ X - fix route addition/removal in stdapi server dll (mib structure issue)
X - fix interactive stream pool channels
X - make migrate on server not open with PROCESS_ALL_ACCESS
N - dupe input instance when passing to sessions
- add module meta-info
- payloads
- calling convention (staged shell is incompat with ord stagers)
- stack requirements
- etc
X - fix module loading order
X - problems with dllinject getting loaded after meterpreter due to dependencies
X - fix default handle inheritance in meterp process execution

View File

@ -579,10 +579,19 @@ protected
def show_options(mod)
print("\n" + Serializer::ReadableText.dump_options(mod) + "\n")
# If it's an exploit and a payload is defined, create it and
# display the payload's options
if (mod.exploit? and mod.datastore['PAYLOAD'])
p = framework.modules.create(mod.datastore['PAYLOAD'])
if (!p)
print_error("Invalid payload defined: #{mod.datastore['PAYLOAD']}\n")
return
end
p.share_datastore(mod.datastore)
if (p)
print(" Payload options:\n\n" + Serializer::ReadableText.dump_options(p) + "\n");
end

View File

@ -139,9 +139,11 @@ protected
on_client_connect(cli)
end
rescue SyntaxError
elog("Syntax error in stream server listener monitor: #{$!}")
rlog(ExceptionCallStack)
rescue
elog("Error in stream server listener monitor: #{$!}")
rlog(ExceptionCallStack)
end while true
end
@ -161,9 +163,11 @@ protected
sd[0].each { |fd|
on_client_data(self.fd2cli[fd])
}
rescue SyntaxError
elog("Syntax error in stream server listener monitor: #{$!}")
rlog(ExceptionCallStack)
rescue
elog("Error in stream server client monitor: #{$!}")
rlog(ExceptionCallStack)
end while true
end