Friday 10 October 2014

HB Blog 30: Frustrated With Filling-up Registration Forms? Have A Look On Sites That Needs No Registrations.

       Sometimes filling online registration forms gets frustrating. But there are few sites which go beyond that. Below are the few example of such kinds of websites.

1)YOPmail - Disposable Email Address
Click here : http://www.yopmail.com/en/
Description : YOPmail provides Temporary and Disposable Email addresses to protect you against Spam without any registration.

2)File Convoy - Free file exchange services
Click here : http://www.fileconvoy.com/
Description : Upload and exchange easily large files with your friendswithout any registration

3)afreeSms - Send Free SMS | Unlimited Text Messages Worldwide
Click here : http://www.afreesms.com/
Description : Send unlimited free SMS messages online without any registration.

4)Online chat
Click here : http://onlinechat.co.in/
Description : Online chat is india best free online chatting rooms and chat site without any registration.
5)FileHippo
Click here : http://www.filehippo.com/
Description : Contains freeware, demo and shareware softwares to download in several categories. Also features latest updates and most popular downloads without any registration.


Thursday 9 October 2014

HB Blog 29: Download Your Favourite Software's, Songs, Torrents, Projects, Books, etc. Just For Free.

                Downloading has become so easy and convenient that it shows where our future is actually going.Just one click and you can have your favourite software's, songs, torrents, projects, books, etc.
1)FileHippo(Download Software)
Click here : http://www.filehippo.com/
Description : Contains freeware, demo and shareware softwares to download in several categories. Also features latest updates and most popular downloads.

2)Songs.PK(Download Songs)
Click here : http://www.songspk.name/bollywood-songs-mp3.html
Description : Contains freeware, demo and shareware softwares to download in several categories. Also features latest updates and most popular downloads.

3)KickassTorrents(Download Torrents)
Click here : http://kickasstorrents.eu/
Description : Since the beginning of 2012, KickassTorrents holds its place in top 3 of the most used torrent sites. Its user activity and the number of members is growing rapidly.

4)1000Projects(Download Projects Source Code)
Click here : http://1000projects.org/
Description : This website is developed by WikiHands.This site provides complete project with source codes as well as gives a platform for students to upload there own projects as well.This site also have its own forum for Q&A.


5)It Ebooks(Download Ebooks)
Click here : http://it-ebooks.info/
Description : This site helps to download IT ebooks for free, related to various programming languages and more.

HB Blog 28: Pull To Refresh Using SwipeRefreshLayout In Android.

           Observe, when pull down the listview screen, the loading symbol appears and loading content become visible on top the application contents.Then the new contents will be fetched.
We can find many custom library's for this stuff.But, now it's kind of out - dated stuff. We can use SwipeRefreshLayout for pull to refresh functionality in android. You can see this kind of pull to refresh in google applications, etc.
Refer the below link for complete sample code:-
Download Sample Code
Download Apk File
Have a look on few code snippets,

activity_main.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// It has only View inside the layout. Add the scrollView inside the SwipeRefresh //layout to support pull to refresh. For ListView and GridView no need to add //ScrollView inside SwipeRefreshLayout.

<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/swipe_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    <ListView
        android:id="@+id/listview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    </ListView>
</android.support.v4.widget.SwipeRefreshLayout>

SwipeRefreshActivity.java
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
public class SwipeRefreshActivity extends Activity implements OnRefreshListener
{
    SwipeRefreshLayout swipeLayout;
    ListView listView;
    ArrayAdapter adapter;
    ArrayList<String> arrayList;
    String[] array = new String[] { "AAA", "BBB", "CCC", "EEE" };
   
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        swipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_container);
        //sets Refresh listener for your layout.
        swipeLayout.setOnRefreshListener(this);
        //Loading color schemes are adding
       swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_orange_dark, android.R.color.white, android.R.color.holo_green_dark);
        listView = (ListView) findViewById(R.id.listview);
        adapter = new ArrayAdapter(SwipeRefreshActivity.this, android.R.layout.simple_list_item_1, initialArrayData());
        listView.setAdapter(adapter);
    }

    private ArrayList initialArrayData()
    {
        if(arrayList == null)
            arrayList = new ArrayList();
        for(String items : array){
            arrayList.add(items);
        }
        return arrayList;
    }
    private ArrayList appendData(){
        if(arrayList == null)
        arrayList = new ArrayList();
        arrayList.add("HB");
        return arrayList;
    }

    @Override
    public void onRefresh()
    {
        new Handler().postDelayed(new Runnable(){
            @Override
            public void run(){
                appendData();
                adapter.notifyDataSetChanged();
               // to stop the loading progress
                swipeLayout.setRefreshing(false);
               }
           }, 5000);
       }
    }

