1
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:
Tim 2016-10-13 22:35:17 +08:00
parent 79992309f2
commit 946526ab26
No known key found for this signature in database
GPG Key ID: 62361A8B17EEED19
4 changed files with 34 additions and 20 deletions

View File

@ -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>

View 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

View File

@ -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>