Giter VIP home page Giter VIP logo

onescanman's Introduction

OneScanMan

Contributors: Vishal-Bedi

All it takes is one normal scan. (Initial network enumeration and web recon script for CTFs. Created with HTB, OSCP, and OSWA in mind.)

main-qimg-53c69fa4bdd51f447dce1f43a4522ade-lq

Setup Virtual Environment

Install virtualenv

pip install virtualenv

Create a virtual environment

virtualenv Enum

Activate the virtual environment

source Enum/bin/activate

Prerequisite:

  • Run the following commands before executing the script:
    • pip install -r requirements.txt
    • sudo apt-get install dirsearch gobuster

USAGE:

usage: one_scan_man.py [-h] {enum,web_recon,info} ...

Script for web reconnaissance and enumeration.

positional arguments:
  {enum,web_recon,info}
    enum                Perform enumeration.
    web_recon           Perform web reconnaissance.
    info                Display information of important tools

options:
  -h, --help            show this help message and exit

Features

Enumeration

  • Performs network enumeration using the following tools:
    • nmap/masscan
    • dirsearch/gobuster
    • nikto
    • smbmap
    • smbclient
  • Performs the following tasks:
    • Port Discovery
    • Service Discovery
    • Banner Grabbing
    • Samba Enumeration
    • nmap script scanning
    • Directory brute force
    • Web application Enumeration
      • Run Nikto
      • Scrape webpage to find the following:
        • Links
        • Robot files
        • Parameters in URL's present within the webpage
        • Domains
        • Comments
        • Banner
usage: one_scan_man.py enum [-h] --target TARGET --output_dir OUTPUT_DIR --interface INTERFACE

options:
  -h, --help            show this help message and exit
  --target TARGET, -t TARGET
                        Target IP address or domain name
  --output_dir OUTPUT_DIR, -o OUTPUT_DIR
                        Directory to store output
  --interface INTERFACE, -i INTERFACE
                        Interface to use for scanning

Web Recon

  • Performs the following tasks:
    • Extract Links
    • Discover Robot files
    • Extract Parameters in URL's present within the webpage
    • Extract Cookies
    • Extract Domains
    • Extract Comments
    • Discover Banner
    • Run Gobuster
    • Run cewl to create wordlist from webpage
    • Run nmap known http recon scripts
usage: one_scan_man.py web_recon [-h] --scan_type SCAN_TYPE [SCAN_TYPE ...] [--proxy_url PROXY_URL] [--depth DEPTH] [--cookies COOKIES] --target_url TARGET_URL [TARGET_URL ...]

options:
  -h, --help            show this help message and exit
  --scan_type SCAN_TYPE [SCAN_TYPE ...], -s SCAN_TYPE [SCAN_TYPE ...]
                        Type of scan to perform: All, files, params, cookies, links, domains, cewl, comments, banner, dirbust, nmap
  --proxy_url PROXY_URL, -p PROXY_URL
                        Proxy URL
  --depth DEPTH, -d DEPTH
                        Recurse Depth
  --cookies COOKIES, -c COOKIES
                        Cookies
  --target_url TARGET_URL [TARGET_URL ...], -t TARGET_URL [TARGET_URL ...]
                        Target URL with paths. Example: http://target.com/path1 and http://target.com/path2 will be "http://target.com path1 path2"

Info

  • Lists information about important tools and their basic usage.
usage: one_scan_man.py info [-h]

options:
  -h, --help  show this help message and exit

Example:

python one_scan_man.py enum -t 192.168.203.50 -o 192.168.203.50 -i tun0

python one_scan_man.py web_recon -s All -p http://localhost:8080 -u "http://192.168.203.50 test1 test2"'

python one_scan_man.py info

onescanman's People

Contributors

vishal-bedi avatar

Stargazers

Andrés Lorente avatar  avatar  avatar

Watchers

Khyati Parekh avatar

Forkers

vishal-bedi

onescanman's Issues

All 3 Processes don't spawn

Sometimes, only 1 or 2 processes spawn when a scan is initiated. Stopping and Re-running the scan seems to fix the issue

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.