Erlo

Python Ethical Hacking - WEB PENETRATION TESTING(2)

2019-10-19 22:30:16 发布   498 浏览  
页面报错/反馈
收藏 点赞

 CRAWING DIRECTORIES

  • Directories/folders inside the web root.
  • Can contain files or other directories.

Ex:

  • target.com/directory
  • plus.google.com/discover

 

Target: Metasploitable2-Linux

分享图片

 

 

#!/usr/bin/env python

import requests


def request(url):
    try:
        return requests.get("http://" + url)
    except requests.exceptions.ConnectionError:
        pass


target_url = "10.0.0.45/mutillidae/"

with open("common.list", "r") as wordlist_file:
    for line in wordlist_file:
        word = line.strip()
        response = request(test_url)
        if response:
            print("[+] Discovered URL --> " + test_url)

分享图片

 

 WoW, Amazing!

分享图片

 

登录查看全部

参与评论

评论留言

还没有评论留言,赶紧来抢楼吧~~

手机查看

返回顶部

给这篇文章打个标签吧~

棒极了 糟糕透顶 好文章 PHP JAVA JS 小程序 Python SEO MySql 确认