ads

Another Attack hits Mobilepit.com

October 25th, 2009 No Comments   Posted in Announcements

Well seems Mobilepit.com has been subjected to yet another attack from spammers and has been unavailable for a duration of almost two weeks. This time the attackers injected the spam on each header of the Wordpress themes, and the payload was obfuscated using the base64 encoding.

How does the attacker managed to inject those code still baffles me, as I’ve already taken measures to remove write permission on every php files (and even directory!) on my account. Those with wordpress out there, better becareful as spams can crept into your blog without you realizing. So stay vigilant!

Mobilepit has recovered from badware attacks!

October 5th, 2009 No Comments   Posted in Announcements

Those who has been visiting this website for the last few days might notice that MobilePit has been subjected to injection attack. Causing it to distribute Badware unintentionally. This has triggered the Google Badware warning whenever somebody visited MobilePit website.

Rest assured, the injection attack has been fixed and this has been verified by the StopBadware.org to be free from malicious code. Additionally, the website has been secured to prevent similar future events from recurring.

Needless to say that, you should take care of your website security to prevent it from being compromised by spammers/crackers.

ClearContacts – Remove all contact list from your Windows Mobile Phone

September 9th, 2009 No Comments   Posted in Mobile Software, PocketPC

I’m sure at some point you may have come across this problem where you need to rid every contact information that are stored inside your Windows Mobile (Pocket PC) device. The problem is, Windows Mobile address book/contact list does not allow you to delete multiple contact at the same time. That would leave you with only one choice, to delete the contact detail one by one, which is a hardly productive work for your time.

Pocket PC generic

Fortunately, there’s ClearContacts, a small application that loop through your contact list and deletes contact information at the same time. This would eliminate the hassle that you’ve to go through when clearing your Pocket PC device from unwanted contact. Just copy/sync the ClearContacts into your device, and execute it. A dialog will appear to confirm your action, before all your contact list will be cleared.

ClearContacts requires Windows Mobile devices with at least Microsoft .Net Compact Framework 1.1 installed (don’t worry, most modern devices already have this.

a simple Click-A-Tell SendSMS HTTP POST API library

Click-a-tell is a simple web service that allows you to integrate sms sending capability into your web application. Its simplicity and wide range of API available is very attractive to small to medium web application developers. Among the API supported by Clickatell are :

  • HTTP POST
  • HTTP GET
  • FTP API
  • SOAP
  • EMAIL-to-SMS
  • COM Object

Clickatell website offers examples of how to use their API in several programming language including but not limited to : VB.net, PHP, ASP, ASP.NET,PERL, Python, Coldfusion, etc.

However I found that the example written for PHP is a little bit outdated and it uses the file() function to initiate HTTP GET request which is generally restricted on webservers as it pose a huge security risk. The other Clickatell class found through PHPClasses website are either too cumbersome for my project or supported other protocol than I intended to use.

As a result I wrote my own Clickatell SMS (clickatell_sendsms_0.5.zip) class specifically for my own use.

Here are a sample code using the SendSMS 0.5 class

PHP:
  1. <?php
  2. require('SendSMS.php');
  3.  
  4.  
  5. $sendsms = new SendSMS("username","password","HTTP POST API key");
  6.  
  7.  
  8. /* if the login return 0, means that login failed, you cant send sms after this */
  9. if  (  ($sendsms->login()) == 0  ) {
  10.     die( "failed");
  11. }
  12.  
  13. /*other wise, you can send sms using the simple send() call*/
  14.  
  15. $sendsms->send("0132073011","testing send sms - camna? boleh dpt ? - mr hafiz");
  16.  
  17. ?>

You can download the clickatell_sendsms_0.5.zip">SendSMS 0.5 PHP class from this website, note that the class is licensed under the terms of the GNU General Public License version 2, and the class is only meant to be use with Click-A-Tell HTTP POST API.

The class can also be use with the libcurlemu library whenever applicable.

Don’t SMS and Drive, it’s bad for your health

September 3rd, 2009 1 Comment   Posted in General, SMS and MMS

Fixed the annoying stale front page bug on MobilePit.com

March 13th, 2009 No Comments   Posted in Uncategorized

I've finally have the time to fix the most annoying bug on this blog. This bug manifest itself as the Wordpress "page cache" bug, where new posts were not shown on the front page of this blog, which would give the impression that this blog was not updated for quite some time to visitors.

The bug however does not affect the actual posts and web feeds, as the new posts can be accessed via their actual URL. The remedy of the problem (which i do) is to completely delete the current Wordpress installation (don't forget to backup "plugins" and "themes" directory) and replace it with a fresh installation, which a new "wp-config.php" will be created to point to the old database.

Reload the webpage, and your blog will be free from the "stale" front page bug.

Phone ReUnion: A little bit of iPhone Joke

March 9th, 2009 1 Comment   Posted in General, Smartphone