Skip to main content

iPhone Hacking Platform

After I had my iPhone jailbroken, I wanted to try it as a hacking platform.  I needed some tools for that.  

In Cydia, you can download a bunch of useful apps.  Here are some that I downloaded (and where I found them):
Networking:
    - nmap
    - ngrep
    - tcpdump
    - netcat
    - whois
Admin:
    - sudo
    - top

To use these, you'll need a Terminal app.  I searched and found a Terminal app called MobileTerminal.  

This seemed to be the Terminal to use (possibly the only choice), but it kept crashing when I opened it.  Thus, I removed it and reinstalled it.   It still crashed.  Did some research, and this is a 'bug' with IOS 4.0.1.  To fix this, I followed the instructions at:

http://www.techpetals.com/install-mobile-terminal-4.26-for-ios-4-4.0.1-iphone-4-3gs-ipad-3.2.1-1803

So, I installed OpenSSH through Cydia (so that I could get into my device through my LAN), and downloaded the MobileTerminal 4.26 debian package referenced above to my Ubuntu laptop.  

I tried sshing into my OpenSSH... it hung...  OpenSSH seemed a bit buggy.  After some trial/error, it seems that ssh only works when the system is not locked.. meaning you have to keep touching the iPhone to keep it from screen-locking.  But I was able to ssh in (changed the password, of course), and put the file in with the scp command:

scp /home/john/Desktop/MobileTerminal-426.deb root@192.168.6.144:/var/root/Media/Cydia/AutoInstall/MobileTerminal-426.deb

after reboot, I didn't have MobileTerminal there, so I rebooted again (per the instructions above).  Termial still wasn't on my iPhone...  hmmmmm..  I scp'd it up again, ssh'ing in to make sure it was there, then rebooted again (just in case I screwed something up the first time).  Still not working.  So I tried by hand, and here was the result:

iPhone:~/Media/Cydia/AutoInstall root# dpkg -i MobileTerminal-426.deb 
dpkg-deb: `MobileTerminal-426.deb' is not a debian format archive
dpkg: error processing MobileTerminal-426.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 MobileTerminal-426.deb

ahhhh,,, bad deb archive file... I downloaded the MobileTerminal-426.deb file from another site, and did a diff on the original, and they didn't match.  So, I deleted the original, and tried with the new MobileTerminal-426.deb file.  SUCCESS!  This time after reboot MobileTerminal was loaded, and it worked fine (see screenshot of an nmap ping scan).



For the wifi interface (for ngrep, tcpdump, netcat, etc), I use interface 'en0'  

You'll have to dump most data you want to read to a text file, as data scrolls off the screen VERY quickly, and there is no way to scroll back up.
 
I thought of putting Metasploit and rdesktop (gooerrdp) on the phone, but after using simple tools like nmap, tcpdump, and ngrep, it was clear that screen-real-estate-heavy tools would be too cumbersome to be worth the trouble.  The main benifits of an iPhone hacking platform are the always-on and small (covert) form factor the iPhone provides.  But it simply didn't seem worth the struggle to use with complex tools.  So I'll save them for laptop use.  

However, for simple tools, especially ones that don't spit out much data, or spit data that is temporally relevant (like a tcpdump dump), the jailbroken iPhone will certainly come in handy.

Comments

Popular posts from this blog

ADS-B plotting with Kali (and other SDR goodies)

Recently I wanted to try some Software Defined Radio stuff.   
I had a RTL-SDR, FM+DAB, DVB-T USB Stick Set with RTL2832U & R820T. that I got from: http://www.amazon.com/gp/product/B00C37AZXK/ref=oh_details_o04_s00_i00?ie=UTF8&psc=1
But, even though this dongle would break out FM radio stations, and ATC frequencies (like the local Ground Control, tower, and even ATIS), which was cool, it wouldn't break out ADS-B.   
Thus, I bought a Vantech Green Mini RTL2832U R820T DVB-T SDR DAB FM USB DIGITAL TV Tuner Receiver RTL-SDR Project + DAB dongle Tuner MCX Input from Amazon, and tried this.  
This dongle was able to listen to the 1090MHz frequency required for ADS-B (as it goes from 25MHz to 1700MHz).  There were tons of Windows programs out there for breaking out and plotting ADS-B Mode S broadcasts, but not many for Linux.  
For Kali Linux, here's how I got it running and plotting planes around my home:
0) before you start, you should do an apt-get update to ensure you hav…

Beaglebone Black as a Wireless Intrusion Detection System (WIDS)

Recently I have been wanting a wireless IDS (WIDS) to detect nefarious wifi activity.  I also had a Beaglebone Black hanging around that I wanted to put to good use.   This seemed like a perfect match, and indeed it seems to be so!

I did some research on WIDSs, and although there is SUPPOSED to be several out there, nearly all that I seemed to find was commercial and Windows-based products, not something I could use myself.   
About the only exception to that rule was Kismet, so I decided to give that a try.  Kismet is supposed to work as a WIDS, and per its documentation should catch the following attacks:
Kismet supports the following alerts, where applicable the WVE (Wireless Vulnerability and Exploits, www.wve.org) ID is included: AIRJACKSSID Fingerprint Deprecated The original 802.11 hacking tools, Airjack, set the initial SSID to 'airjack' when starting up. This alert is no longer relevant as the Airjac…

Temper Temperature monitor on a Beaglebone Black

Beaglebone Black as a temperature monitor:

Recently I wanted to monitor the temperature of my shed.  I thought I'd use a small computer such as a Raspberry Pi or a Beaglebone or Odroid.

My Raspberry Pi boxes were all in use, so I grabbed my Beaglebone, which was doing nothing.

I flashed it with the Debian9.32018-03-054GB SDIoTimage, but that seemed like it was running lots of bloatware and the ethernet interface wouldn't take a static IP with /etc/network/interfaces.

So I went with the Debian9.32018-01-284GB SDLXQTi image instead.  I still had the same problem, that lots of junk was running, and I couldn't configure my interface by modifying /etc/network/interfaces

So my first step was to get rid of all the bloatware.  If you're using a Raspberry Pi or something, you can skip this and just go to the second step below

STEP 1--Remove Blotatware from Beaglebone Black:

With some searching, I came across this post:
https://www.linuxquestions.org/questions/linux-newbie-8/inte…