1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-26 17:41:08 +01:00
Commit Graph

84 Commits

Author SHA1 Message Date
Tim
3c5a00a558 fix webcam_snap 2014-02-10 03:24:32 +00:00
Tim
e9b07f0d7c the Android Context should be optional 2013-10-07 20:48:02 +01:00
Michael Schierl
316f330a90 Use Android API Scents from Maven Central
While at it, change it to the scents from API Level 1, so that we can
claim it works on really every Android device :)
2013-09-06 18:29:21 +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
c260f183aa I suck at markdown 2013-06-11 17:02:15 -05:00
James Lee
7724f32de7 I suck at markdown 2013-06-11 17:01:38 -05:00
James Lee
51d72e6d97 Add compilation instructions for Android 2013-06-11 16:58:53 -05:00
James Lee
dd55986e05 Move COMPILING to README
Since this is its own repo now, it needs a readme and the content in
COMPILING is what people probably expect in that document anyway
2013-06-11 16:53:00 -05:00
Michael Schierl
182285b2c2 Update .gitignore and .travis.yml for new repo 2013-06-11 19:47:15 +02:00
James Lee
3593082570 Land #1708, android meterpreter
Conflicts:
	data/meterpreter/ext_server_stdapi.jar
2013-05-28 12:19:45 -05:00
Luke Imhoff
518b52174f Add new rvm control files to ignores
[#49402505]

rvm stable (1.19.6) has deprecated .rvmrc in favor of the .ruby-version
file used by other ruby version switchers and .ruby-gemset.  These files
only contain strings to be looked up instead of bash or sh code, so it's
also a safer format than the old script in the .rvmrc.
2013-05-07 08:32:21 -05:00
timwr
bd8c9125ff camera fixes and add wav header to audio record 2013-05-03 01:43:50 +01:00
timwr
6c4d3ddfa0 include javapayload in the dx build path 2013-05-02 16:17:56 +01:00
Michael Schierl
9c38ebad17 Android Meterpreter bugfixes
- classes.dex gets mangled on windows; use binary mode when reading it
- UnknownHostExceptions on API Level 3 emulator because of trailing
  whitespace after the hostname/IP
- Work around integer overflow at year 2038 when signing the payload
2013-05-01 18:01:37 +02:00
timwr
24cf469899 Merge pull request #3 from schierlm/android-deploy-profiles
Call dx from Maven profile
2013-05-01 08:18:31 -07:00
Michael Schierl
28b3adc3a6 Call dx from Maven profile
Convert the dx calls from build.sh to equivalent exec calls in Maven
deploy profile.

While this commit takes into account differences between Windows and *nix,
it was only tested on Windows, and the resulting binaries have not been
tested at all!

In addition, I was not able to pass individual .class file names to dx
without getting a "class name does not match path" error, so I changed it
to copy all required classes into a temp directory and call dx from there.

I also changed the cross-project paths to refer to the respective Maven
classpath, so in case you do an individual project build, the library
dependencies are taken from the Maven repository instead of taking them
from the target/ directory of the projects directly.
2013-04-27 22:20:18 +02:00
Michael Schierl
866bfc504f Add animal-sniffer-plugin for Android API
Include the animal-scents for Android API in this commit, so that users
who do not have Android SDK can still check meterpreter API compatibility
with Android API. Some classes, like screenshot have been excluded since
they need AWT (but they are excluded in Android Meterpreter anyway).

To regenerate the scents file, run

mvn -Dandroid.sdk.path=... -P regenerate package
2013-04-27 20:40:55 +02:00
Michael Schierl
facf2076e1 Use 1.4 version of net_config_get_interfaces
Apparently Android API 3 does not know the getMTU() function, which was
added in Java 1.6, and in Android API Level 9 (Gingerbread). Therefore,
fall back to the 1.4 version that does not need this API.
2013-04-27 20:39:13 +02:00
timwr
8c0a0bafbb make android build conditional on -Dandroid.sdk.path= 2013-04-27 00:21:13 +01: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
7b8b36f8b9 remove unused resources and fix whitespace 2013-04-13 16:22:52 +01:00
timwr
8a53a94f2e android meterpreter 2013-04-12 18:57:04 +01:00
James Lee
2766216e2e Land #1217, java payload build system refactor
[Closes #1217]
2013-04-11 13:10:03 -05:00
Tod Beardsley
29324ae496 Adding new .gitignores 2013-04-08 22:01:46 -05:00
Tod Beardsley
3a335c23b6 Replacing with master's .gitignore 2013-04-08 21:52:35 -05:00
Brandon Turner
71044b1fd4 Ignore the .bundle directory 2013-04-04 16:41:40 -05:00
Luke Imhoff
a78e5377cf Configure travis-ci to use database for rake spec
[#46224565]
2013-03-15 08:48:20 -05:00
Luke Imhoff
af58a11b29 Allow use of rake db tasks
[#46224565]

The following rake tasks are added and work similar to how they work in
rails apps:
* db:create
* db:drop
* db:migrate
* db:migrate:status
* db:rollback
* db:schema:dump
* db:schema:load
* db:seed (but no db seeds defined at this time)
* db:setup
* db:version

The hidden task db:test:prepare is also available, which means `rake
spec` can depend on it so that the test database is dropped and
recreated from the development database when running specs (Although
there are yet to be database tests, this branch is in preparation for
that work that will be split between multiple developers.)
2013-03-14 15:46:18 -05:00
Michael Schierl
ff38301878 Make BindTCP test more robust
The BindTCP test contained a race condition: if the bind payload took
longer to load than the handler, it could result in a

ConnectException: Connection refused: connect

Work around this by retrying the connection up to 10 times, with 500ms
delay in between.
2013-03-03 21:08:06 +01:00
Michael Schierl
ee94b0aafb Antivirus can interfere with compiling
Add a note about it into COMPILING.txt.
2013-03-03 21:07:08 +01:00
James Lee
5eda00e69e Make travis install libpcap-dev 2013-02-19 15:41:31 -06:00
James Lee
5a82c1b392 Attempt to make travis useful again
Lowers the history depth from the default of 100.
2013-01-24 15:48:04 -06:00
HD Moore
ce89feac14 Merge pull request #1278 from kernelsmith/gitignore
change doc to doc/ in .gitignore
2013-01-11 17:28:48 -08:00
James Lee
11b3acf41b STFU, travis 2013-01-10 13:53:47 -06:00
kernelsmith
8f55570ea0 change doc to doc/ in .gitignore
I think this is more inline with what's intended
2013-01-09 14:51:54 -06:00
Tod Beardsley
6029c12fb7 Ignoring files that end in tilde 2012-12-31 14:51:04 -06:00
Michael Schierl
547eaf9316 Add unit tests for JavaPayload
Downgrad JUnit version since JUnit 4 can only work with -target 1.5 or
higher class files.

Covered are Shell and Meterpreter stage, StreamForwarder, MemoryBuffer,
AESEncryption and Payload (Bind, Reverse, Spawn, AESPassword).
2012-12-21 19:22:41 +01:00
Michael Schierl
ea549057a7 Remove old .gitignore entries 2012-12-21 14:48:28 +01:00
Michael Schierl
e6b99a1ff7 Add version compatibility checks for JavaPayload
Check JavaPayload and Java Meterpreter against version incompatibilities
for Java 1.2, 1.3, 1.4, 1.5, and 1.6.

Note that webcam_audio_record is currently excluded from the checks, as it
uses Sun proprietary API for building the WAV file and is therefore
failing the build (and will most likely crash Meterpreter if run on a JVM
of version 1.4 or later that is not based on the Sun/Oracle JVM).

Possible workarounds (apart from either removing the module or changing it
to produce empty files when WAV creation is not supported) include
implementing the WAV file writer ourselves or providing raw PCM files
instead.
2012-12-21 14:37:46 +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
b58215ff3b Convert JavaPayload 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 00:09:06 +01:00
Michael Schierl
b1da5a6a13 Move Java meterpreter next to JavaPayload
to make further refactoring easier
2012-12-20 22:28:25 +01:00
James Lee
a767fa2a2e Last commit should make 1.8.7 specs pass 2012-11-20 19:45:28 -06:00
James Lee
20b9f56cd4 Add IRC notifications and allow 1.8.7 to fail
This should tell travis to run the tests against 1.8.7 but not to
consider the whole build broken if it fails (which it currently does)
2012-11-09 15:02:09 -06:00
James Lee
0d9583c8f1 Disable CI testing on 1.8.7 for now
To stop the flood of everything-is-broken emails
2012-11-07 20:53:55 -06:00
James Lee
f3df52a227 Merge branch 'rapid7' into feature/travis-ci.org
Conflicts:
	README.md
2012-11-07 19:43:32 -06:00
Luke Imhoff
1885e0ef5a travis-ci.org integration
Add the .travis.yml so that travis-ci.org knows which rubies (1.8.7 and
1.9.3 to run rake against.  Add the build status button to the README.md
so that people can see if the specs are passing from the main
rapid7/metasploit-framework page on github just like other open source
projects.
2012-11-07 08:29:44 -06:00
Luke Imhoff
08e0228c60 Add simplecov for code coverage
Conflicts:
	Gemfile.lock
2012-11-06 16:30:41 -06:00
Luke Imhoff
e5fd54a9d4 Remove .rvmrc
Remove .rvmrc from source control and add it to .gitignore so it can't
be readded.
2012-10-02 16:29:22 -05:00