Method: Rex::Encoder::NDR.align
- Defined in:
- lib/rex/encoder/ndr.rb
.align(string) ⇒ Object
Provide padding to align the string to the 32bit boundary
9 10 11 |
# File 'lib/rex/encoder/ndr.rb', line 9 def NDR.align(string) return "\x00" * ((4 - (string.length & 3)) & 3) end |