Tuesday 7 October 2014

HB Blog 27: How To Install Kali Linux On Android Device Using Linux Deploy.

From the creators of BackTrack comes Kali Linux, the most advanced and versatile penetration testing distribution ever created.
Linux in a chroot on almost any modern device that runs Android. In fact, the developers of Linux Deploy have made it extremely easy to get any number of Linux distributions installed in a chroot environment using a simple GUI builder. 

Requirements:-
  1.  A smartphone/tablet running Android 2.1 and above, which needs to be rooted since it requires root permission to run certain scripts.
    For rooting android smartphone you can follow my blog Step By Step Guide How To Root Mobile Device.
  2. At least 5 GB free space on internal or external storage.
  3. A fast, wireless internet connection.
  4. Patience to wait for a distribution to bootstrap from the network. 
  5. Following Android Apps:
    BusyBox: It acts like a installer and uninstaller.it needs root permission to run.it has gpu cores and can  run linux kernals on android .
    Superuser: This app just grants a superuser power to your phone just like “su” does for linux.
    Terminal Emulator: It is app that runs a terminal console in android .
    AndroidVNC: It is a tool for viewing VNC in Android.
    Linux Deploy:It creates a disk image on the flash card, mount it and install there OS distribution.
Installation:-
1)Start up Linux deploy app and press the little arrow in the bottom right corner of the screen to open the preferences menu.
2)Configuring the settings as per your requirements.You can choose your architecture, verify that the Kali mirror is correct, set your installation type and location on your Android device, etc.
 3)Then, select "install" option and start installing Linux to your device.It will start a Kali Linux bootstrap directly from our repositories. Depending on your Internet connection speed, this process could take a while. You’ll be downloading a base install of Kali Linux (with no tools) at minimum.
4)After installed go back to preferences and select reconfigure. This will take a couple minutes but will configure Kali with your device.
5)Then just hit "start" option and Linux Deploy automatically mounts and loads up your Kali Linux chroot image. This also includes the starting of services such as SSH and VNC for easier remote access.
6)At this stage, Linux Deploy has started a VNC and SSH server inside your chrooted Kali image. You can connect to the Kali session remotely using the IP address assigned to your Android device.To bring up the graphical interface to see it.Select android vnc viewer and put in these settings. Select new for connection, type anything you want for the nickname, type changeme as the password, and 5900 as port. Now u could use any color settings but the best would be 24-bit. After you fill this out select connect.
 
7)Press Connect and thats all kali is running, when your finished just go back to Linux deploy app and select stop. 

Monday 6 October 2014

HB Blog 26: How To Install Backtrack On Android Device.

BackTrack was a Linux distribution that aimed at digital forensics and penetration testing use.BackTrack provided users with easy access to a comprehensive and large collection of security-related tools ranging from port scanners to Security Audit.

But, this post is not about backtrack on pc, this is about backtrack on android device.
How To Install Backtrack On Android Device???

Requirements:-
1.Backtrack 5 Arm architecture.
2.A smartphone/tablet which needs to be rooted since it requires root permission to run certain scripts.
For rooting android smartphone you can follow my blog Step By Step Guide How To Root Mobile Device.
3.Following Android Apps:
BusyBox: It acts like a installer and uninstaller.it needs root permission to run.it has gpu cores and can  run linux kernals on android .
Superuser: This app just grants a superuser power to your phone just like “su” does for linux.
Terminal Emulator: It is app that runs a terminal console in android .
AndroidVNC: It is a tool for viewing VNC in Android.

