Giter Club home page Giter Club logo

rai-pentester's Introduction

RAI - Python for Pentester

Exercise 1: Create a Python script that prints all the forms and links of a web page sent by argument to the program.

Exercise 2: Create a tool to perform the following tasks:

  1. Given an IP address or a domain name, find information related to the owner of that domain and the corresponding DNS records.
  2. Run a scan with Nmap against the target and subsequently, obtain more information from the target using Shodan.
  3. In the case of finding ports that are frequently related to web servers (80, 8080, 443) perform an HTTP request using the OPTIONS method to determine if indeed, the target is a web server and extract the supported HTTP methods.

Tools 🛠️

  • BeautifulSoup library
  • Python Whois library
  • DNS library
  • Request HTTP library
  • Nmap library
  • Shodan library

Execution instructions ⚙️

Both exercises have a help message to know the flags required for their execution with the -h tag.

python3 <name_exercise> -h

Exercise 1

For this exercise it is only necessary to enter the domain of a web page by command line, so run:

python3 exercise1.py -d <url_webpage>

Exercise 2

For this exercise it is only necessary to enter the domain of a web page by command line, so run:

python3 exercise2.py -d <url_webpage>

Once the run is launched, the domain owner information will be obtained with Whois and its corresponding DNS records. Afterwards, a port scan will be performed with the Nmap tool where the supported HTTP methods will be displayed on the screen, in case it supports any, if any port belonging to a web server is found. Finally, more information about the domain owner will be obtained with the Shodan tool.

rai-pentester's People

Contributors

mariaespinosaastilleros avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.