mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-11-20 14:39:22 +01:00
obfuscate Android payload with proguard
This commit is contained in:
parent
79992309f2
commit
946526ab26
@ -29,23 +29,26 @@
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||
<groupId>com.simpligility.maven.plugins</groupId>
|
||||
<artifactId>android-maven-plugin</artifactId>
|
||||
<version>4.0.0-rc.2</version>
|
||||
|
||||
<version>4.4.3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||
<groupId>com.simpligility.maven.plugins</groupId>
|
||||
<artifactId>android-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<sdk>
|
||||
<!-- platform or api level (api level 10 = platform 2.3)-->
|
||||
<platform>10</platform>
|
||||
</sdk>
|
||||
<proguard>
|
||||
<skip>false</skip>
|
||||
<config>proguard.cfg</config>
|
||||
</proguard>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</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>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||
<groupId>com.simpligility.maven.plugins</groupId>
|
||||
<artifactId>android-maven-plugin</artifactId>
|
||||
<version>4.0.0-rc.2</version>
|
||||
|
||||
<version>4.4.3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||
<groupId>com.simpligility.maven.plugins</groupId>
|
||||
<artifactId>android-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<sdk>
|
||||
|
Loading…
Reference in New Issue
Block a user