waka
git-svn-id: file:///home/svn/incoming/trunk@2684 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
21f440028c
commit
bb264d9ad7
|
@ -53,7 +53,9 @@ class Payload < Msf::Module
|
|||
# Returns the payload's size. If the payload is staged, the size of the
|
||||
# first stage is returned.
|
||||
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
|
||||
|
||||
# Returns the raw payload that has not had variable substitution occur.
|
||||
|
|
Loading…
Reference in New Issue