Coder Social home page Coder Social logo

charlesthegreat77 / endpointer Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 9 KB

EndPointer is a command-line tool designed to crawl a given URL and list all discovered endpoints. Utilizing the Colly web scraping library, EndPointer efficiently navigates through websites to provide a comprehensive list of endpoints, allowing for deeper insight into the structure and available resources of a site.

Go 100.00%

endpointer's Introduction

EndPointer

EndPointer is a command-line tool designed to crawl a given URL and list all discovered endpoints. Utilizing the Colly web scraping library, EndPointer efficiently navigates through websites to provide a comprehensive list of endpoints, allowing for deeper insight into the structure and available resources of a site. This was made with a bounty in mind ๐Ÿ’ฐ

Prerequisite ๐Ÿš€

Prerequisite Version
Go <=1.22
apt install golang-go || brew install go

Install ๐Ÿ’ป

git clone https://github.com/CharlesTheGreat77/EndPointer
cd EndPointer
go mod init EndPointer
go mod tidy

Build ๐Ÿ‘ทโ€โ™‚๏ธ

go build -o endpointer main.go

Usage ๐Ÿฆ 

To use EndPointer, run the compiled binary with the desired flags:

./endpointer -url https://example.com [options]

Available Flags ๐Ÿณ๏ธ

./endpointer -h
Usage of ./endpointer:
  -custom-headers string
        specify a file containing headers to send on request [separated by line]
  -depth int
        specify the max depth for crawling [default: 2] (default 2)
  -h    show usage
  -proxies string
        specify a file containing http/https/socks5 proxies [separated by line]
  -threads int
        specify the number of threads [default: 2] (default 2)
  -timeout int
        specify a timeout (seconds) [default: 3] (default 3)
  -url string
        specify a url [https://example.com]
  -user-agent string
        specify a custom user agent

Features

โ€ข URL Crawling: Specify a target URL to begin crawling.

โ€ข Custom User Agent: Option to set a custom user-agent for requests.

โ€ข Custom Headers: Load custom headers from a file to include in requests. (proxy rotation)

โ€ข Proxy Support: Use a list of proxies (HTTP/HTTPS/SOCKS5) to send requests.

โ€ข Thread Control: Set the number of concurrent threads for crawling.

โ€ข Depth Control: Define the maximum depth for crawling.

โ€ข Timeout Setting: Specify a timeout for requests to handle slow responses.

Example

Example

./endpointer -url https://example.com -user-agent "MyCustomAgent/1.0" -custom-headers headers.txt -proxies proxies.txt -threads 5 -depth 3 -timeout 5

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments

โ€ข Colly - Elegant Scraper and Crawler Framework for Golang.

endpointer's People

Contributors

charlesthegreat77 avatar

Stargazers

 avatar wdani avatar  avatar RocketGod 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.