Linkcabin

Metasploit Java

Jul 5th, 2013
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. Name: Java Signed Applet Social Engineering Code Execution
  2. Module: exploit/multi/browser/java_signed_applet
  3. Version: 0
  4. Platform: Java, Windows, OSX, Linux, Solaris
  5. Privileged: No
  6. License: Metasploit Framework License (BSD)
  7. Rank: Excellent
  8.  
  9. Provided by:
  10.  
  11. Available targets:
  12. Id Name
  13. -- ----
  14. 0 Generic (Java Payload)
  15. 1 Windows x86 (Native Payload)
  16. 2 Linux x86 (Native Payload)
  17. 3 Mac OS X PPC (Native Payload)
  18. 4 Mac OS X x86 (Native Payload)
  19.  
  20. Basic options:
  21. Name Current Setting Required Description
  22. ---- --------------- -------- -----------
  23. APPLETNAME SiteLoader yes The main applet's class name.
  24. CERTCN SiteLoader yes The CN= value for the certificate. Cannot contain ',' or '/'
  25. SRVHOST 0.0.0.0 yes The local host to listen on. This must be an address on the local machine or 0.0.0.0
  26. SRVPORT 8080 yes The local port to listen on.
  27. SSL false no Negotiate SSL for incoming connections
  28. SSLCert no Path to a custom SSL certificate (default is randomly generated)
  29. SSLVersion SSL3 no Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
  30. SigningCert no Path to a signing certificate in PEM or PKCS12 (.pfx) format
  31. SigningKey no Path to a signing key in PEM format
  32. SigningKeyPass no Password for signing key (required if SigningCert is a .pfx)
  33. URIPATH no The URI to use for this exploit (default is random)
  34.  
  35. Payload information:
  36. Avoid: 0 characters
  37.  
  38. Description:
  39. This exploit dynamically creates a .jar file via the
  40. Msf::Exploit::Java mixin, then signs the it. The resulting signed
  41. applet is presented to the victim via a web page with an applet tag.
  42. The victim's JVM will pop a dialog asking if they trust the signed
  43. applet. On older versions the dialog will display the value of
  44. CERTCN in the "Publisher" line. Newer JVMs display "UNKNOWN" when
  45. the signature is not trusted (i.e., it's not signed by a trusted
  46. CA). The SigningCert option allows you to provide a trusted code
  47. signing cert, the values in which will override CERTCN. If
  48. SigningCert is not given, a randomly generated self-signed cert will
  49. be used. Either way, once the user clicks "run", the applet executes
  50. with full user permissions.
  51.  
  52. References:
  53. http://www.defcon.org/images/defcon-17/dc-17-presentations/defcon-17-valsmith-metaphish.pdf
  54. http://www.spikezilla-software.com/blog/?p=21
Advertisement
Add Comment
Please, Sign In to add comment