Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Some more commands to add to Java Meterpreter
- meterp_compare module is at: https://github.com/schierlm/metasploit-framework/blob/0898309db9f0d8e05850e3e37b71119ae64864d9/unstable-modules/auxiliary/meterp_compare.rb
- meterp_compare output is at: http://pastebin.com/gYDJwFeQ
- "Architecture"
- -> System.getProperty("os.arch")
- http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getProperty(java.lang.String)
- @since 1.0
- "System Language"
- -> Easy, Locale.getDefault().toString()
- http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Locale.html#getDefault()
- http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Locale.html#toString()
- @since 1.0
- stdapi_fs_delete
- -> File.delete()
- http://docs.oracle.com/javase/1.5.0/docs/api/java/io/File.html#delete()
- @since 1.0
- stdapi_sys_config_getenv
- -> System.getenv()
- http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getenv()
- @since 1.5
- Note that the version that takes a String was available before, but did not return system environment variables
- A sensible fallback for Pre 1.5 JDK would be to return empty results or hack something up for %COMSPEC% (similar to expand_path)
- stdapi_fs_file_move
- -> File.renameTo()
- http://docs.oracle.com/javase/1.5.0/docs/api/java/io/File.html#renameTo(java.io.File)
- @since 1.0
- Be aware that renameTo can fail due to platform specific reasons, so the proper fallback would be a copy loop
- stdapi_net_resolve_host
- stdapi_net_resolve_hosts
- InetAddress.getByName(...).getAddress() [or getHostAddress()]
- http://docs.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html#getByName(java.lang.String)
- http://docs.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html#getAddress()
- @since 1.0
- stdapi_net_config_get_proxy
- -> possible if running inside an applet, but AFAIK not possible when spawned separately
Advertisement
Add Comment
Please, Sign In to add comment