Comments (5)
@Items = Item.critical_risks_unique.order("plugins.plugin_name")
@items.each do |item|
puts item.plugin_name
end
that should order the plugin names for you
from risu.
Awesome!
from risu.
It almost worked:
1 - Adobe Download Manager Arbitrary File Download (APSB10-08)
3 - Apache 2.2 < 2.2.15 Multiple Vulnerabilities
2 - Compaq WBEM HTTP Server Remote Overflow
1 - Linksys Router Debug Credentials (Gemtek / gemtekswd)
2 - Microsoft Windows 2000 Unsupported Installation Detection
2 - MS10-054: Vulnerabilities in SMB Server Could Allow Remote Code Execution (982214) (remote check)
1 - Oracle Java JDK / JRE 6 < Update 20 Multiple Vulnerabilities
7 - Oracle Java SE Multiple Vulnerabilities (February 2011 CPU)
3 - Oracle Java SE Multiple Vulnerabilities (October 2010 CPU)
1 - Shockwave Player < 11.5.9.620 (APSB11-01)
2 - Trend Micro Antivirus Detection
1 - Adobe Photoshop Elements Active File Monitor Service Privilege Escalation (APSB09-17)
1 - Deterministic Network Extender 'dne2000.sys' Local Privilege Escalation
4 - SMB Insecurely Configured Service
178 - Trend Micro OfficeScan TMTDI Module Local Privilege Escalation
1 - Computer Associates Anti-Virus Engine arclib.dll < 8.1.4.0 Multiple Flaws
...
from risu.
Try:
@Items = Item.where(:severity => 3).joins(:plugin).order("plugins.plugin_name").group(:plugin_id)
@items.each do |item|
puts item.plugin_name
end
it seems that i sort by the cvss score on that query. going to fix that next release
from risu.
Bingo! Perfect.
from risu.
Related Issues (20)
- Unable to read font error HOT 2
- Data too long for column 'plugin_name' HOT 1
- SQL errors from most reports HOT 2
- SQL error when multiple OSs names are returned by Nessus for an host HOT 3
- Update the Reference to CVSS 3.0
- New XML elements HOT 3
- Trouble with Execute Summary template HOT 9
- risu's graphs template fails to generate, sqllite error HOT 3
- problem with risu in kali HOT 5
- New HostProperties attribute: UnsupportedProduct HOT 1
- Changing Risk Finding Colors HOT 32
- risu not installed in home directory HOT 2
- Risu won't stay installed on Kali HOT 13
- New XML element detected HOT 4
- New XML element: potential_vulnerability HOT 3
- New XML element. HOT 5
- Add support for attribute 'agent' HOT 7
- Support for multiple files and user-specified templates HOT 4
- Boolean fields stored as strings
- High instead of Critical items selected in findings_host.rb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from risu.