Projects STRLCPY metabigor Commits 000fbe61
🤬
  • ■ ■ ■ ■ ■ ■
    .github/FUNDING.yml
     1 +# These are supported funding model platforms
     2 + 
     3 +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
     4 +patreon: j3ssie
     5 +open_collective: osmedeus
     6 +ko_fi: # Replace with a single Ko-fi username
     7 +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
     8 +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
     9 +liberapay: # Replace with a single Liberapay username
     10 +issuehunt: # Replace with a single IssueHunt username
     11 +otechie: # Replace with a single Otechie username
     12 +custom: [ 'https://paypal.me/j3ssiejjj', 'https://www.buymeacoffee.com/j3ssie' ]
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 36 lines
    37 37  # Only run masscan full ports
    38 38  echo '1.2.3.4/24' | metabigor scan -o result.txt
    39 39   
    40  -# Only run nmap detail scan based on pre-scan data
     40 +# only run nmap detail scan based on pre-scan data
    41 41  echo '1.2.3.4:21' | metabigor scan -s -c 10
    42 42  echo '1.2.3.4:21' | metabigor scan --tmp /tmp/raw-result/ -s -o result.txt
    43 43  echo '1.2.3.4 -> [80,443,2222]' | metabigor scan -R
    44 44   
    45  -# Only run scan with zmap
     45 +# only run scan with zmap
    46 46  cat ranges.txt | metabigor scan -p '443,80' -z
    47 47   
    48  -# search result on fofa
    49  -echo 'title="RabbitMQ Management"' | metabigor search -x -v -o /tmp/result.txt
    50  - 
    51 48  # certificate search info on crt.sh
    52 49  echo 'Target' | metabigor cert
     50 + 
     51 +# find more root domains
     52 +echo 'Target Inc' | metabigor cert --json | jq -r '.Domain' | unfurl format %r.%t | sort -u
    53 53   
    54 54  # Get Summary about IP address (powered by @thebl4ckturtle)
    55 55  cat list_of_ips.txt | metabigor ipc --json
    skipped 21 lines
    77 77   
    78 78  [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/j3ssiejjj)
    79 79   
     80 +[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/j3ssie)
     81 + 
  • ■ ■ ■ ■ ■ ■
    cmd/cert.go
    skipped 30 lines
    31 31   // auto increase timeout
    32 32   options.Timeout = 120
    33 33   var inputs []string
    34  - if options.Input != "-" && options.Input != "" {
     34 + 
     35 + if options.Input != "-" {
    35 36   if strings.Contains(options.Input, "\n") {
    36  - inputs = strings.Split(options.Input, "\n")
     37 + inputs = append(inputs, strings.Split(options.Input, "\n")...)
    37 38   } else {
    38 39   inputs = append(inputs, options.Input)
    39 40   }
    skipped 40 lines
    80 81  func runCertSearch(input string, options core.Options) []string {
    81 82   var data []string
    82 83   core.BannerF(fmt.Sprintf("Search on %v for: ", "crt.sh"), input)
    83  - //options.Search.Query = input
    84  - 
    85 84   result := modules.CrtSHOrg(input, options)
    86 85   data = append(data, result...)
    87 86   
    skipped 3 lines
  • ■ ■ ■ ■ ■
    cmd/root.go
    skipped 32 lines
    33 33   RootCmd.PersistentFlags().IntVarP(&options.Concurrency, "concurrency", "c", 5, "concurrency")
    34 34   RootCmd.PersistentFlags().IntVar(&options.Timeout, "timeout", 40, "timeout")
    35 35   RootCmd.PersistentFlags().StringVarP(&options.Input, "input", "i", "-", "input as a string, file or from stdin")
    36  - RootCmd.PersistentFlags().StringVarP(&options.InputFile, "inputFile", "", "-", "Input file")
     36 + RootCmd.PersistentFlags().StringVarP(&options.InputFile, "inputFile", "I", "-", "Input file")
     37 + 
    37 38   RootCmd.PersistentFlags().StringVarP(&options.Output, "output", "o", "out.txt", "output name")
    38 39   RootCmd.PersistentFlags().BoolVar(&options.Debug, "debug", false, "Debug")
    39 40   RootCmd.PersistentFlags().BoolVarP(&options.JsonOutput, "json", "j", false, "Output as JSON")
    skipped 82 lines
  • ■ ■ ■ ■ ■ ■
    modules/cert.go
    skipped 5 lines
    6 6   "github.com/j3ssie/metabigor/core"
    7 7   jsoniter "github.com/json-iterator/go"
    8 8   "github.com/thoas/go-funk"
     9 + "net/url"
    9 10   "strings"
    10 11  )
    11 12   
    12  -// CrtSH get IPInfo from https://www.onyphe.io
     13 +// CrtSHOrg get IPInfo from https://crt.sh
    13 14  func CrtSHOrg(org string, options core.Options) []string {
    14  - url := fmt.Sprintf(`https://crt.sh/?O=%v`, org)
     15 + crtURL := fmt.Sprintf(`https://crt.sh/?O=%v`, url.QueryEscape(org))
    15 16   var result []string
    16  - core.InforF("Get data from: %v", url)
    17  - content := core.BigResponseReq(url, options)
    18  - //fmt.Println( content)
     17 + core.InforF("Get data from: %v", crtURL)
     18 + content := core.BigResponseReq(crtURL, options)
    19 19   if content == "" {
    20  - core.ErrorF("Error sending request to: %v", url)
     20 + core.ErrorF("Error sending request to: %v", crtURL)
    21 21   return result
    22 22   }
    23 23   
    24 24   infos := ParseCertSH(content, options)
    25  - 
    26 25   for _, info := range infos {
    27 26   var data string
    28 27   if options.JsonOutput {
    skipped 11 lines
    40 39   } else {
    41 40   data = info.Domain
    42 41   }
    43  - //fmt.Println(data)
    44 42   result = append(result, data)
    45 43   }
    46 44   result = funk.UniqString(result)
    skipped 51 lines
  • ■ ■ ■ ■
    modules/scan.go
    skipped 125 lines
    126 126   if CurrentUser() != "root" {
    127 127   nmapCmd = "sudo " + nmapCmd
    128 128   }
     129 + 
    129 130   //
    130 131   //nmapCmd := fmt.Sprintf("sudo nmap -sSV -p %v %v -T4 --open -oA %v", ports, input, nmapOutput)
    131 132   //if options.Scan.NmapScripts != "" {
    skipped 44 lines
    176 177   
    177 178   for _, port := range host.Ports {
    178 179   info := fmt.Sprintf("%v:%v/%v/%v", host.IPAddress, port.PortID, port.Protocol, port.Service.Product)
    179  - //fmt.Println(info)
    180 180   result = append(result, info)
    181 181   }
    182 182   }
    skipped 80 lines
  • pkged.go
    Unable to diff as some line is too long.
  • static/ip2asn-combined.tsv.gz
    Binary file.
Please wait...
Page is in error, reload to recover