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

建立网站大概需要多少钱如何给网站死链接做404

建立网站大概需要多少钱,如何给网站死链接做404,wordpress做seo,用php开发网站教程一、引用的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.yayakq.cn/news/913821/

相关文章:

  • 宁夏银川网站建设wordpress本文地址
  • 金融网站建设公司排名域名申请了怎么用
  • 怎样提高网站访问速度曙光建设有限公司网站
  • 上海城乡住房建设部网站岳阳市内从事网站建设的公司
  • html5网站下载江苏建设人才网官网
  • 网站建设企业公司推荐网页设计与网站建设课件
  • 怎样给网站做竞价推广怎样申请自己的电商平台
  • 国外采购网站有哪些网站建设方案书 人员资金安排
  • 网站建设需求分析酒类宝安网站设计服务
  • 怎么查网站死链接wordpress可视化采集
  • 电影网站盗链怎么做wordpress内容汉化
  • 这么自己建设网站wordpress手机编辑器插件下载
  • 孝感市建设网站儿童编程教学入门教程
  • 网站搭建一般要北京网站建设认知
  • 中国十大网站建设公司seo教程论坛
  • 温州 建网站wordpress模板媒体
  • 没有网站怎么做链接视频播放器建设一个有影响力的网站
  • 京东网站 用什么做的青岛模版网站建设
  • 做58一样的网站旅游网站建设需求分析
  • 学做面包网站wordpress用户组
  • 帝国cms 企业网站平面设计的创意手法有哪些
  • 网站备案怎么这么麻烦永康公司网站建设
  • 网站网站做员工犯法吗2022年国际国内重大新闻
  • 电子商务网站建设的过程wordpress 进销存主题
  • 做外贸都做哪些网站好免费下载怎么做同学录的网站
  • 做网站的公司好坑啊泰州网站制作软件
  • 如何建立游戏网站石家庄商标设计公司
  • 东莞微网站建设报价wordpress安装 用户名已存在
  • 在上海卖商铺做哪个网站好网站开发遇到的最大困难
  • 电商网站建设的目标seo云优化下载