Installation:-
1.Extract the backtrack folder "BT5-GNOME-ARM" to folder named "BT5" on the root of SD card. That’s the top level of the SD card.
2.Open up the Terminal Emulator.
3.Type the command 
cd sdcard/BT5.
4.Run this command and you will see root@localhost.
su   
sh bootbt
5. Now run Backtrack GUI with VNC viewer.
startvnc
6. Open android vnc
Nickname : BT5
Password : toortoor
Address : 127.0.0.1
Port : 5901
7. Connect it and you will see Backtrack 5 interface.

HB Blog 25: How to take picture from camera programmatically using phonegap/cordova and javascripts?

The mobile application development landscape is filled with many ways to build a mobile app.
Among the most popular are:
    Native iOS,
    Native Android,
    PhoneGap,
    PhoneGap Android Cordova Library,
    Appcelerator Titanium,
    and many more.

PhoneGap Android Cordova Library:- 
Refer the below link for starting with phonegap:-
http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html

Step by step guide for integrating camera using cordova library:-

 

Step I :- Download and add cordova library into libs folder.
Step II :- You need few javascript and other supportive files to support cordova library. can download them from below link.
Download Support Files
Step III :- Add the supportive files www name folder into your project assets folder.
Step IV :- Observe index.html file. It is your main file for implementing camera functionality.

Refer the below link for complete sample code:- 
Download Sample Code
Download Apk File

Have a look on few code snippets,

index.html 
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// Take picture using device camera and retrieve image as base64-encoded string
 function capturePhoto() {
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
        destinationType: destinationType.DATA_URL });
    }

// Retrieve image file location from specified source
function getPhoto(source) {
      navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
        destinationType: destinationType.FILE_URI,
        sourceType: source });
    }

Step V :- Load index.html file into your activity java class which should extend DroidGap class of cordova library as shown below

MainActivity.java
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
// extend DroidGap class of coirdova library
public class MainActivity extends DroidGap
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        super.setIntegerProperty("splashscreen", R.drawable.ic_launcher);
        super.loadUrl("file:///android_asset/www/index.html");
    }
} 

Wednesday 1 October 2014

HB Blog 24: Android Virus/Antivirus - Exploring Android Limits.

    There is always a question in every developer's mind that, what is the limit of Information Technology. These question has resulted into various inventions and discoveries, few helpful as well as some deadly once. The below information shows how android can be used for destructive purpose.
    There are few mobile viruses out there like androRat (android remote access tool), dendroid, etc.But, at the same time we feel safe due to anti virus application by Norton, Quick Heal, Bit-defender, etc.

NOTE:- BELOW INFORMATION AND APPLICATION IS FOR EDUCATION AND SECURITY PURPOSE ONLY.IF YOU MISUSE OR MISTREAT THE INFORMATION, THEN IT CAN BRING UNLAWFUL CHARGES BY THE PERSON ON WHOM YOU USED THIS TRICK. THE AUTHOR WILL NOT BE RESPONSIBLE IN THE EVENT AND IF ANY UNLAWFUL CHARGES ARE BROUGHT TO YOU BY ANY INDIVIDUALS BY MISUSING THE ABOVE INFORMATION. WE WON'T TAKE RESPONSIBILITY FOR ANY OF YOUR ACTION RELATED TO ABOVE INFORMATION. 

Elite is an android virus and Hellboy is an anti-virus that has features as mentioned below.

Elite Android Virus Features:-
  1. Send sms continuously from the device to all phone contacts randomly till mobile balance is nil.
  2. Block sms messenger, etc apps.
  3. Wipe out sd-card data completely.
  4. Hide app icon from app launcher as well as recent category.
  5. Cannot uninstalling this virus app from application manager.
  6. Run in background continuously and gets restarted even after device is turned ON/OFF.
  7. Track the user's interaction by retrieving the applications that user has started. 
Hellboy Android Anti-Virus Features:-
  1. The only solution to uninstall Elite virus from infected mobile.
  2. It forces to uninstall, so that it can be made one time use only.  

HB Blog 23: Step By Step Guide How To Root Mobile Device.

