Projects STRLCPY metabigor Commits 5e7c91f2
🤬
  • ■ ■ ■ ■ ■ ■
    README.md
    1 1  <p align="center">
    2  - <img alt="Metabigor" src="https://image.flaticon.com/icons/svg/2303/2303030.svg" height="140" />
     2 + <img alt="Metabigor" src="https://image.flaticon.com/icons/svg/1789/1789851.svg" height="140" />
    3 3   <p align="center">Intelligence Tool but without API key</p>
    4 4   <p align="center">
    5 5   <a href="https://github.com/j3ssie/metabigor"><img alt="Release" src="https://img.shields.io/github/v/release/j3ssie/metabigor.svg"></a>
    skipped 31 lines
    37 37  echo "ASN1111" | metabigor net --asn -o /tmp/result.txt
    38 38  cat list_of_ASNs | metabigor net --asn -o /tmp/result.txt
    39 39   
    40  -# running masscan on port 443 for a subnet
    41  -echo "1.2.3.4/24" | metabigor scan -p 443 -o /tmp/result.txt
     40 +# Only run masscan full ports
     41 +echo '1.2.3.4/24' | metabigor scan -o result.txt
    42 42   
    43  -# running masscan on all port and nmap on open port
    44  -cat list_of_IPs | metabigor scan --detail -o /tmp/result.txt
     43 +# Only run nmap detail scan
     44 +echo '1.2.3.4:21' | metabigor scan -s -c 10
     45 +echo '1.2.3.4:21' | metabigor scan --tmp /tmp/raw-result/ -s -o result.txt
     46 + 
     47 +# Only run scan with zmap
     48 +cat ranges.txt | metabigor scan -p '443,80' -z
    45 49   
    46 50  # search result on fofa
    47 51  echo 'title="RabbitMQ Management"' | metabigor search -x -v -o /tmp/result.txt
    skipped 4 lines
    52 56   
    53 57  ## Credits
    54 58   
    55  -Logo from [flaticon](https://www.flaticon.com/free-icon/wifi_2303030) by [freepik
    56  -](https://www.flaticon.com/authors/freepik)
     59 +Logo from [flaticon](https://image.flaticon.com/icons/svg/1789/1789851.svg) by [freepik](https://www.flaticon.com/authors/freepik)
    57 60   
    58 61  ## Disclaimer
    59 62   
    skipped 6 lines
  • ■ ■ ■ ■ ■
    cmd/root.go
    skipped 10 lines
    11 11  )
    12 12   
    13 13  var options = core.Options{}
    14  -var config struct {
    15  - defaultSign string
    16  - secretCollab string
    17  - port string
    18  -}
    19 14   
    20 15  var RootCmd = &cobra.Command{
    21 16   Use: "metabigor",
    skipped 94 lines
  • ■ ■ ■ ■
    cmd/scan.go
    skipped 75 lines
    76 76   inputFile := StoreTmpInput(inputs, options)
    77 77   ports := core.GenPorts(options.Scan.Ports)
    78 78   core.DebugF("Store temp input in: %v", inputFile)
    79  - core.DebugF("Run port scan with: %v", ports)
     79 + core.DebugF("Run port scan with: %v", strings.Trim(strings.Join(ports, ","), ","))
    80 80   if inputFile == "" || len(ports) == 0 {
    81 81   core.ErrorF("Error gen input or ports")
    82 82   return nil
    skipped 177 lines
  • ■ ■ ■ ■ ■ ■
    modules/scan.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "fmt"
    5  - jsoniter "github.com/json-iterator/go"
    6 5   "io/ioutil"
    7 6   "os/exec"
     7 + "path/filepath"
    8 8   "strings"
     9 + 
     10 + jsoniter "github.com/json-iterator/go"
    9 11   
    10 12   "github.com/j3ssie/metabigor/core"
    11 13  )
    skipped 146 lines
    158 160   ports = "443"
    159 161   }
    160 162   zmapOutput := options.Scan.TmpOutput
    161  - tmpFile, _ := ioutil.TempFile(options.Scan.TmpOutput, "zmap-*.txt")
     163 + tmpFile, _ := ioutil.TempFile(options.Scan.TmpOutput, "out-*.txt")
    162 164   if zmapOutput != "" {
    163  - tmpFile, _ = ioutil.TempFile(zmapOutput, fmt.Sprintf("zmap-%v-*.txt", core.StripPath(inputFile)))
     165 + tmpFile, _ = ioutil.TempFile(zmapOutput, fmt.Sprintf("out-%v-*.txt", core.StripPath(filepath.Base(inputFile))))
    164 166   }
    165 167   zmapOutput = tmpFile.Name()
    166 168   zmapCmd := fmt.Sprintf("sudo zmap -p %v -w %v -f 'saddr,sport' -O csv -o %v", port, inputFile, zmapOutput)
    skipped 28 lines
Please wait...
Page is in error, reload to recover