Hey Hack Forums,
This is my first post and it will be about getting Metasploit on iPhone. I successfully installed it on my iPhone 5 running ios 7.1. To install it follow these steps[needs jailbreak]: First of all Install SBSettings from Cydia
1-On Cydia go to Sources, click Edit - Add and add these repos "http://ininjas.com/repo/" and "http://cydia.myrepospace.com/Boo/"
![[Image: i7gFYpM.png]](https://i.imgur.com/i7gFYpM.png)
2-Now go to Search on Cydia and install MobileTerminal.
3-Okay now we have to get the "wget" command on our terminal. Type in "su" and "alpine" as password to gain Root access. Now, in these steps, we will be building our own terminal. Type these commands on your terminal:
"apt-get update"
"apt-get dist-upgrade"
"apt-get install wget subversion"
4-Now we have successfully installed the "wget" command on our mobile terminal 🤗
5-Here comes the boring+harder parts. On you device, go to Settings>Wifi and connect to your wifi.
![[Image: 7DeaBPT.png]](https://i.imgur.com/7DeaBPT.png)
6-After connecting to your WiFi, on your device open SBSettings by swiping right on the clock area and write that Wi-Fi IP Address somewhere as shown below.
![[Image: QLPXJNW.png]](https://i.imgur.com/QLPXJNW.png)
7-Now if you have a Mac OSX, your work will be alot easier. If you don't, you do not need to do part 8.
8-From OSX terminal make a SSH connection to your iDevice like this:
![[Image: 5bxqhIO.png]](https://i.imgur.com/5bxqhIO.png)
9-Now we are going to download the correct version of ruby. Type these commands in:
"wget http://ininjas.com/repo/debs/iconv_1.14-...os-arm.deb"
"wget http://ininjas.com/repo/debs/zlib_1.2.3-...os-arm.deb"
"wget http://apt.saurik.com/dists/tangelo-0.9/...os-arm.deb"
"wget http://apt.saurik.com/dists/tangelo-0.9/...honeos-arm."
10-After downloading all of the deb files, we need to install them:
"dpkg -i iconv_1.14-1_iphoneos-arm.deb"
"dpkg -i zlib_1.2.3-1_iphoneos-arm.deb"
"dpkg -i ruby_1.8.6-p111-5_iphoneos-arm.deb"
"dpkg -i rubygems_1.2.0-3_iphoneos-arm.deb"
11-And after we install all of the files inside the .deb's, we do not need the .deb files any more. Lets delete them:
"rm -rf *.deb"
12-Now we have to cd to our Pentest file. (/var/mobile/pentest - If you do not have that file cd to here /private/var).
13-We are going to get Metasploit from github, with the "git" command and name it framework3 (this command will do it):
"git clone git://github.com/rapid7/metasploit-framework framework3"
14-It gives a empty git error at start sometimes, but it will continue, give it like 5-10 minutes to fully download+install required files.
![[Image: WNsX5q1.png]](https://i.imgur.com/WNsX5q1.png)
15-Now in your Pentest file, cd to Exploits and you should see a file named framework3, thats Metasploit! But no, we are not done yet 😏
16-Go to Cydia and install the file named Metasploit (6mb). This file will add the command "msfconsole" on your mobile terminal.
17-After doing that on your framework3 folder type in "msfconsole". It will give an error. (Illegal instruction: 4) To fix this error on your framework3 folder, type in "which ruby" and it will show you where ruby is installed.(lets say /usr/local/bin/ruby)
18-Now type or paste this while you are on the framework3 folder:
"sed -i'' ' s/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' /usr/local/bin/ruby"
19-After all this work, Metasploit should be working fine! 🎉
20-If you want S.E.T aswell, go on Cydia and Search for SET. Install it and you should see SET file on your /pentest/exploits file too. CD into that file and try running set like this: "./set". If it says Illegal Instruction:4, paste the code above on your SET file aswell.
21-You are done, i will be happy to help any errors! 👍
-Fortune@Chaos Hackerz-
This is my first post and it will be about getting Metasploit on iPhone. I successfully installed it on my iPhone 5 running ios 7.1. To install it follow these steps[needs jailbreak]: First of all Install SBSettings from Cydia
1-On Cydia go to Sources, click Edit - Add and add these repos "http://ininjas.com/repo/" and "http://cydia.myrepospace.com/Boo/"
![[Image: i7gFYpM.png]](https://i.imgur.com/i7gFYpM.png)
2-Now go to Search on Cydia and install MobileTerminal.
3-Okay now we have to get the "wget" command on our terminal. Type in "su" and "alpine" as password to gain Root access. Now, in these steps, we will be building our own terminal. Type these commands on your terminal:
"apt-get update"
"apt-get dist-upgrade"
"apt-get install wget subversion"
4-Now we have successfully installed the "wget" command on our mobile terminal 🤗
5-Here comes the boring+harder parts. On you device, go to Settings>Wifi and connect to your wifi.
![[Image: 7DeaBPT.png]](https://i.imgur.com/7DeaBPT.png)
6-After connecting to your WiFi, on your device open SBSettings by swiping right on the clock area and write that Wi-Fi IP Address somewhere as shown below.
![[Image: QLPXJNW.png]](https://i.imgur.com/QLPXJNW.png)
7-Now if you have a Mac OSX, your work will be alot easier. If you don't, you do not need to do part 8.
8-From OSX terminal make a SSH connection to your iDevice like this:
![[Image: 5bxqhIO.png]](https://i.imgur.com/5bxqhIO.png)
9-Now we are going to download the correct version of ruby. Type these commands in:
"wget http://ininjas.com/repo/debs/iconv_1.14-...os-arm.deb"
"wget http://ininjas.com/repo/debs/zlib_1.2.3-...os-arm.deb"
"wget http://apt.saurik.com/dists/tangelo-0.9/...os-arm.deb"
"wget http://apt.saurik.com/dists/tangelo-0.9/...honeos-arm."
10-After downloading all of the deb files, we need to install them:
"dpkg -i iconv_1.14-1_iphoneos-arm.deb"
"dpkg -i zlib_1.2.3-1_iphoneos-arm.deb"
"dpkg -i ruby_1.8.6-p111-5_iphoneos-arm.deb"
"dpkg -i rubygems_1.2.0-3_iphoneos-arm.deb"
11-And after we install all of the files inside the .deb's, we do not need the .deb files any more. Lets delete them:
"rm -rf *.deb"
12-Now we have to cd to our Pentest file. (/var/mobile/pentest - If you do not have that file cd to here /private/var).
13-We are going to get Metasploit from github, with the "git" command and name it framework3 (this command will do it):
"git clone git://github.com/rapid7/metasploit-framework framework3"
14-It gives a empty git error at start sometimes, but it will continue, give it like 5-10 minutes to fully download+install required files.
![[Image: WNsX5q1.png]](https://i.imgur.com/WNsX5q1.png)
15-Now in your Pentest file, cd to Exploits and you should see a file named framework3, thats Metasploit! But no, we are not done yet 😏
16-Go to Cydia and install the file named Metasploit (6mb). This file will add the command "msfconsole" on your mobile terminal.
17-After doing that on your framework3 folder type in "msfconsole". It will give an error. (Illegal instruction: 4) To fix this error on your framework3 folder, type in "which ruby" and it will show you where ruby is installed.(lets say /usr/local/bin/ruby)
18-Now type or paste this while you are on the framework3 folder:
"sed -i'' ' s/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' /usr/local/bin/ruby"
19-After all this work, Metasploit should be working fine! 🎉
20-If you want S.E.T aswell, go on Cydia and Search for SET. Install it and you should see SET file on your /pentest/exploits file too. CD into that file and try running set like this: "./set". If it says Illegal Instruction:4, paste the code above on your SET file aswell.
21-You are done, i will be happy to help any errors! 👍
-Fortune@Chaos Hackerz-
ayy, send me a pm about anything



