Giter VIP home page Giter VIP logo

pgrab's Introduction

PGrab

PGrab is a banner grabber tool used to gather information about a remote server or device, specifically the banner or header information that is sent when a connection is made.

Installation Through PIP

To install dependencies, use the following command:

pip3 install -r requirements.txt

Installation with Docker

This tool can also be used with Docker. To set up the Docker environment, follow these steps (trying using with sudo, if you get any error):

docker build -t pgrab:latest .

Using the PGrab

To run the PGrab on a domain or IP, provide the domain/IP as an argument with the flag -p to give port number:

python main.py example.com -p 80 --path /

For an overview of all commands use the following command:

python3 pgrab.py -h

The output shown below are the latest supported commands.

usage: python main.py [-h] -p PORT [--path PATH] [-o file_path] [-v] ip/hostname

PGrab is a banner grabber tool used to gather information about a remote server or device.

positional arguments:
  ip/hostname           IP address or hostname

options:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Port number
  --path PATH           Path to request
  -o file_path, --output file_path
                        Output file name
  -v, --version         show program's version number and exit

Example: python3 main.py 198.168.0.1 -p 22 --path /

Using the Docker Container

A typical run through Docker would look as follows:

docker run -it --rm pgrab example.com -p 80 --path /

NOTE: Banner grabbing can be used for legitimate purposes, such as network auditing and security testing, but can also be used for malicious purposes, so use this script responsibly and with permission from the target owner.

TODO:

  • Add support for other protocols such as:
    • https (443)
    • dns (53)
    • many more...

pgrab's People

Contributors

shivamsaraswat 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.