mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-20 20:37:27 +01:00
Maven build system channges to support API level 17
-To get Cell signal strenght it needs minimum android version of 17 -changed all build dependencies -in host it should be compitable and all jar files to be availiable in ~/m2 directory to run this proper
This commit is contained in:
parent
1d7f5a13d4
commit
1ca6d586aa
@ -4,7 +4,7 @@
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
<uses-sdk android:minSdkVersion="10"/>
|
||||
<uses-sdk android:minSdkVersion="17"/>
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
@ -12,9 +12,9 @@
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.android</groupId>
|
||||
<groupId>android</groupId>
|
||||
<artifactId>android</artifactId>
|
||||
<version>1.6_r2</version>
|
||||
<version>4.4.2_r4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -39,7 +39,7 @@
|
||||
<configuration>
|
||||
<sdk>
|
||||
<!-- platform or api level (api level 10 = platform 2.3)-->
|
||||
<platform>10</platform>
|
||||
<platform>17</platform>
|
||||
</sdk>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
@ -4,6 +4,6 @@
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
|
||||
<uses-sdk android:minSdkVersion="10"/>
|
||||
<uses-sdk android:minSdkVersion="17"/>
|
||||
|
||||
</manifest>
|
||||
|
@ -12,9 +12,9 @@
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.android</groupId>
|
||||
<groupId>android</groupId>
|
||||
<artifactId>android</artifactId>
|
||||
<version>1.6_r2</version>
|
||||
<version>4.4.2_r4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -60,7 +60,7 @@
|
||||
<configuration>
|
||||
<sdk>
|
||||
<!-- platform or api level (api level 10 = platform 2.3)-->
|
||||
<platform>10</platform>
|
||||
<platform>17</platform>
|
||||
</sdk>
|
||||
</configuration>
|
||||
</plugin>
|
||||
@ -98,7 +98,7 @@
|
||||
<zipfileset src="${com.metasploit:Metasploit-JavaPayload:jar}" includes="javapayload/stage/StreamForwarder.class" />
|
||||
<zipfileset src="${com.metasploit:Metasploit-JavaPayload:jar}" includes="javapayload/stage/Stage.class" />
|
||||
</copy>
|
||||
<exec executable="${android.sdk.path}/platforms/android-3/tools/${dx.filename}" failonerror="true">
|
||||
<exec executable="${android.sdk.path}/build-tools/19.0.0/${dx.filename}" failonerror="true">
|
||||
<arg value="--verbose" />
|
||||
<arg value="--dex" />
|
||||
<arg value="--output=${project.basedir}/../../${deploy.path}/data/android/shell.jar" />
|
||||
@ -113,7 +113,7 @@
|
||||
</fileset>
|
||||
<zipfileset src="${com.metasploit:Metasploit-JavaPayload:jar}" includes="javapayload/stage/Stage.class" />
|
||||
</copy>
|
||||
<exec executable="${android.sdk.path}/platforms/android-3/tools/${dx.filename}" failonerror="true">
|
||||
<exec executable="${android.sdk.path}/build-tools/19.0.0/${dx.filename}" failonerror="true">
|
||||
<arg value="--verbose" />
|
||||
<arg value="--dex" />
|
||||
<arg value="--output=${project.basedir}/../../${deploy.path}/data/android/metstage.jar" />
|
||||
@ -127,7 +127,7 @@
|
||||
<include name="com/metasploit/meterpreter/**/*.class" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<exec executable="${android.sdk.path}/platforms/android-3/tools/${dx.filename}" failonerror="true">
|
||||
<exec executable="${android.sdk.path}/build-tools/19.0.0/${dx.filename}" failonerror="true">
|
||||
<arg value="--verbose" />
|
||||
<arg value="--dex" />
|
||||
<arg value="--output=${project.basedir}/../../${deploy.path}/data/android/meterpreter.jar" />
|
||||
|
@ -11,9 +11,9 @@
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.android</groupId>
|
||||
<groupId>android</groupId>
|
||||
<artifactId>android</artifactId>
|
||||
<version>1.6_r2</version>
|
||||
<version>4.4.2_r4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -51,6 +51,6 @@
|
||||
<modules>
|
||||
<module>java16</module>
|
||||
<module>java15</module>
|
||||
<module>android-api10</module>
|
||||
<module>android-api20</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user