当前位置: 首页 > news >正文

绩效管理网站开发百度搜索关键词排名

绩效管理网站开发,百度搜索关键词排名,怎样让google收录网站,为什么wordpress在ie打开很慢一、引用的python模块 Crypto: Python中一个强大的加密模块,提供了许多常见的加密算法和工具。它建立在pyc.ypodome或pyc.ypto等底层加密库之上,为Python程序员提供了简单易用的API,使其可以轻松地实现各种加密功能。 commands…

一、引用的python模块

Crypto:

Python中一个强大的加密模块,提供了许多常见的加密算法和工具。它建立在pyc.ypodome或pyc.ypto等底层加密库之上,为Python程序员提供了简单易用的API,使其可以轻松地实现各种加密功能。

commands:

commands 模块是 Python 的内置模块,它主要有三个函数:

FUNCTIONS
getoutput(cmd)
Return output (stdout or stderr) of executing cmd in a shell.getstatus(file)
Return output of "ls -ld <file>" in a string.getstatusoutput(cmd)
Return (status, 'output) of executing cmd in a shell.

SYS: 基础系统模块

sys模块是与python解释器交互的一个接口。sys 模块提供了许多函数和变量来处理 Python 运行时环境的不同部分。

二、实现过程

python脚本如下:

import crypt
import commands
import sys

def testPass(user,cryptPass,ipaddr):
    #dictfile=open('dictionary.txt','r')
    start_index=cryptPass.find("$")
    finish_index=cryptPass.rfind("$")
    salt=cryptPass[start_index:finish_index+1]
    dictfile=open('/root/dict.txt','r')
    pwd_suffix = ['','.','..','!','!@#','1','123','1234','12345','123456','888','666','999','2006','2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018','2019']
    for sfx in pwd_suffix:
        #print user+sfx
        for separator in ['','@','#','&']:
            cryptWord=crypt.crypt('%s%s%s'%(user,separator,sfx),salt)
            if cryptWord==cryptPass:
                #print ipaddr + " [+] Found Password: " +user+'/'+user+sfx+ " \n"
                print '%s [+] Found Passwd: %s/%s%s%s \n'%(ipaddr,user,user,separator,sfx)
                break
            cryptWord=crypt.crypt('%s%s%s'%(user,sfx,separator),salt)
            if cryptWord==cryptPass:
                #print ipaddr + " [+] Found Password: " +user+'/'+user+sfx+ " \n"
                print '%s [+] Found Passwd: %s/%s%s%s \n'%(ipaddr,user,user,sfx,separator)
                break
    for word in dictfile.readlines():
        #print word
        word=word.strip()
        cryptWord=crypt.crypt(word,salt)
        if cryptWord==cryptPass:
            print ipaddr + " [+] Found Password: " +user+'/'+word+ " \n"
            break
    print('[-] Password not found!')

def main():
    cmd = "ifconfig|grep \"inet addr\"|grep -v 127.0.0.1|awk '{print $2}'"
    ipaddr = commands.getoutput(cmd).replace('addr:','').replace('\n','|')
    shadowfile=open('/etc/shadow')
    for line in shadowfile.readlines():
        user=line.split(':')[0]
        cryptPass=line.split(':')[1].strip('\n')
        if not (cryptPass.startswith('*') or cryptPass.startswith('!')): 
            print "[*] Cracking Password For: " +user
            testPass(user,cryptPass,ipaddr)

if __name__=='__main__':
    main()

注:破解密码有两种方式,一种是通过脚本pwd_suffix定义的后缀,另一种是调用密码字典库(/root/dict.txt)来破解。

三、演示效果

创建一个测试用户testuser,密码设置成123456,然后执行检测脚本。滴,弱密码已被发现!

http://www.ds6.com.cn/news/42595.html

相关文章:

  • 外国做美食视频网站网络营销八大职能
  • 建一个网站需要网站程序吗关键词快速排名怎么做
  • 领导交给你一个网站你该怎么做惠州seo外包平台
  • 巫溪县城乡建设委员会网站鸣蝉智能建站
  • 海珠区建网站公司什么推广方式能快速引流
  • 国外优秀人像摄影网站关键词上首页的有效方法
  • 网站制作价格是多少元下拉框关键词软件
  • 网站挂黑链赚钱全网媒体发布平台
  • 网站怎么做直通车网站手机版排名seo
  • 网页设计导航栏尺寸百度seo排名培训优化
  • 做采购常用的几个网站郑州seo建站
  • 广州做网站最好的公司东营百度推广电话
  • 代做土木毕业设计网站互联网公司排名100强
  • 免费个人网站模版ps竞价开户推广
  • 怎么查看网站是哪个公司做的资源网
  • 衡阳网站建设步骤摘抄一篇新闻
  • 如何查看网站备案信息吗日喀则网站seo
  • 网站建设那个好天天seo伪原创工具
  • 做旅行网站浙江百度推广开户
  • 做网站一般做几个尺寸seo和sem是什么意思
  • 成都电子商务网站建设公司软文广告经典案例600
  • 王建设个人网站网站域名综合查询
  • 个人网站优秀济宁百度推广公司有几家
  • 成交型网站建设价格中央新闻联播
  • 贵州省住房和建设厅网网站关键字有哪些
  • 自己怎么做返利网站吗互联网营销师怎么报名
  • 武汉光谷做网站哪家好济南seo优化外包服务公司
  • wordpress做dropping沈阳seo团队
  • 网站建设的销售怎么做应用市场
  • 织梦做的网站怎么添加关键词百度优选官网