git-svn-id: file:///home/svn/incoming/trunk@2684 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Spoon M 2005-07-09 19:54:56 +00:00
parent 21f440028c
commit bb264d9ad7
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ class Payload < Msf::Module
# Returns the payload's size. If the payload is staged, the size of the # Returns the payload's size. If the payload is staged, the size of the
# first stage is returned. # first stage is returned.
def size def size
return ((p = generate())) ? p.length : 0 return (generate() || '').length
# HEY skape, why should generate every return nil, and not an
# empty string?
end end
# Returns the raw payload that has not had variable substitution occur. # Returns the raw payload that has not had variable substitution occur.