Knowledge Base

Ask A Question

Questions

0

Please help me i Just in installed Metasploit on windows

but when i try to run the console.bat i get this C:\metasploit>console.bat C:/metasploit/ruby/lib/ruby/site_ruby/2.3.0/rubygems/user_interaction.rb:688:in `initialize': Is a directory @ rb_sysopen - /dev/null (Errno::EISDIR) from C:/metasploit/ruby/lib/ruby/site_ruby/2.3.0/rubygems/user_interaction.rb:688:in `open' from C:/metasploit/ruby/lib/ruby/site_ruby/2.3.0/rubygems/user_interaction.rb:688:in `initialize' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/ui/rg_proxy.rb:10:in `initialize' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:68:in `new' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:68:in `ui=' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:64:in `ui' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/lockfile_parser.rb:92:in `initialize' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:63:in `new' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:63:in `initialize' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/dsl.rb:177:in `new' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/dsl.rb:177:in `to_definition' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/dsl.rb:12:in `evaluate' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:25:in `build' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:123:in `definition' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:91:in `setup' from C:/metasploit/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/setup.rb:9:in `<top (required)>' from C:/metasploit/ruby/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:128:in `require' from C:/metasploit/ruby/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require' from C:/metasploit/ruby/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:39:in `require' C:\metasploit>

Posted by Daniel Murphy 6 months ago

3

SQL Report Help

I need number count of critical, severe and moderate vulnerabilities summary I found this: which does the above. SELECT da.ip_address AS "Asset IP Address", da.host_name AS "Asset Name", fa.critical_vulnerabilities AS "Critical Vulnerabilities", fa.severe_vulnerabilities AS "Severe Vulnerabilities", fa.moderate_vulnerabilities AS "Moderate Vulnerabilities", fa.vulnerabilities AS "Vulnerabilities" FROM dim_asset da JOIN fact_asset fa USING(asset_id) Also, needs to list the ip address, host name, vulnerability, cvss score with a 30,60, 90 day old vulnerabilities. I found this: SELECT to_char(fav.date, 'Mon-YY') AS date, dv.title as "Title", da.ip_address as "Ip Address", da.host_name as "Hostname", dvc.category_name as "Category", CASE WHEN dv.severity_score < '3' THEN 'MODEATE' WHEN dv.severity_score <= '7' THEN 'SEVERE' WHEN dv.severity_score <= '10' THEN 'CRITICAL' ELSE 'Unknown' END AS "Severity", CASE WHEN age(dv.date_published) < '30 days' THEN '<30 days' WHEN age(dv.date_published) <= '60 days' THEN '30-60 days' WHEN age(dv.date_published) <= '90 days' THEN '60-90 days' ELSE '90+ days' END AS "Age" FROM fact_asset_vulnerability_instance AS fav INNER JOIN dim_vulnerability AS dv ON fav.vulnerability_id = dv.vulnerability_id INNER JOIN dim_asset AS da ON fav.asset_id = da.asset_id INNER JOIN dim_vulnerability_category AS dvc ON fav.vulnerability_id = dvc.vulnerability_id GROUP BY to_char(fav.date, 'Mon-YY'), CASE WHEN age(dv.date_published) < '30 days' THEN '<30 days' WHEN age(dv.date_published) <= '60 days' THEN '30-60 days' WHEN age(dv.date_published) <= '90 days' THEN '60-90 days' ELSE '90+ days' END, date_part('year', fav.date), date_part('month', fav.date), dv.title, da.ip_address, da.host_name, dvc.category_name,dv.date_published, dv.severity_score ORDER BY date_part('year', fav.date), date_part('month', fav.date), "Age"; But I dont know how to link them ...ANy suggestion?

Posted by Vanessa villalpando 6 months ago