Giter Site home page Giter Site logo

ice3man543 / subover Goto Github PK

View Code? Open in Web Editor NEW
903.0 27.0 198.0 162 KB

A Powerful Subdomain Takeover Tool

License: BSD 2-Clause "Simplified" License

Go 100.00%
subdomain-takeover subdomain subdomains bug-bounty bugbounty takeover-subdomain hostile hostile-subdomain-takeover takeover pentesting

subover's Introduction

SubOver

Note - This project is discontinued. No more updates will be provided! Sorry!

But something more awesome will come soon!

Subover is a Hostile Subdomain Takeover tool originally written in python but rewritten from scratch in Golang. Since it's redesign, it has been aimed with speed and efficiency in mind. Till date, SubOver detects 30+ services which is much more than any other tool out there. The tool uses Golang concurrency and hence is very fast. It can easily detect and report potential subdomain takeovers that exist. The list of potentially hijackable services is very comprehensive and it is what makes this tool so powerful.

Installing

You need to have Golang installed on your machine. There are no additional requirements for this tool.

go get github.com/Ice3man543/SubOver

NOTE - Do not change the location of providers.json file. Or the tool will not work.

Usage

./SubOver -l subdomains.txt

  • -l List of Subdomains
  • -a Check all hosts regardless of CNAME (Time Consuming and prone to fp's)
  • -t Number of concurrent threads. (Default 10)
  • -v Show verbose output (Default False)
  • -https Force HTTPS Connection (Default HTTP)
  • -timeout Set custom timeout (Default 10)
  • -h Show help message

Currently Checked Services

Github, Heroku, Unbounce, Tumblr, Shopify, Instapage, Desk, Tictail, Campaignmonitor, Cargocollective, Statuspage, Amazonaws, Cloudfront, Bitbucket, Smartling, Acquia, Fastly, Pantheon, Zendesk, Uservoice, Ghost, Freshdesk, Pingdom, Tilda, Wordpress, Teamwork, Helpjuice, Helpscout, Cargo, Feedpress, Surge, Surveygizmo, Mashery, Intercom, Webflow, Kajabi, Thinkific, Tave, Wishpond, Aftership, Aha, Brightcove, Bigcartel, Activecompaign, Compaignmonitor, Acquia, Proposify, Simplebooklet, Getresponse, Vend, Jetbrains, Azure

Count : 51

Screenshot

tool_in_action

FAQ

Q: What should my wordlist look like?

A: Your wordlist should include a list of subdomains you're checking and should look something like:

backend.example.com
something.someone.com
apo-setup.fxc.something.com

Your tool sucks!

Yes, you're probably correct. Feel free to:

  • Not use it.
  • Show me how to do it better.

TODO

  • Add more services :-)
  • Improve the tool (There are many things that can be done :-) )

Development

Want to contribute? Great!

You can add more services or recommend any changes to the existing ones. Any kind of help is appreciated.

Or buy me a coffee \o/

Buy me a coffee ko-fi

License

BSD 2-Clause "Simplified" License

Contact

Meet me on Twitter: Twitter

Changelog

[1.2] 2018-05-19

  • Refactored whole code making it cleaner
  • Added better error handling and more verbose stuff
  • Implemented checking all domains
  • Fixed other stuff, etc...

[1.1.1] - 2018-03-20

  • Providers corrected using EdOverflow's Awesome List
  • Added Information regarding various takeovers to the tool

[1.1.0] - 2018-03-16

  • Rewritten from scratch in Golang
  • This time it's damn fast because of Go Concurrency.
  • The console output looks better :-)

[1.0.0] - 2018-02-04

  • Initial Release with 35 Services written in Python.
  • Pretty Slow :-)

Credits

subover's People

Contributors

ccsplit avatar codingo avatar ice3man543 avatar johnlam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

subover's Issues

Automatically check both HTTP and HTTPS for Cloudfront

First off, love the tool. Great work.

Since Cloudfront domains can be either HTTP or HTTPS, can you add functionality to also check whichever protocol wasn't supplied? Maybe this could be a boolean argument like --check-protocols or something.

I'd fork and add it, but I haven't learned Go yet.

Thanks!

providers.json

hello,
congrats for the tool, is awesome..!
can you please consider in the next release embedding providers.json in the tool so i wont have to change directory everytime i wanna scan some text file that is in an other dir ..
thanks

Domain already in use

Hi,
Your tool gave me this output: Takeover Possible At :

This is the dig output:
DiG 9.11.3-1ubuntu1-Ubuntu <<>> CNAME unbouncepages.com
it determined that out of this output the domain is vulnerable to subdomain takeover,
when registering to unbouncepages.com to try to claim the original domain it says that the domain is already in use.

