I wrote a simple script on cracking the M1 free SMS service using free internet services.
The M1 free sms website is available at http://msgctr.m1.com.sg/guest/index.jsp
The website is ‘protected’ from abuse by a very simple captcha.
The script is pretty much self explanatory and is now available on pastebin.com http://pastebin.com/31NXHGYn
You can also crack the captcha using Tesseract which is the de facto tool for cracking captchas.
However, I have used the font recognition services on http://new.myfonts.com/WhatTheFont for this purpose due to the below reasons
1. This is a very simple captcha
2. The success rates are higher than an untrained tesseract 3.0
3. I do not have to find the font that the captcha is using (required to train tesseract for recognizing the characters in the captcha)
As shown in the below screenshot, MyFonts is able to detect the characters in the captcha accurately which is perfect for cracking the captcha on M1′s sms website.
Please do not abuse the free sms service on M1′s website. It is illegal to do so.
This post is to demonstrate that weak captchas can be easily cracked using online services.
There is a very good article here on how to crack Captcha using Tesseract
For more difficult captchas, you want want to by rendering the services of human captcha crackers.
Hashcat http://hashcat.net/hashcat/ is the definitely tool to use for cracking hashes. It might be highly possible that the hash might have been cracked by others online.
Therefore, it might be more convenient to perform a lookup using the online free services before even trying to crack the hash with Hashcat.
findmyhash is a very useful tool for cracking the hashes using free online services.
Most of the password dumps have been appearing on websites like Pastebin.com and it makes it even more useful if findmyhash is able to find and crack md5/sha1 hashes located in a website link like pastebin. I have submitted a patch to https://code.google.com/p/findmyhash/issues/detail?id=7 for this new feature.
If you do not feel comfortable with another party knowing about the hashes, you should skip using findmyhash all together and dive straight to hashcat instead.
OWASP Ajax Crawling Tool is an awesome companion to the tool Burpsuite. It allows you to crawl ajax websites which is a feature missing from Burpsuite. Both are must have tools for penetration testing of modern Ajax websites.
The official website for ACT is https://www.owasp.org/index.php/OWASP_AJAX_Crawling_Tool
The current version of ACT 0.1a seems to have issues with crawling some Ajax websites due to some issues in the dependencies.
I have submitted the bugfixes to the website but it will take some time for the changes to be committed.
Below shows the screenshots of the results of the crawl before and after the patch.
After the patch
As shown in the below screenshot, extra 4 links were discovered after the patch.
Below is the temporary download link for the ACT if you can’t wait for the changes to be committed at the main site.
I have recently taken an interest in finding vulnerabilities in embedded devices. Since it is expensive to purchase some of these equipments to perform testing, it might be more cost effective to reverse the firmwares instead.
The product which I am reversing is the LifeSize Room 220. LifeSize Room 220 is a HD video conference solution.
It looks like a fairly interesting product to learn more about reversing firmware.
More information about the product can be found here. http://www.lifesize.com/Products/Video/LifeSize_Room_Series/Room_220.aspx
First, we will need to install all the prerequisites in Debian.
$ apt-get install pkgconfig libglib2.0-dev libcurl4-gnutls-dev
$ wget http://zlib.net/zlib-1.2.5.tar.gz
$ tar xvfz zlib-1.2.5.tar.gz
$ ./configure && make && make install
Next, we will download the Lifesize firmware from a 3rd party’s website
$ wget http://videonations.net/upload/lifesize/LS_RM1_4.1.1_17.cmg
Next, we will downloading and compiling binwalk which will identify signatures of compressions/filesystems on the firmware
$ wget http://binwalk.googlecode.com/files/binwalk-0.4.1.tar.gz
$ make && make install
We will need to download cramfsswap which will convert the cramfs filesystem from big endian to little endian
$ apt-get install cramfsswap
$ cramfsswap LS_RM1_4.1.1_17.fs LS_RM1_4.1.1_17.cramfs
Next, we wil need to download firmware mod kit which contains uncramfs which can be used to extract the cramfs filesytem
$ mkdir /tmp1/image
$ apt-get install subversion
$ svn checkout http://firmware-mod-kit.googlecode.com/svn/trunk/ firmware-mod-kit-read-only
$ cd firmware-mod-kit-read-only/trunk/src/uncramfs
$ ./uncramfs /tmp/cramfs /tmp1/LS_RM1_4.1.1_17.cramfs
Having identified the processor type as PowerPC, we will then download and compile Qemu which will be used for emulation.
$ wget http://wiki.qemu.org/download/qemu-1.0.tar.gz
$ tar xvfz qemu-1.0.tar.gz
$ ./configure -static
$ make && make install
$ cp /tmp1/qemu-1.0/ppc-linux-user/qemu-ppc /tmp1/image
$ chroot . ./qemu-ppc ./bin/ls
A more in-depth writeup on the IPhone espionage project has been posted at http://resources.infosecinstitute.com/iphone-espionage/
There are a couple of enterprise iPhone applications out there that promises over the air and device encryption. (e.g. MS Exchange email sandbox apps).
However, there is a fundamental issue. Some of these iPhone applications are built upon the iOS frameworks like UIViewController which provides the layout of the applications.
It is possible to hook onto these classes on a jailbroken iPhone to perform screen captures of confidential emails in your so called sandbox applications. When used together with a iPhone keyboard logger (https://github.com/milo2012/iPhone-Espionage/tree/master/kbhook2) which hooks on the UIKeyboardImpl class and captures all keystrokes that you have entered, including any passwords.
In this case, if your jailbroken device is compromised, there is only so much you can do even if you are using an iPhone application that provides encryption or security.
Should you allow jailbroken iPhones in your organization?
Should your enterprise application detect if the device is a jailbroken iPhone and exit the application if a jailbroken iPhone is detected ?
Please let me know what you think.
Source code can be found at the below link
The slide deck can be downloaded here. http://t.co/PCm5M0gu .
A demo video for the basic tool can be found here http://www.youtube.com/watch?v=m3MOLmWE4UA
Slashdot published this article “iPhone’s PIN-Based Security Transparent To Ubuntu” in May 2010. This shouldn’t work on Jailbroken iPhone 4 as the vulnerability is reported so long ago.
Using the below tool, you are able to access SMS database and other confidential information which are supposed to be protected on a passcode protected jailbroken iPhone. Well, if you have a non jailbroken iPhone, you are safe!
In order to recreate the demo that I did in HackInTheBox, you will need to run the below on your Ubuntu/Debian system or you can download the shell script from https://github.com/milo2012/iPhone-Espionage/raw/master/evil_gf_attack/setupPrerequisites.sh
- apt-get install libusb-dev usbmuxd libimobiledevice-dev libplist-dev libgnutls-dev build-essential libgnutls-dev libxml2-dev libreadline5-dev libgcrypt-dev libglib2.0-dev libplist-dev libusbmuxd-dev usbmuxd make automake autoconf libtool gcc python-dev git libfuse-dev libimobiledevice-utils -y
- mkdir /tmp1 && cd /tmp1
- git clone https://github.com/mcolyer/libiphone.git
- cd libiphone && ./autogen.sh && ./configure && make && make install
- cd /tmp1
- git clone https://github.com/mcolyer/ifuse.git
- cd ifuse && ./autogen.sh && ./configure -prefix=/ && make && make install
- cd /tmp1
- wget http://www.libimobiledevice.org/downloads/ideviceinstaller-1.0.0.tar.bz2
- bunzip2 -d ideviceinstaller-1.0.0.tar.bz2 && tar xvf ideviceinstaller-1.0.0.tar && cd ideviceinstaller-1.0.0 && ./configure && make && make install
- cd /tmp1
- apt-get install libgtk2.0-dev libnautilus-extension-dev intltool libzip-dev -y
- wget http://www.libimobiledevice.org/downloads/nautilus-ideviceinfo-0.1.0.tar.bz2
- bunzip2 -d nautilus-ideviceinfo-0.1.0.tar.bz2 && tar xvf nautilus-ideviceinfo-0.1.0.tar && cd nautilus-ideviceinfo-0.1.0 && ./configure && make && make install
After installing the prerequisites, create a folder called /tmp1 and download the file com.apple.CrashHousekeeping.plist and put it inside /tmp1
Since we are unable to use launchctl command to allow our binaries to run during setup, we need to find an alternative means.
It seems possible to overwrite the plist file for any iOS service and iOS doesnt do any verification at all. We have identified a list of launch daemons which can be safely replaced to execute our own executable instead. http://modmyi.com/forums/file-mods/682255-speed-up-your-iphone-ipod-removing-launch-daemons.html
You might want to modify the plist file with the time and executable that you want it to execute.
Next, you will download scanUSB.sh (from https://github.com/milo2012/iPhone-Espionage/blob/master/evil_gf_attack/scanUSB.sh) and put it inside /tmp1/ as well.
Run scanUSB.sh and then connect your iPhone to one of the USB ports on your computer.
It should rip out a couple of databases like google maps cached location, call history database, SMS database and cell tower location database.
It should not take more than 3 seconds if you connect it locally instead of via a VM.
Edit and compile https://github.com/milo2012/iPhone-Espionage/tree/master/sql2 and then save it in /tmp1/Transfer/sql12.
sql2 is a iPhone tool which is a POC code which extracts your Facebook caches/database as well as Dropbox offline files.
You can find more tools which you can deploy via scanUSB from here https://github.com/milo2012/iPhone-Espionage
You might want to recompile this with your own email address and password so that it delivers the information to your email.
Run /tmp/scanUSB.sh and then connect your iPhone.
Let me know if you face any issues or have any suggestions on how I can improve the tools. Enjoy!