Projects STRLCPY Osmedeus Commits c6bb0c49
🤬
  • ■ ■ ■ ■ ■
    cmd/cloud.go
    skipped 53 lines
    54 54   cloudCmd.Flags().IntVar(&options.Cloud.Retry, "retry", 10, "Number of retry when command is error")
    55 55   cloudCmd.SetHelpFunc(CloudHelp)
    56 56   RootCmd.AddCommand(cloudCmd)
    57  - 
     57 + cloudCmd.PreRun = func(cmd *cobra.Command, args []string) {
     58 + if options.FullHelp {
     59 + cmd.Help()
     60 + os.Exit(0)
     61 + }
     62 + }
    58 63  }
    59 64   
    60 65  func runCloud(cmd *cobra.Command, _ []string) error {
    skipped 122 lines
  • ■ ■ ■ ■ ■
    cmd/exec.go
    1 1  package cmd
    2 2   
    3 3  import (
     4 + "os"
     5 + 
    4 6   "github.com/j3ssie/osmedeus/core"
    5 7   "github.com/j3ssie/osmedeus/utils"
    6 8   "github.com/spf13/cobra"
    7  - "os"
    8 9  )
    9 10   
    10 11  func init() {
    skipped 7 lines
    18 19   execCmd.Flags().String("script", "", "Scripts to run (Multiple -s flags are accepted)")
    19 20   execCmd.Flags().StringP("scriptFile", "S", "", "File contain list of scripts")
    20 21   RootCmd.AddCommand(execCmd)
     22 + execCmd.PreRun = func(cmd *cobra.Command, args []string) {
     23 + if options.FullHelp {
     24 + cmd.Help()
     25 + os.Exit(0)
     26 + }
     27 + }
    21 28  }
    22 29   
    23 30  func runExec(cmd *cobra.Command, _ []string) error {
    skipped 33 lines
  • ■ ■ ■ ■ ■ ■
    cmd/health.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "fmt"
     5 + "os"
     6 + "path"
     7 + "sort"
     8 + 
    5 9   "github.com/fatih/color"
    6 10   "github.com/j3ssie/osmedeus/core"
    7 11   "github.com/j3ssie/osmedeus/execution"
    skipped 1 lines
    9 13   "github.com/j3ssie/osmedeus/utils"
    10 14   "github.com/olekukonko/tablewriter"
    11 15   "github.com/spf13/cobra"
    12  - "os"
    13  - "path"
    14  - "sort"
    15 16  )
    16 17   
    17 18  func init() {
    skipped 5 lines
    23 24   RunE: runHealth,
    24 25   }
    25 26   RootCmd.AddCommand(healthCmd)
     27 + healthCmd.PreRun = func(cmd *cobra.Command, args []string) {
     28 + if options.FullHelp {
     29 + cmd.Help()
     30 + os.Exit(0)
     31 + }
     32 + }
    26 33  }
    27 34   
    28 35  func runHealth(_ *cobra.Command, args []string) error {
    skipped 50 lines
    79 86   fmt.Printf("‼️ There is might be something wrong with your workflow setup: %v\n", err)
    80 87   return nil
    81 88   }
    82  - fmt.Printf(color.GreenString("\n�� Its all good. Happy Hacking ��\n"))
     89 + fmt.Printf(color.GreenString("\n�� Everything is in order. Happy Hacking ��\n"))
    83 90   return nil
    84 91  }
    85 92   
    skipped 191 lines
  • ■ ■ ■ ■ ■ ■
    cmd/provider.go
    skipped 93 lines
    94 94   providerCmd.AddCommand(providerBuild)
    95 95   providerCmd.SetHelpFunc(CloudHelp)
    96 96   RootCmd.AddCommand(providerCmd)
     97 + providerCmd.PreRun = func(cmd *cobra.Command, args []string) {
     98 + if options.FullHelp {
     99 + cmd.Help()
     100 + os.Exit(0)
     101 + }
     102 + }
    97 103  }
    98 104   
    99 105  func runCloudHealth(_ *cobra.Command, _ []string) error {
    skipped 138 lines
  • ■ ■ ■ ■ ■ ■
    cmd/queue.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "fmt"
     5 + "os"
    5 6   "path"
    6 7   "strings"
    7 8   
    skipped 19 lines
    27 28   queueCmd.PersistentFlags().StringVar(&options.Queue.RawCommand, "cmd", "", "Raw Command to run")
    28 29   queueCmd.SetHelpFunc(QueueHelp)
    29 30   RootCmd.AddCommand(queueCmd)
     31 + queueCmd.PreRun = func(cmd *cobra.Command, args []string) {
     32 + if options.FullHelp {
     33 + cmd.Help()
     34 + os.Exit(0)
     35 + }
     36 + }
    30 37  }
    31 38   
    32 39  func runQueue(_ *cobra.Command, _ []string) error {
    skipped 51 lines
  • ■ ■ ■ ■ ■ ■
    cmd/report.go
    skipped 2 lines
    3 3  import (
    4 4   "io/ioutil"
    5 5   "net/http"
     6 + "os"
    6 7   "path"
    7 8   "path/filepath"
    8 9   "strings"
    skipped 45 lines
    54 55   reportCmd.PersistentFlags().BoolVar(&options.Report.Static, "static", false, "Show report file with Prefix Static")
    55 56   reportCmd.SetHelpFunc(ReportHelp)
    56 57   RootCmd.AddCommand(reportCmd)
     58 + reportCmd.PreRun = func(cmd *cobra.Command, args []string) {
     59 + if options.FullHelp {
     60 + cmd.Help()
     61 + os.Exit(0)
     62 + }
     63 + }
    57 64  }
    58 65   
    59 66  func runReportList(_ *cobra.Command, _ []string) error {
    skipped 77 lines
  • ■ ■ ■ ■ ■
    cmd/root.go
    skipped 2 lines
    3 3  import (
    4 4   "bufio"
    5 5   "fmt"
    6  - "github.com/j3ssie/osmedeus/database"
    7 6   "os"
    8 7   "strings"
     8 + 
     9 + "github.com/j3ssie/osmedeus/database"
    9 10   
    10 11   "github.com/j3ssie/osmedeus/core"
    11 12   "github.com/j3ssie/osmedeus/libs"
    skipped 7 lines
    19 20  //var DB *gorm.DB
    20 21   
    21 22  var RootCmd = &cobra.Command{
    22  - Use: fmt.Sprintf("%s", libs.BINARY),
     23 + Use: libs.BINARY,
    23 24   Short: fmt.Sprintf("%s - %s", libs.BINARY, libs.DESC),
    24 25   Long: core.Banner(),
    25 26  }
    skipped 46 lines
    72 73   RootCmd.PersistentFlags().BoolVarP(&options.Resume, "resume", "R", false, "Enable Resume mode to skip modules that have already been finished")
    73 74   RootCmd.PersistentFlags().BoolVar(&options.Debug, "debug", false, "Enable Debug output")
    74 75   RootCmd.PersistentFlags().BoolVarP(&options.Quite, "quite", "q", false, "Show only essential information")
     76 + RootCmd.PersistentFlags().BoolVar(&options.FullHelp, "hh", false, "Show full help message")
    75 77   RootCmd.PersistentFlags().BoolVar(&options.WildCardCheck, "ww", false, "Check for wildcard target")
    76 78   RootCmd.PersistentFlags().BoolVar(&options.DisableValidateInput, "nv", false, "Disable Validate Input")
    77 79   RootCmd.PersistentFlags().BoolVar(&options.Update.NoUpdate, "nu", false, "Disable Update options")
    skipped 23 lines
    101 103   
    102 104   RootCmd.SetHelpFunc(RootHelp)
    103 105   cobra.OnInitialize(initConfig)
     106 + RootCmd.PreRun = func(cmd *cobra.Command, args []string) {
     107 + if options.FullHelp {
     108 + cmd.Help()
     109 + os.Exit(0)
     110 + }
     111 + }
    104 112  }
    105 113   
    106 114  // initConfig reads in config file and ENV variables if set.
    skipped 48 lines
  • ■ ■ ■ ■ ■ ■
    cmd/scan.go
    1 1  package cmd
    2 2   
    3 3  import (
     4 + "os"
    4 5   "strings"
    5 6   "sync"
    6 7   
    skipped 17 lines
    24 25   
    25 26   scanCmd.SetHelpFunc(ScanHelp)
    26 27   RootCmd.AddCommand(scanCmd)
     28 + scanCmd.PreRun = func(cmd *cobra.Command, args []string) {
     29 + if options.FullHelp {
     30 + cmd.Help()
     31 + os.Exit(0)
     32 + }
     33 + }
    27 34  }
    28 35   
    29 36  func runScan(_ *cobra.Command, _ []string) error {
    skipped 46 lines
  • ■ ■ ■ ■ ■ ■
    cmd/server.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "fmt"
     5 + "os"
    5 6   
    6 7   "github.com/j3ssie/osmedeus/core"
    7 8   "github.com/j3ssie/osmedeus/server"
    skipped 15 lines
    23 24   serverCmd.Flags().BoolVar(&options.Server.PreFork, "prefork", false, "Enable Prefork mode for the api server")
    24 25   serverCmd.Flags().BoolVarP(&options.Server.NoAuthen, "no-auth", "A", false, "Disable authentication for the api server")
    25 26   RootCmd.AddCommand(serverCmd)
     27 + serverCmd.PreRun = func(cmd *cobra.Command, args []string) {
     28 + if options.FullHelp {
     29 + cmd.Help()
     30 + os.Exit(0)
     31 + }
     32 + }
    26 33  }
    27 34   
    28 35  func runServer(cmd *cobra.Command, _ []string) error {
    skipped 9 lines
  • ■ ■ ■ ■ ■ ■
    cmd/update.go
    1 1  package cmd
    2 2   
    3 3  import (
     4 + "os"
     5 + 
    4 6   "github.com/j3ssie/osmedeus/core"
    5 7   "github.com/j3ssie/osmedeus/utils"
    6 8   "github.com/spf13/cobra"
    skipped 13 lines
    20 22   // generate update meta data
    21 23   updateCmd.Flags().StringVar(&options.Update.GenerateMeta, "gen", "", "Generate metadata for update")
    22 24   RootCmd.AddCommand(updateCmd)
     25 + updateCmd.PreRun = func(cmd *cobra.Command, args []string) {
     26 + if options.FullHelp {
     27 + cmd.Help()
     28 + os.Exit(0)
     29 + }
     30 + }
    23 31  }
    24 32   
    25 33  func runUpdate(cmd *cobra.Command, _ []string) error {
    skipped 35 lines
  • ■ ■ ■ ■ ■ ■
    cmd/usage.go
    skipped 16 lines
    17 17   h += QueueUsage()
    18 18   h += ReportUsage()
    19 19   h += UtilsUsage()
    20  - 
    21 20   fmt.Println(h)
    22 21  }
    23 22   
    skipped 8 lines
    32 31   
    33 32   ## Start a general scan but exclude some of the module
    34 33   osmedeus scan -t sample.com -x screenshot -x spider
     34 +
     35 + ## Initiate the scan using a speed option other than the default setting.
     36 + osmedeus scan -f vuln --tactic gently -t sample.com
     37 + osmedeus scan --threads-hold=10 -t sample.com
    35 38  
    36 39   ## Start a simple scan with other flow
    37 40   osmedeus scan -f vuln -t sample.com
    skipped 17 lines
    55 58   
    56 59   ## Start the scan with your custom workflow folder
    57 60   osmedeus scan --wfFolder ~/custom-workflow/ -f your-custom-workflow -t sample.com
     61 + 
     62 + ## Start a normal scan and backup entire workflow folder to the backup folder
     63 + osmedeus scan --backup -f domains -t list-of-subdomains.txt
    58 64   
    59 65   ## Start the scan with chunk inputs to review the output way more much faster
    60 66   osmedeus scan --chunk --chunk-parts 20 -f cidr -t list-of-100-cidr.txt
    skipped 17 lines
    78 84   h += " osmedeus scan --tactic aggressive -f general -t sample.com\n"
    79 85   h += " osmedeus scan -f extensive -t sample.com -t another.com\n"
    80 86   h += " cat list_of_urls.txt | osmedeus scan -f urls\n"
    81  - h += " osmedeus scan --threads-hold=30 -f cidr -t 1.2.3.4/24\n"
     87 + h += " osmedeus scan --threads-hold=15 -f cidr -t 1.2.3.4/24\n"
    82 88   h += " osmedeus scan -m ~/.osmedeus/core/workflow/test/dirbscan.yaml -t list_of_urls.txt\n"
    83 89   h += " osmedeus scan --wfFolder ~/custom-workflow/ -f your-custom-workflow -t list_of_urls.txt\n"
    84 90   h += " osmedeus scan --chunk --chunk-part 40 -c 2 -f cidr -t list-of-cidr.txt\n"
    skipped 49 lines
    134 140   fmt.Println(cmd.UsageString())
    135 141   h := QueueUsage()
    136 142   fmt.Println(h)
    137  - printDocs()
     143 + printDocs(cmd)
    138 144  }
    139 145   
    140 146  func CloudUsage() string {
    skipped 30 lines
    171 177  // ScanHelp scan help message
    172 178  func ScanHelp(cmd *cobra.Command, _ []string) {
    173 179   fmt.Println(core.Banner())
    174  - fmt.Println(cmd.UsageString())
     180 + if options.FullHelp {
     181 + fmt.Println(cmd.UsageString())
     182 + }
    175 183   h := ScanUsage()
    176 184   fmt.Println(h)
    177  - printDocs()
     185 + printDocs(cmd)
    178 186  }
    179 187   
    180 188  // CloudHelp scan help message
    181 189  func CloudHelp(cmd *cobra.Command, _ []string) {
    182 190   fmt.Println(core.Banner())
    183  - fmt.Println(cmd.UsageString())
     191 + if options.FullHelp {
     192 + fmt.Println(cmd.UsageString())
     193 + }
    184 194   h := CloudUsage()
    185 195   fmt.Println(h)
    186  - printDocs()
     196 + printDocs(cmd)
    187 197  }
    188 198   
    189 199  // ConfigHelp config help message
    190 200  func ConfigHelp(cmd *cobra.Command, _ []string) {
    191 201   fmt.Println(core.Banner())
    192  - fmt.Println(cmd.UsageString())
     202 + if options.FullHelp {
     203 + fmt.Println(cmd.UsageString())
     204 + }
    193 205   h := ConfigUsage()
     206 + 
    194 207   fmt.Println(h)
    195  - printDocs()
     208 + printDocs(cmd)
    196 209  }
    197 210   
    198 211  // UtilsHelp utils help message
    199 212  func UtilsHelp(cmd *cobra.Command, _ []string) {
    200 213   fmt.Println(core.Banner())
    201  - fmt.Println(cmd.UsageString())
     214 + if options.FullHelp {
     215 + fmt.Println(cmd.UsageString())
     216 + }
    202 217   h := UtilsUsage()
    203 218   fmt.Println(h)
    204  - printDocs()
     219 + printDocs(cmd)
    205 220  }
    206 221   
    207 222  // ReportHelp utils help message
    208 223  func ReportHelp(cmd *cobra.Command, _ []string) {
    209 224   fmt.Println(core.Banner())
    210  - fmt.Println(cmd.UsageString())
     225 + if options.FullHelp {
     226 + fmt.Println(cmd.UsageString())
     227 + }
    211 228   h := ReportUsage()
    212 229   fmt.Println(h)
    213  - printDocs()
     230 + printDocs(cmd)
    214 231  }
    215 232   
    216 233  // RootHelp print help message
    217 234  func RootHelp(cmd *cobra.Command, _ []string) {
    218 235   fmt.Println(core.Banner())
    219  - fmt.Println(cmd.UsageString())
     236 + if options.FullHelp {
     237 + fmt.Println(cmd.UsageString())
     238 + }
    220 239   RootUsage()
    221  - printDocs()
     240 + printDocs(cmd)
    222 241  }
    223 242   
    224  -func printDocs() {
     243 +func printDocs(cmd *cobra.Command) {
     244 + if !options.FullHelp {
     245 + if cmd.Use == libs.BINARY {
     246 + fmt.Printf("💡 For full help message, please run: %s\n", color.GreenString("osmedeus --hh"))
     247 + } else {
     248 + fmt.Printf("💡 For full help message, please run: %s or %s\n", color.GreenString("osmedeus --hh"), color.GreenString("osmedeus "+cmd.Use+" --hh"))
     249 + }
     250 + }
    225 251   fmt.Printf("📖 Documentation can be found here: %s\n", color.GreenString(libs.DOCS))
    226 252  }
    227 253   
  • ■ ■ ■ ■ ■ ■
    cmd/utils.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "fmt"
     5 + "os"
     6 + 
    5 7   "github.com/fatih/color"
    6 8   "github.com/j3ssie/osmedeus/core"
    7 9   "github.com/j3ssie/osmedeus/execution"
    skipped 61 lines
    69 71   utilsCmd.SetHelpFunc(UtilsHelp)
    70 72   RootCmd.AddCommand(utilsCmd)
    71 73   RootCmd.AddCommand(workflowCmd)
     74 + 
     75 + utilsCmd.PreRun = func(cmd *cobra.Command, args []string) {
     76 + if options.FullHelp {
     77 + cmd.Help()
     78 + os.Exit(0)
     79 + }
     80 + }
    72 81  }
    73 82   
    74 83  func runUtils(_ *cobra.Command, _ []string) error {
    skipped 74 lines
  • ■ ■ ■ ■ ■
    core/backup.go
    skipped 15 lines
    16 16  // Decompress('{{Output}}', '{{Backup}}/{{Workspace}}.tar.gz')
    17 17   
    18 18  func (r *Runner) BackupWorkspace() {
     19 + utils.InforF("Backing up the workspace: %v", r.Target["Workspace"])
    19 20   outputDir := r.Target["Output"]
    20 21   dest := path.Join(r.Opt.Env.BackupFolder, r.Target["Workspace"]) + ".tar.gz"
    21 22   if utils.FileExists(dest) {
    skipped 28 lines
  • ■ ■ ■ ■
    core/config.go
    skipped 46 lines
    47 47   
    48 48   if !utils.FileExists(options.ConfigFile) {
    49 49   // Some default config if config file doesn't exist
    50  - secret := utils.GenHash(utils.RandomString(8) + utils.GetTS())
     50 + secret := utils.GenHash(utils.RandomString(8) + utils.GetTS())[:32] // only 32 char
    51 51   prefix := secret[len(secret)-20 : len(secret)-1]
    52 52   
    53 53   v.SetDefault("Server", map[string]string{
    skipped 631 lines
  • ■ ■ ■ ■ ■ ■
    core/parse.go
    skipped 168 lines
    169 169   
    170 170   ROptions["Version"] = libs.VERSION
    171 171   ROptions["Bucket"] = options.Cdn.Bucket
    172  - ROptions["Date"] = time.Now().Format("2006-01-02")
    173  - ROptions["TS"] = utils.GetCurrentDay()
     172 + 
     173 + ROptions["Today"] = time.Now().Format("2006-01-02")
     174 + ROptions["Date"] = time.Now().Format("2006-01-02T15:04:05")
     175 + ROptions["TimeStamp"] = utils.GetTS()
     176 + ROptions["TS"] = time.Now().Format("2006-01-02") + "|" + utils.GetTS()
    174 177   
    175 178   /* --- start to load default Env --- */
    176 179   // ~/osmedeus-base
    skipped 7 lines
    184 187   ROptions["Scripts"] = options.Env.WorkFlowsFolder
    185 188   ROptions["Cloud"] = options.Env.CloudConfigFolder
    186 189   
    187  - // ~/.osmedeus/clouds
    188 190   ROptions["Workspaces"] = options.Env.WorkspacesFolder
    189 191   if options.Scan.BaseWorkspace != "" {
    190 192   ROptions["Workspaces"] = options.Scan.BaseWorkspace
    skipped 131 lines
  • ■ ■ ■ ■ ■ ■
    core/validate.go
    skipped 1 lines
    2 2   
    3 3  import (
    4 4   "fmt"
     5 + "path"
     6 + "strings"
     7 + 
    5 8   "github.com/fatih/color"
    6 9   "github.com/go-playground/validator/v10"
    7 10   "github.com/j3ssie/osmedeus/libs"
    8 11   "github.com/j3ssie/osmedeus/utils"
    9  - "path"
    10  - "strings"
    11 12  )
    12 13   
    13 14  func (r *Runner) Validator() error {
    skipped 40 lines
    54 55   utils.ErrorF("unrecognized input: %v", r.Input)
    55 56   return err
    56 57   }
    57  - utils.InforF("Start validating input: %v", color.HiCyanString("%v -- %v", r.Input, r.InputType))
     58 + utils.InforF("Start validating input: %v -- %v", color.HiCyanString(r.Input), color.HiCyanString(r.InputType))
    58 59   
    59 60   if !strings.HasPrefix(r.RequiredInput, r.InputType) {
    60 61   return fmt.Errorf("input does not match the require validation: inputType:%v -- requireType:%v", r.InputType, r.RequiredInput)
    skipped 79 lines
  • ■ ■ ■ ■ ■ ■
    database/models.go
    skipped 97 lines
    98 98  // CloudInstance store cloud scan information to check
    99 99  type CloudInstance struct {
    100 100   Model
    101  - 
    102  - Token string `gorm:"type:varchar(255)" json:"token"`
    103  - Provider string `gorm:"type:varchar(255)" json:"provider"`
     101 + Token string `gorm:"type:varchar(255)" json:"token"`
     102 + AccessKeyId string `gorm:"type:varchar(255)" json:"access_key_id"`
     103 + SecretKey string `gorm:"type:varchar(255)" json:"secret_key"`
     104 + Provider string `gorm:"type:varchar(255)" json:"provider"`
    104 105   
    105 106   InputName string `gorm:"type:varchar(255)" json:"input_name"`
    106 107   IPAddress string `gorm:"type:varchar(255)" json:"ip_address"`
    skipped 62 lines
  • ■ ■ ■ ■ ■ ■
    distribute/cloud_runner.go
    skipped 123 lines
    124 124   // ~/osmedeus-plugins/cloud/provider.yaml
    125 125   //cloudConfigFile := path.Join(options.Env.CloudConfigFolder, "provider.yaml")
    126 126   
    127  - // parse config from cloud/config.yaml file
     127 + // parse config from cloud/provider.yaml file
    128 128   providerConfigs, err := provider.ParseProvider(options.CloudConfigFile)
    129  - utils.DebugF("Parsing cloud config from: %s", color.HiCyanString(options.CloudConfigFile))
     129 + // utils.DebugF("Parsing cloud config from: %s", color.HiCyanString(options.CloudConfigFile))
    130 130   if err != nil {
    131 131   return cloudInfos
    132 132   }
    skipped 80 lines
  • ■ ■ ■ ■ ■ ■
    go.mod
    skipped 40 lines
    41 41   github.com/thoas/go-funk v0.9.2
    42 42   github.com/x-cray/logrus-prefixed-formatter v0.5.2
    43 43   github.com/xanzy/go-gitlab v0.77.0
    44  - golang.org/x/crypto v0.4.0
    45  - golang.org/x/net v0.4.0
     44 + golang.org/x/crypto v0.5.0
     45 + golang.org/x/net v0.5.0
    46 46   golang.org/x/oauth2 v0.3.0
    47  - golang.org/x/term v0.3.0
    48  - golang.org/x/text v0.5.0
     47 + golang.org/x/term v0.4.0
     48 + golang.org/x/text v0.6.0
    49 49   gorm.io/datatypes v1.1.0
    50 50   gorm.io/driver/mysql v1.4.4
    51 51   gorm.io/driver/sqlite v1.4.3
    skipped 15 lines
    67 67   github.com/go-playground/universal-translator v0.18.0 // indirect
    68 68   github.com/go-sql-driver/mysql v1.7.0 // indirect
    69 69   github.com/golang-jwt/jwt/v4 v4.0.0 // indirect
     70 + github.com/golang-module/dongle v0.2.5 // indirect
    70 71   github.com/golang/protobuf v1.5.2 // indirect
    71 72   github.com/google/go-querystring v1.1.0 // indirect
    72 73   github.com/gorilla/websocket v1.4.2 // indirect
    skipped 27 lines
    100 101   github.com/spf13/pflag v1.0.5 // indirect
    101 102   github.com/subosito/gotenv v1.4.1 // indirect
    102 103   github.com/technoweenie/multipartstreamer v1.0.1 // indirect
     104 + github.com/tjfoc/gmsm v1.4.1 // indirect
    103 105   github.com/tklauser/go-sysconf v0.3.11 // indirect
    104 106   github.com/tklauser/numcpus v0.6.0 // indirect
    105 107   github.com/valyala/bytebufferpool v1.0.0 // indirect
    106 108   github.com/valyala/fasthttp v1.41.0 // indirect
    107 109   github.com/valyala/tcplisten v1.0.0 // indirect
    108 110   github.com/yusufpapurcu/wmi v1.2.2 // indirect
    109  - golang.org/x/sys v0.3.0 // indirect
     111 + golang.org/x/sys v0.4.0 // indirect
    110 112   golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
    111 113   golang.org/x/tools v0.1.12 // indirect
    112 114   google.golang.org/appengine v1.6.7 // indirect
    skipped 8 lines
  • ■ ■ ■ ■ ■ ■
    go.sum
    skipped 130 lines
    131 131  github.com/gofiber/jwt/v2 v2.2.7/go.mod h1:yaOHLccYXJidk1HX/EiIdIL+Z1xmY2wnIv6hgViw384=
    132 132  github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o=
    133 133  github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
     134 +github.com/golang-module/dongle v0.2.5 h1:TXqw1dudLIArhpUQiVljq6nuFS2g6nMavMZ0S+cv3nU=
     135 +github.com/golang-module/dongle v0.2.5/go.mod h1:ftgKoKC90dJu5mGx2eLogyFPjN8RPIr6AHu9YVd6G/8=
    134 136  github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0ktxqI+Sida1w446QrXBRJ0nee3SNZlA=
    135 137  github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A=
    136 138  github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
    skipped 237 lines
    374 376  github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog=
    375 377  github.com/thoas/go-funk v0.9.2 h1:oKlNYv0AY5nyf9g+/GhMgS/UO2ces0QRdPKwkhY3VCk=
    376 378  github.com/thoas/go-funk v0.9.2/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q=
     379 +github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho=
     380 +github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE=
    377 381  github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
    378 382  github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
    379 383  github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
    skipped 27 lines
    407 411  golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
    408 412  golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
    409 413  golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
     414 +golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
    410 415  golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
    411 416  golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
    412 417  golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
    skipped 2 lines
    415 420  golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
    416 421  golang.org/x/crypto v0.4.0 h1:UVQgzMY87xqpKNgb+kDsll2Igd33HszWHFLmpaRMq/8=
    417 422  golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80=
     423 +golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
     424 +golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
    418 425  golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
    419 426  golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
    420 427  golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
    skipped 56 lines
    477 484  golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
    478 485  golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
    479 486  golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
     487 +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
    480 488  golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
    481 489  golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
    482 490  golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
    skipped 6 lines
    489 497  golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
    490 498  golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
    491 499  golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
     500 +golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
    492 501  golang.org/x/net v0.4.0 h1:Q5QPcMlvfxFTAPV0+07Xz/MpK9NTXu2VDUuy0FeMfaU=
    493 502  golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
     503 +golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw=
     504 +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
    494 505  golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
    495 506  golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
    496 507  golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
    skipped 68 lines
    565 576  golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
    566 577  golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=
    567 578  golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
     579 +golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
     580 +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
    568 581  golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
    569 582  golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
    570 583  golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
    571 584  golang.org/x/term v0.3.0 h1:qoo4akIqOcDME5bhc/NgxUdovd6BSS2uMsVjB56q1xI=
    572 585  golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
     586 +golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg=
     587 +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
    573 588  golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
    574 589  golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
    575 590  golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
    skipped 5 lines
    581 596  golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
    582 597  golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM=
    583 598  golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
     599 +golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
     600 +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
    584 601  golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
    585 602  golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
    586 603  golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
    skipped 198 lines
  • ■ ■ ■ ■ ■
    libs/options.go
    skipped 12 lines
    13 13   Timeout string
    14 14   EnableFormatInput bool
    15 15   Verbose bool
     16 + FullHelp bool
    16 17   
    17 18   // some disable options
    18 19   NoNoti bool
    skipped 147 lines
  • ■ ■ ■ ■
    libs/version.go
    skipped 3 lines
    4 4   
    5 5  const (
    6 6   // VERSION of this project
    7  - VERSION = "v4.3.0"
     7 + VERSION = "v4.3.1"
    8 8   // DESC description of the tool
    9 9   DESC = "A Workflow Engine for Offensive Security"
    10 10   // BINARY name of osmedeus
    skipped 17 lines
Please wait...
Page is in error, reload to recover