More deletions

master
Ice3man543 2019-12-04 21:26:21 +05:30
parent 578c6746e6
commit 53ceab2aa8
4 changed files with 0 additions and 270 deletions

150
Gopkg.lock generated
View File

@ -1,150 +0,0 @@
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
branch = "master"
digest = "1:fecb89fd185fd281d6fd0fcd698c8d6bfb628cbb355808901500b414232af60d"
name = "github.com/bogdanovich/dns_resolver"
packages = ["."]
pruneopts = "UT"
revision = "a8e42bc6a5b6c9a93be01ca204be7e17f7ba4cd2"
[[projects]]
digest = "1:1b46adc9e3d878cdf38a164cfdac2e19340f4d2662aa5bee88062f6ee08ac9df"
name = "github.com/miekg/dns"
packages = ["."]
pruneopts = "UT"
revision = "8fc2e5773bbd308ca2fcc962fd8d25c1bd0f6743"
version = "v1.1.4"
[[projects]]
digest = "1:d9bf2a9b88c0e37e5871a9bce498acd918ff7ff136fb0b2b9c943a3ffffc8103"
name = "github.com/subfinder/subfinder"
packages = [
"libsubfinder/engines/bruteforce",
"libsubfinder/engines/passive",
"libsubfinder/engines/resolver",
"libsubfinder/helper",
"libsubfinder/output",
"libsubfinder/sources/archiveis",
"libsubfinder/sources/ask",
"libsubfinder/sources/baidu",
"libsubfinder/sources/bing",
"libsubfinder/sources/censys",
"libsubfinder/sources/certdb",
"libsubfinder/sources/certificatetransparency",
"libsubfinder/sources/certspotter",
"libsubfinder/sources/commoncrawl",
"libsubfinder/sources/crtsh",
"libsubfinder/sources/dnsdb",
"libsubfinder/sources/dnsdumpster",
"libsubfinder/sources/dnstable",
"libsubfinder/sources/dogpile",
"libsubfinder/sources/exalead",
"libsubfinder/sources/findsubdomains",
"libsubfinder/sources/googleter",
"libsubfinder/sources/hackertarget",
"libsubfinder/sources/ipv4info",
"libsubfinder/sources/passivetotal",
"libsubfinder/sources/ptrarchive",
"libsubfinder/sources/riddler",
"libsubfinder/sources/securitytrails",
"libsubfinder/sources/shodan",
"libsubfinder/sources/sitedossier",
"libsubfinder/sources/threatcrowd",
"libsubfinder/sources/threatminer",
"libsubfinder/sources/virustotal",
"libsubfinder/sources/waybackarchive",
"libsubfinder/sources/yahoo",
"subf",
]
pruneopts = "UT"
revision = "b89ce975d1a578eddd14271542a5ed2296a06bb8"
version = "1.2"
[[projects]]
branch = "master"
digest = "1:a551fb43ccfdc565b3749b218904c728eab00c99a7417a0860b5e58fe5a9c9db"
name = "github.com/subfinder/urlx"
packages = ["."]
pruneopts = "UT"
revision = "8e731c8be06edbae81cab15937cd3c291c2a7680"
[[projects]]
branch = "master"
digest = "1:d5891c5bca9c62e5d394ca26491d2b710a1dc08cedeb0ca8f9ac4c3305120b02"
name = "golang.org/x/crypto"
packages = [
"ed25519",
"ed25519/internal/edwards25519",
]
pruneopts = "UT"
revision = "7f87c0fbb88b590338857bcb720678c2583d4dea"
[[projects]]
branch = "master"
digest = "1:19beed19e4246df7aff387a2bcd4519a386e3fe9637690031c4d4b0cf75f7215"
name = "golang.org/x/net"
packages = [
"bpf",
"internal/iana",
"internal/socket",
"ipv4",
"ipv6",
]
pruneopts = "UT"
revision = "fe579d43d83210096a79b46dcca0e3721058393a"
[[projects]]
branch = "master"
digest = "1:d0e9a312c4610a508569ab25e54d34600b1a96d19b1866ece104ffdf1c1b9d2c"
name = "golang.org/x/sys"
packages = ["unix"]
pruneopts = "UT"
revision = "cc5685c2db1239775905f3911f0067c0fa74762f"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
input-imports = [
"github.com/bogdanovich/dns_resolver",
"github.com/subfinder/subfinder/libsubfinder/engines/bruteforce",
"github.com/subfinder/subfinder/libsubfinder/engines/passive",
"github.com/subfinder/subfinder/libsubfinder/engines/resolver",
"github.com/subfinder/subfinder/libsubfinder/helper",
"github.com/subfinder/subfinder/libsubfinder/output",
"github.com/subfinder/subfinder/libsubfinder/sources/archiveis",
"github.com/subfinder/subfinder/libsubfinder/sources/ask",
"github.com/subfinder/subfinder/libsubfinder/sources/baidu",
"github.com/subfinder/subfinder/libsubfinder/sources/bing",
"github.com/subfinder/subfinder/libsubfinder/sources/censys",
"github.com/subfinder/subfinder/libsubfinder/sources/certdb",
"github.com/subfinder/subfinder/libsubfinder/sources/certificatetransparency",
"github.com/subfinder/subfinder/libsubfinder/sources/certspotter",
"github.com/subfinder/subfinder/libsubfinder/sources/commoncrawl",
"github.com/subfinder/subfinder/libsubfinder/sources/crtsh",
"github.com/subfinder/subfinder/libsubfinder/sources/dnsdb",
"github.com/subfinder/subfinder/libsubfinder/sources/dnsdumpster",
"github.com/subfinder/subfinder/libsubfinder/sources/dnstable",
"github.com/subfinder/subfinder/libsubfinder/sources/dogpile",
"github.com/subfinder/subfinder/libsubfinder/sources/exalead",
"github.com/subfinder/subfinder/libsubfinder/sources/findsubdomains",
"github.com/subfinder/subfinder/libsubfinder/sources/googleter",
"github.com/subfinder/subfinder/libsubfinder/sources/hackertarget",
"github.com/subfinder/subfinder/libsubfinder/sources/ipv4info",
"github.com/subfinder/subfinder/libsubfinder/sources/passivetotal",
"github.com/subfinder/subfinder/libsubfinder/sources/ptrarchive",
"github.com/subfinder/subfinder/libsubfinder/sources/riddler",
"github.com/subfinder/subfinder/libsubfinder/sources/securitytrails",
"github.com/subfinder/subfinder/libsubfinder/sources/shodan",
"github.com/subfinder/subfinder/libsubfinder/sources/sitedossier",
"github.com/subfinder/subfinder/libsubfinder/sources/threatcrowd",
"github.com/subfinder/subfinder/libsubfinder/sources/threatminer",
"github.com/subfinder/subfinder/libsubfinder/sources/virustotal",
"github.com/subfinder/subfinder/libsubfinder/sources/waybackarchive",
"github.com/subfinder/subfinder/libsubfinder/sources/yahoo",
"github.com/subfinder/subfinder/subf",
"github.com/subfinder/urlx",
]
solver-name = "gps-cdcl"
solver-version = 1

View File

@ -1,42 +0,0 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
[[constraint]]
branch = "master"
name = "github.com/bogdanovich/dns_resolver"
[[constraint]]
name = "github.com/subfinder/subfinder"
version = "1.2.0"
[[constraint]]
branch = "master"
name = "github.com/subfinder/urlx"
[prune]
go-tests = true
unused-packages = true

View File

@ -1,11 +0,0 @@
{
"virustotalApikey": "",
"passivetotalUsername": "",
"passivetotalKey": "",
"securitytrailsKey": "",
"riddlerEmail": "",
"riddlerPassword": "",
"censysUsername": "",
"censysSecret": "",
"shodanApiKey": ""
}

67
main.go
View File

@ -1,67 +0,0 @@
// subfinder : Subdomain discovery tool in golang
// Written By : @codingo
// @ice3man
//
// Distributed Under MIT License
// Copyrights (C) 2018 Ice3man
// Contains main driver classes for the tool
package main
import (
"flag"
"fmt"
"github.com/subfinder/subfinder/libsubfinder/helper"
"github.com/subfinder/subfinder/subf"
)
// ParseCmdLine ... Parses command line arguments into a setting structure
// ParseCmdLine ... Parses command line arguments into a setting structure
func ParseCmdLine() (s *subf.Subfinder) {
s = subf.NewSubfinder()
flag.BoolVar(&s.State.Verbose, "v", false, "Verbose output")
flag.BoolVar(&s.State.Color, "no-color", true, "Don't Use colors in output")
flag.IntVar(&s.State.Threads, "t", 10, "Number of concurrent threads")
flag.IntVar(&s.State.Timeout, "timeout", 180, "Timeout for passive discovery services")
flag.StringVar(&s.State.Domain, "d", "", "Domain to find subdomains for")
flag.StringVar(&s.State.Output, "o", "", "Name of the output file (optional)")
flag.BoolVar(&s.State.IsJSON, "oJ", false, "Write output in JSON Format")
flag.BoolVar(&s.State.Alive, "nW", false, "Remove Wildcard Subdomains from output")
flag.BoolVar(&s.State.NoPassive, "no-passive", false, "Do not perform passive subdomain enumeration")
flag.BoolVar(&s.State.Silent, "silent", false, "Show only subdomains in output")
flag.BoolVar(&s.State.Recursive, "recursive", false, "Use recursion to find subdomains")
flag.StringVar(&s.State.Wordlist, "w", "", "Wordlist for doing subdomain bruteforcing")
flag.StringVar(&s.State.Sources, "sources", "all", "Comma separated list of sources to use")
flag.BoolVar(&s.State.Bruteforce, "b", false, "Use bruteforcing to find subdomains")
flag.StringVar(&s.State.SetConfig, "set-config", "none", "Comma separated list of configuration details")
flag.StringVar(&s.State.SetSetting, "set-settings", "none", "Comma separated list of settings")
flag.StringVar(&s.State.DomainList, "dL", "", "List of domains to find subdomains for")
flag.StringVar(&s.State.OutputDir, "oD", "", "Directory to output results to ")
flag.StringVar(&s.State.ComResolver, "r", "", "Comma-separated list of resolvers to use")
flag.StringVar(&s.State.ListResolver, "rL", "", "Text file containing list of resolvers to use")
flag.StringVar(&s.State.ExcludeSource, "exclude-sources", "", "List of sources to exclude from enumeration")
flag.BoolVar(&s.State.AquatoneJSON, "oT", false, "Use aquatone style json output format")
flag.Parse()
return s
}
func main() {
subfinder := ParseCmdLine()
if !subfinder.State.Silent {
fmt.Println("===============================================")
fmt.Printf("%s%s-=Subfinder%s v1.1.3 github.com/subfinder/subfinder\n", helper.Info, helper.Cyan, helper.Reset)
fmt.Println("===============================================")
}
subfinder.Init()
_ = subfinder.PassiveEnumeration()
fmt.Printf("\n")
}