lib/msf/core/payload/windows/reverse_winhttp.rb
#
# Convert a string into a NULL-terminated wchar byte array
#
Convert a string into a NULL-terminated wchar byte array
Convert a string into a NULL - terminated wchar byte array
def asm_generate_wchar_array(str)
    ( str.to_s + "\x00" ).
      unpack("C*").
      pack("v*").
      unpack("C*").
      map{ |c| "0x%.2x" % c }.
      join(",")
  end
def asm_generate_wchar_array ( str ) ( str . to_s + "\x00" ) . unpack ( "C*" ) . pack ( "v*" ) . unpack ( "C*" ) . map { | c | "0x%.2x" % c } . join ( "," ) end
Convert a string into a NULL-terminated wchar byte array
Convert a string into a NULL - terminated wchar byte array
str