1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00
Commit Graph

84 Commits

Author SHA1 Message Date
OJ
fbbff1e7b4 Add support for HTTP/S transports
Still need to add certificate hash validation, proxy support, and
modifiable user agent.
2015-06-24 21:25:23 +10:00
OJ
f03ad14292 Move new classes into the proper locations 2015-06-24 20:22:09 +10:00
OJ
bbe1ab529b Transport refactoring, dispatch functionality, and more
This commit adds a new idea to the dispatch loop that allows commands to
exit. It also adds the core_shutdown command so that it functions
correct. There are a bunch of other changes around transports as well,
and this commit adds a "resilient" TCP transport.

HTTP/S to come. progress being made. This commit is messy with debug
statements all through it, and they'll get removed down the track.
2015-06-24 19:57:09 +10:00
OJ
4ed2b484f0 Modify the staging process 2015-06-24 13:20:25 +10:00
Tim
ac3d244538 add machine_id and fix sysinfo as root 2015-06-03 08:12:38 +01:00
Tim
4cef8cfbb1 fix http sluggishness 2015-05-27 13:13:33 +01:00
Tim
509e67b27a add ssl cert validation 2015-05-20 07:28:20 +01:00
Tim
d02a5e41e4 add ability to change retry_wait/retry_total at runtime 2015-05-19 20:03:58 +01:00
Brent Cook
8a6e26af80 fix a little more whitespace, remove superfluous ; 2015-05-19 10:33:34 -05:00
Tim
d1e69b2d43 format all code with the default intellij java formatter 2015-05-17 19:05:21 +01:00
Brent Cook
3ba13e719a Land #32, switch FILE_HASH to use RAW, strings to use UTF-8 2015-05-15 09:58:38 -05:00
Tim
6586bd0df8 add TLV_TYPE_FILE_HASH 2015-05-10 15:05:45 +01:00
Brent Cook
d0ef907199 Land #27 @jlee-r7 handle broken isHidden with GCJ 2015-03-22 17:34:47 -05:00
Brent Cook
e891c7fcd0 treat strings in TLV packets as UTF-8 2015-03-19 15:21:08 -05:00
James Lee
78084a2d20 Fix stat when isHidden() is broken
Works around a bug in GCJ
2015-03-09 01:39:00 -05:00
Brent Cook
379b455a10 Land #5, @schierlm's meterpreter plugin maven archetype 2015-02-02 09:55:00 -06:00
Brent Cook
b7c0e49907 s/module/class/ 2015-02-02 09:52:29 -06:00
Brent Cook
65058c6dba update sample module code and provide property defaults 2015-01-30 18:50:59 -06:00
Tim
0f2d9aca95 minor tweak 2014-12-01 03:07:03 +00:00
Tim
52912ac812 Merge branch 'pr-14' into mergeall 2014-11-25 21:54:53 +00:00
Tim
4f30431dd6 PROCESS_HANDLE should be a Long 2014-09-15 17:31:36 +01:00
OJ
044b2b854a Minor tidy/tweaks
Adjustments based on discussion.
2014-07-10 11:28:01 +10:00
OJ
d1b8969236 Set IMAGE_BASE as a QWORD value 2014-07-07 16:30:39 +10:00
OJ
bd4db6364d Add QWORD support, update values to use QWORDS
QWORDs didn't exist in Java meterpreter, but there are a number of
elements in the TLVs that make use of this type. This commit adds
support for the QWORD type and updates various types to use this
new type so that it matches the MSF source.

[SeeRM #8824]
2014-07-07 15:43:43 +10:00
OJ
adbdd9a2f3 Add getenv support to the Java payload
This will bring this meterpreter in line with the other meterpreter
payloads so that the getenv feature works consistently across them.

I also had to tweak the way the TLVs were stored so that we could
support the notion of having more than one value appear that is of
the same type.
2014-03-20 15:12:19 +10:00
Michael Schierl
de05b53dc8 Add Maven Archetype for Java Meterpreter Extension
This should help anybody create new Java Meterpreter Extensions and
configuring the build system to properly build, test and deploy them.

The generated sample extension already contains two simple commands, to
serve as a base for more complex commands.
2013-09-06 18:23:15 +02:00
Michael Schierl
bd3d0efedd Move extension source to a common place
Move source code of all Meterpreter extensions to a common target
directory during build, so that tests that apply to all extensions won't
need to be updated when a new extension is added.

Use this to apply the version compatibility checks to all extensions.
2013-09-06 18:23:14 +02:00
Michael Schierl
216c85996e Fix relative paths to Metasploit repository
As this repo it is no longer in external/source directory, the deploy
targets need to know where the Framework repository is. This defaults to
../metasploit-framework, but can be changed via -D deploy.path= command
line switch.
2013-06-12 23:44:57 +02:00
James Lee
3593082570 Land #1708, android meterpreter
Conflicts:
	data/meterpreter/ext_server_stdapi.jar
2013-05-28 12:19:45 -05:00
Michael Schierl
70e587519e Fix incorrect network prefix in Java Meterpreter
Apparently, getNetworkPrefixLength can return -1, which confuses the Ruby
side. Therefore fall back to guessing the prefix in this case, as we do it
for Java <= 1.6.
2013-04-20 23:10:46 +02:00
timwr
cbdda49ed7 fix obvious breakage 2013-04-18 10:24:50 +01:00
timwr
8a53a94f2e android meterpreter 2013-04-12 18:57:04 +01:00
Michael Schierl
cf99b6d62f Convert Java Meterpreter project to use Maven
Functionality and build result is 1:1 the same as before. Auxiliary ant
targets have been converted to Maven profiles.
2012-12-21 01:17:57 +01:00
Michael Schierl
b1da5a6a13 Move Java meterpreter next to JavaPayload
to make further refactoring easier
2012-12-20 22:28:25 +01:00