ruby - Getting Error: undefined method `[]' for nil:NilClass -


i getting error while executing msfvenom command bind payload other application.

i using metasploit in android , that's why made changes in /lib/msf/core/payload/apk.rb script

changes in apk.rb (made me)

  1. i changed line

    keytool = run_cmd("keytool") 

    into

    keytool = run_cmd("ld_library_path=/data/data/com.termux/files/openjdk/lib/arm /data/data/com.termux/files/openjdk/bin/keytol") 
  2. i commented out these lines:

    #jarsigner = run_cmd("jarsigner") #unless jarsigner != nil     #raise runtimeerror, "jarsigner not found. if it's not in path, please add it." #end 

here full code of apk.rb script.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -