mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-11-26 17:41:08 +01:00
obfuscate Android payload with proguard
This commit is contained in:
parent
79992309f2
commit
946526ab26
@ -29,23 +29,26 @@
|
|||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
<groupId>com.simpligility.maven.plugins</groupId>
|
||||||
<artifactId>android-maven-plugin</artifactId>
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
<version>4.0.0-rc.2</version>
|
<version>4.4.3</version>
|
||||||
|
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
<groupId>com.simpligility.maven.plugins</groupId>
|
||||||
<artifactId>android-maven-plugin</artifactId>
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<sdk>
|
<sdk>
|
||||||
<!-- platform or api level (api level 10 = platform 2.3)-->
|
<!-- platform or api level (api level 10 = platform 2.3)-->
|
||||||
<platform>10</platform>
|
<platform>10</platform>
|
||||||
</sdk>
|
</sdk>
|
||||||
|
<proguard>
|
||||||
|
<skip>false</skip>
|
||||||
|
<config>proguard.cfg</config>
|
||||||
|
</proguard>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
13
java/androidpayload/app/proguard.cfg
Normal file
13
java/androidpayload/app/proguard.cfg
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
-keep public class * extends android.app.Activity
|
||||||
|
-keep public class * extends android.app.Service
|
||||||
|
-keep public class * extends android.content.BroadcastReceiver
|
||||||
|
-keep class com.metasploit.stage.MainService {
|
||||||
|
public static <methods>;
|
||||||
|
}
|
||||||
|
-keep class com.metasploit.stage.Payload {
|
||||||
|
public static <methods>;
|
||||||
|
}
|
||||||
|
-optimizationpasses 5
|
||||||
|
-verbose
|
||||||
|
|
File diff suppressed because one or more lines are too long
@ -45,17 +45,16 @@
|
|||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
<groupId>com.simpligility.maven.plugins</groupId>
|
||||||
<artifactId>android-maven-plugin</artifactId>
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
<version>4.0.0-rc.2</version>
|
<version>4.4.3</version>
|
||||||
|
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
<groupId>com.simpligility.maven.plugins</groupId>
|
||||||
<artifactId>android-maven-plugin</artifactId>
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<sdk>
|
<sdk>
|
||||||
|
Loading…
Reference in New Issue
Block a user