GithubHelp home page GithubHelp logo

balestek / medor Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 274 KB

medor is an OSINT tool that enables you to discover a WordPress website IP behind a WAF or behind Onion Services.

License: GNU General Public License v3.0

Python 100.00%
darknet information-gathering investigation onion onion-service open-source-intelligence osint osint-python osint-tool osint-tools

medor's Introduction

๐Ÿ• medor

PyPI Python minimum version Downloads Code style: black License

What medor's master can say about him:

medor is a good dog. Provided you send him far enough, he can come back with a juicy bone ๐Ÿฆด

Medor is an OSINT (Open Source Intelligence) tool that enables you to discover the IP address of a WordPress site, even if it's obscured by a WAF (Web Application Firewall) or located within the darknet (onion services). It requests xmlrpc.php to get the IP behind the WAF thanks to a webhook provider.

It requires several kibbles to work:

  • a WordPress website with an unsecured xmlrpc.php
  • a post from the WordPress website (not a page!)

medor comes with few features:

  • it works with the domain, the website url or a wp post
  • it can find a blog post with WordPress REST API or the feed
  • it updates and rotates user-agents per request
  • a proxy can be used
  • tor support for .onion
  • option to customize the xmlrpc response webhook URL
  • todo : an optional flask server to handle the xmlrpc.php response
  • todo : use list of proxies with random selection per request
  • todo : check an imported list of domains, hosts or url

Installation

Python 3.8+ is required.

pipx (recommended)

pipx install medor

pipenv

pipenv install medor

pip

pip install medor

Usage

Basic usage

The command to find the IP address associated with a particular item is find, followed by the item you want to investigate (such as a domain, a website URL, or a post URL)

medor find website.com
# or
medor find https://www.website.com
# or
medor find https://www.website.com/a-blog-post/

Proxy

With a single proxy

Proxy format should be protocol://user.password@IP:port if you use authentication or protocol://IP:port if not. The optional argument is --proxy=yourproxy or -p yourproxy.

Proxy doesn't work with .onion services as tor is used instead.

Allowed protocols :

  • http
  • https
  • socks5(h). For socks5h:// use socks5:// (httpx[socks] uses socks5h by default)
medor find website.com -p http://[email protected]:8080
# or
medor find https://www.website.com --proxy socks5://[email protected]:6154

Webhook

By default, medor uses a new webhook from webhook.site (see credits) but you can use another service or your own with the option --webhook= or -w followed by the webhook URL.

medor find https://www.website.com -w https://website.com/webhook/kjqh4sfkq4sj5h5f
# or
medor find website.com --webhook https://website.com/webhook/kjqh4sfkq4sj5h5f

Darknet / Onion Services

medor works as well with onion websites. For that, you need tor. There are 2 ways:

  1. Tor Browser running and connected to tor. medor will use it to connect to onion services.
  2. Installing tor on your system. To install tor, see below.
medor find rtfjdnrppk7yj0424wa5i1hc6chq4nj6p3w7tu2q5qh47fmf6pi3.onion
# or
medor find http://rtfjdnrppk7yj0424wa5i1hc3chq4nj6p3w7tu2q5qh47fmf6pi3.onion

Install tor

Windows

  1. Download Tor

Download the Tor Expert Bundle for your Windows architecture from the following link: https://www.torproject.org/download/tor/.

  1. Extract the archive

Extract the tor.exe from the archive to a convenient location on your computer, such as C:\tor\.

  1. Enter the full path of the tor.exe

When prompted during the first search for a .onion website, enter the full path of the tor.exe executable. For example, C:\tor\tor.exe.

You can also set or change the path later by using the command medor tor_path.

Linux and OSX
  1. Setup tor repo and install Tor

To obtain the latest version of Tor, you need to set the Tor package repository. This is important for security reasons.

Instructions for installing Tor can be found here: https://community.torproject.org/onion-services/setup/install/

After installing tor, you can test it by opening a terminal and running the command tor. This should start the tor process and print some log messages to the terminal. Once you have verified that Tor is working correctly, you can close the terminal or stop the tor process by pressing Ctrl+C in the terminal.

  1. Enter the tor command when prompted

When prompted during the first search for a .onion website, enter tor.

You can also set or change the command or path later by using the command medor tor_path.

Known issues

  1. If tor is already running on your system, medor may not be able to launch a new instance of tor. To resolve this issue, you need to kill the tor process. When installing tor on Ubuntu, it will start tor at every boot. You need to kill tor process before using medor or disable tor from starting at boot (sudo systemctl disable tor.service).
  2. If you get a "Timeout" error, especially with onion services, it may be a temporary issue with the Tor network. Try again.

Credits

Strongly inspired by Dan Nemec's post.

Requirements

httpx and httpx[socks]
brotlipy
stem
halo
colorama
docopt
lxml
beautifulsoup4
validators
python-dotenv

External webhook service

https://webhook.site

medor utilizes the excellent webhook service provided by Simon Fredsted's webhook.site. If you require a webhook service with a multitude of features, consider using it.

License

GPLv3

medor's People

Contributors

balestek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

medor's Issues

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.