What is Rooting Android Devices? Heard as, "device should be rooted". 
Rooting is a process that allows you to attain root access to the Android operating system code (the equivalent term for Apple devices id jail breaking). It gives you privileges to modify the software code on the device or install other software that the manufacturer wouldn’t normally allow you to.

I will show a very basic tutorial for rooting the android mobile device. But, before that I prefer to clear out the advantages as well as disadvantages for rooting the device.
Advantages:-
  1. Install Custom ROM on your device to add themes and change look and feel.
  2. Backing up device data using Apps such as Titanium backup, Astro, etc.
  3. Access Apps and Games that requires root support.
  4. Removing unwanted Apps and Games.
  5. Install Applications on SD Card.
Disadvantages:-
  1. It may result into bricking(damaging/corrupting) the software of the device. Solution - Sp tools is a tool with which you can flash new firmwares or recoveries. Or fix your Phone if it is soft bricked. 
  2. It will void your warranty. Solution - You can always get your warranty back by unrooting your device.
  3. Malware can easily breach your mobile security.
    Solution -  Have a good paid anti-virus. Thats all, I can say on this.
Step By Step Guide How To Root Mobile Device:-
Step 1 : Plug in and connect your android device to your computer via USB and it will initiate driver installation for the device. Install them. Skip this if you have done this already before.
Step 2 : Unplug and re-connect, but this time select "Charge only" to sure that your phone’s SD Card in not mounted to your PC during the rooting process.

Step 3 : Put your android into USB Debugging mode. Go to Settings > Applications > Development and enable USB Debugging. This will enable SuperOneClick to root your android device by running the exploit from your PC while connected via USB.
Check all the steps. All drivers should be installed. You SD card must be un-mounted and USB Debugging must be enabled 
Step 4 : Download superoneclick software from below link,
Download SuperOneClick
Step 5 : Open the superoneclick folder you’ve downloaded and run SuperOneClick.exe file. You will see the window (below). Click on the "Root" button. And if everything goes well you will get OK messages a lot.
 Step 6 : It takes just a minute. And after its done you will see a "Running a Su test Success!" which means the rooting process is completed. Go to your phone app drawer and you will see Superuser icon which means you now have root access. (reboot the phone if you don’t see it).
Superuser is a small utility that manges access to the root permissions, kind of like a gate keeper. It makes sure that applications can’t make changes to your device without asking you first.

Its done, enjoy the hack. :)

HB Blog 22: Is Your Android Emulator Running Slow???

     I personally had many problems when android emulator gets slow and dont startup as well. It depends on many aspects such as OS, ram, version,etc. It can't be faster but, I found a configuration that works better. Actully, It worked for me and also for few developers out der.
Just give it a try....


 Also ,check wipe data in launch option window for first time launch so that your previous data and apps wont load and the related space and time will be saved.

HB Blog 21: Google Map Geo-Fencing Android [Tutorial].

    There are many places on Internet where you can find how to integrate Google Map using Android Api. You can try out few below links that can guide you to start it.

http://developer.android.com/google/play-services/maps.html
http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/
http://www.tutorialspoint.com/android/android_google_maps.htm
http://www.vogella.com/tutorials/AndroidGoogleMaps/article.html

But,in this tutorial I would like to move on with it. This tutorial will explain how to integrate geo-fencing in Google map.

Firstly, Integrate Google map - that you can using above few links.
In short, you need

Google Map - Activity file to create an object of GoogleMap and get the reference of map from the xml layout file.
Google Map - Layout file to add the map fragment.
Google Map - AndroidManifest file to add some permissions along with the Google Map API key.

Secondly, add marker and addCircle as below code snippets,
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Marker stopMarker = googleMap.addMarker(new MarkerOptions()
.draggable(true)
.position(new LatLng(latitude, longitude))
.title(title)
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.ic_launcher)));

googleMap.addCircle(new CircleOptions()
.center(new LatLng(latitude, longitude)).radius(radius)
.fillColor(Color.parseColor("#B2A9F6"))); 
Finally, add your api key in android manifest.I hope you added during map integration. Now, you can run your app and hope you try out other google map attributes as well.

Refer the below link for complete sample code:-
Download Sample Code
Download Apk File