Python Ethical Hacking - WEB PENETRATION TESTING(3)

CRAWLING SUMMARY

Our crawler so far can guess:

  • Subdomains.
  • Directories.
  • Files.

 

Advantages:

->Discover "hidden" paths/paths admin does not want us to know.

 

Disadvantages:

-> Will does not discover everything.

 

Solution:

-> Analyse discovered paths to discover more paths.

 

#!/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/"

response = request(target_url)

print(response.content)

 

posted @ 2019-10-19 22:03  晨风_Eric  阅读(100)  评论(0编辑  收藏  举报