![]() |
python写的oracle数据库密码扫描工具 |
闲来无事,写个小工具。扫oracle密码。 水平有限,对python没有深究,甚至在写工具的时候连"or"这种条件语句都不会。 所以大家将就下。。。 -----------------------oracle's password,user scan -----------------------code by kxlzx -----------------------voidloafer@gmail.com ---------------------- http://www.inbreak.net dbname.ini --- database name pass.ini --- passwords user.ini --- users ini file context like aaa,bbb,ccc help: oracle.py [host] [port] [save to filename] [type] oracle.py [save to filename] [tns_name] [type] type--ip use ip,port,password,username,dbname to connnect oracle type--tns use username,password,tns to connnect oracle use ag: oracle.py 192.168.0.254 1521 result.txt ip oracle.py result.txt db tns other: you need download the cx_Oracle-*-*-py25 from google and setup good luck! 使用说明: 两种破解模式,IP端口和TNS 因为同时扫描IP和端口时,在IP不存在的时候,会出现等待。所以不能扫IP。 使用的时候可以先用别的工具扫,再用这个东西破解oracle密码。 使用例子: IP模式: oracle.py 192.168.0.254 1521 result.txt ip 192.168.0.254是IP 1521是端口 result.txt是扫描结果文件 ip表示选择IP模式 或者TNS模式: oracle.py result.txt db tns result.txt是扫描结果文件 db是tns名称 tns表示选择TNS模式 dbname.ini --- 数据库名字典 pass.ini --- 密码字典 user.ini --- 用户名字典 ini 字典文件的内容必须是 “aaa,bbb,ccc” 的样子 在选择tns模式时,本机要装有一个tns才可以 使用工具之前,本机要安装cx_Oracle-*-*-py25,在google可以找到。 |