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):
    - nmap
    - ngrep
    - tcpdump
    - netcat
    - whois
    - 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:

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@

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:

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.


Popular posts from this blog

atftpd vs tftpd-hpa

Recently I was trying to tftp files from a Windows computer to a Kali box.   One version of Windows worked, but another didn't.    After much troubleshooting, here were my symptoms:

I could tftp a file from-to any Kali box from-to another Kali box
I could NOT tftp files to a specific Windows 7 box from any Kali box
I could NOT tftp files to a Chrooted-Ubuntu-Chromebook box from a Kali box

After MUCH troubleshooting, going through every setting in atftpd, it seemed like it literally was a client OS problem.  Different clients simply would not download files---unacceptable.

Thus, I switched to tftpd-hpa.   To install:
apt-get install tftpd-hpa

files go to/come from /srv/tftp, but it needs to be a tftp user. Thus, I needed to:
chroot -R /srv/tftp

Also, if you want to be able to put files ON the tftp server (from a client), you need to modify /etc/default/tftpd-hpa:
change "TFTP_OPTIONS="--secure" to "TFTP_OPTIONS="--secure --create"

I also changed the IP li…

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:
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…

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:…