peakon

Tool not providing output

When running the tool against a list there isn't any output from the tool within the terminal or the output file. It seems like the tool isn't actually running against the targets and just exits.

OS: High Sierra

Installation issues in Kali Linux.

image

I am facing issues when installing the tool. The tool is fine, the installation method of golang has changed. Changing 'go get' command to 'go install' command followed by the source link and version does the job.

example command -

go install github.com/Ice3man543/SubOver@master

nothing shown

Hello i just got this ...

./SubOver -l subs.txt
SubOver v.1.2 Nizamul Rana (@Ice3man)

[~] Enjoy your hunt !

looks like the tool does not do anything

Hello,
When I execute this tool this is the output that I get:
Sub0ver -v -l domains.txt
screen shot 2018-06-24 at 22 48 58

It looks like the tool isn't working.
The content of the file domains.txt is a list of domains, for example:
www.example.com
new.domain.com
other.domain.com

Error: no such file or directory

If I run SubOver -l subdomains.txt like in the description an error appears:

SubOver v.1.2              Nizamul Rana (@Ice3man)
==================================================

open providers.json: no such file or directory

What is providers.json for a file?

Continues to run by not determining end of queue.

The Tool continues to run even when all the queue items have been checked.

There is a bug in the program. It keeps running indefinitely even on ending the queue. This leads to output not working. It's a good first issue for anyone to tackle.

I will fix it in future. But if someone does it, I'll be glad.

Installation issue

Hello sir,

Can i install it on windows7?if yes then what is the procedure and commands?

cannot find package "golang.org/x/net/publicsuffix"

When I try go build subover.go to install script, I get the following error:

/root/go/src/github.com/parnurzeal/gorequest/gorequest.go:32:2: cannot find package "golang.org/x/net/publicsuffix" in any of:
/usr/lib/go-1.11/src/golang.org/x/net/publicsuffix (from $GOROOT)
/root/go/src/golang.org/x/net/publicsuffix (from $GOPATH)

Please provide a complete installation guide.

cannot find package

subover.go:10:5: cannot find package "github.com/parnurzeal/gorequest" in any of:
c:\go\src\github.com\parnurzeal\gorequest (from $GOROOT)
C:\Users\rizal\go\src\github.com\parnurzeal\gorequest (from $GOPATH)

I run it at windows? Is that possible?

Error message: open /src/github.com/Ice3man543/SubOver/providers.json: no such file or directory

I did what is written in the documentation:

go get github.com/Ice3man543/SubOver

Now, I find a new file ~/go/bin/SubOver in my personal home directory. When I now call ~/go/bin/SubOver, I get this message

$ ~/go/bin/SubOver -l output.temp 

SubOver v.1.2              Nizamul Rana (@Ice3man)
==================================================

open /src/github.com/Ice3man543/SubOver/providers.json: no such file or directory

Edit

I've done this on an Ubuntu 18.04 machine.

Wrong fmt.Print function

fmt.Println("\n[\033[31;1;4mCLOUDFRONT\033[0m] Takeover Possible At : %s With HTTP & HTTPS", s.Url)

Either use:

fmt.Printf("\n[\033[31;1;4mCLOUDFRONT\033[0m] Takeover Possible At : %s With HTTP & HTTPS\n", s.Url)

or

fmt.Println("\n[\033[31;1;4mCLOUDFRONT\033[0m] Takeover Possible At : " + s.Url + " With HTTP & HTTPS")

Installation Issue

I am getting below error when running the ./subover.go

./subover.go: line 1: //: Is a directory
./subover.go: line 2: package: command not found
./subover.go: line 4: syntax error near unexpected token newline' ./subover.go: line 4: import ('

Github page takeover doesn't work

You might need to update the providers.json to detect the Github Page TakeOver at

"cname":["github.io"],

For my case the DNS for the takeover looked like
github.github.io. 1412 IN CNAME sni.github.map.fastly.net.

What do you think about updating it to match the following ?
"cname":["github.io", "fastly.net", "github.com", "github.map"],

Cheers

[ERROR] request canceled while waiting for connection

i get this 2 errors while running the tool and it stops scanning the other subdomains:

2019/11/29 18:09:21 [ERROR] Get: asda.asde.com => [Get http://asda.asde.com/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)] 2019/11/29 18:09:21 [ERROR] Get: asda.asde222.com => [Get http://asda.asde222.com/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)]

Am i doing something wrong? i'm running the tool with go run subover.go -l subs.txt

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.