Android device showing offline with USB debugging

When I tried to run Android application in my mobile from Android Studio, I stuck with the error stating the application my Device was Offline.

When I run the command adb devices the error as follows

List of devices attached
00b445g34****** offline

To Enable the USB debugging option in Android device

1. Go to Settings, and select Applications > Development
2. Enable USB debugging
3. For Devices with Android KitKat and go to Settings > About devices > Tap 7 times on “Build Number”
4. Once Developer Option is enabled in the Settings, Enable USB debugging
5. Update the Android SDK Tools in Android SDK Manager
6. Traverse to \android-sdk\platform-tools and run adb devices
7. If still the problem exists restart the ADB server

adb kill-server
set ADB_TRACE=all
adb nodaemon server
adb devices

8. The ADB_TRACE will help you trace and resolving the issues like permission and others.
9. If still the problem exists kill the adb process killall adb in linuxoids and taskkill /IM adb.exe
10. Disconnect your mobile, Developer option > Revoke USB debugging authorizations (KitKat and above)
11. Restart your mobile and connect to PC. You will be asked to verify the RSA, do the same and add the device
12. Now try running adb devices, boom the device is online

List of devices attached
00b445g34****** device

The same scenario happened when I tried to run debug my AIR application in Flash developer, follow all the steps above in addition the next few steps too.

1. Copy the following files from \android-sdk\platform-tools aapt.exe, adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll, dx.jar (dx.jar from lib folder)
2. Paste them into \lib\android\bin
3. Run the command adb version from the same folder in command prompt
4. Result should be as follows
Android Debug Bridge version 1.0.31
5. Version should be greater or equal to 1.0.31

WordPress Blog hacked, All admin username changed to “CIHAN” and Emails deleted

I felt embarrassed when I found my WordPress blog was hacked. Here is what happened. It was on August 26th, 2012 at around 10 PM IST, I tried to login to my wordpress blog and found that my WordPress Admin account was unable to login. After some investigations i found that the usernames, email address of the WordPress administrator accounts have been changed.

Usually I have two users as Administrators. I tried with both, but failed to login. I ran through some basic steps/tests with the assumption that I would have lost the password, which I ended up as password lose was not the reason.

Sequence of the steps I followed:

1. First I tried to reset my password with my email id: result: WordPress gave a message that my Email id is not valid. And for other admin email I did not receive any password reset mail.
2. Since my email Id was stated as invalid. I suspected a Hack and logged into Hosting cPanel.
3. Opened phpMyAdmin and shocked to see that my username and email were changed. I found both the usernames were changed to “cihan”, the email address was deleted for one user. but the other email remained same.
4. I updated the DB and reset my password using WordPress. Still I am unable to receive mail to my Yahoo account because of some problem with my hosting account.

My Observations:
1. I have logged into my account and updated a comment on 8th August 2012 for the last time.
2. I have a plugin which send a email on every 404 error page to the Administrator email address (the email which was deleted in the Hack). The last email which was send to the Admin mail id is on 10th August 2012 – The day after 10th should be the ideal hack time.
3. WordPress does not allow any user to edit/delete username from its control panel, so this is either updated directly in the Database or it should be done through a Script from the web page – But I do not find any scripts or files updated in these days.
4. I changed my hosting accounts password and other details just few days back to the Hack suspect date. I updated the password from my laptop, which is very personal. There was no body using my Lap and my password is brand new which nobody could easily guess, I did not login in any other public machines. so I don’t think this to be hack based on Password Theft of cPanel.
5. I do not find any other changes in the settings or passwords or data loss in my website/Account/cPanel.
6. I do not find any moto of data stealing.

Atlast I backup all my data from the webserver to my local and put the site into maintenance, Sent a detailed mail to my service provider. Few days back I received a mail stating that they do not find anything suspicious in logs but they insisted to changed My custom wordpress Theme as they suspected it. Later i updated removed all my custome stuffs from the site and updated the site completely. I lost few contents from my site at the time of migration and I’m working on it get them all back.

If some one out there faced the same kind attacj on your WordPress site please contact me.