dradis / dradis-ce

Dradis Framework: Collaboration and reporting for IT Security teams
https://dradis.com/ce/
GNU General Public License v2.0
668 stars 190 forks source link

$ thor dradis:setup:kit --file=kit.zip appears to not be working in CE #953

Closed s3638844 closed 2 years ago

s3638844 commented 2 years ago

Steps to reproduce

Download CE version of the OSCP kit from the website Running server locally on my Kali (The dradis is the version that shipped with the current version of Kali) change dir to /usr/lib/dradis Attempt the thor dradis:setu..... command, thor not installed, install ruby-thor reattempt command per instrauctions to receive new error

thor dradis:setup:kit --file=/home/user/Downloads/dradis-ce_compliance_package-oscp.v0.6.zip
WARNING: unable to load thorfile "/usr/lib/dradis/Thorfile": superclass mismatch for class Command
/usr/lib/dradis/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:2:in `<class:Thor>'
Could not find command "dradis:setup:kit".

have also tried extracting that zip and running as below

thor dradis:setup:kit --file=/home/ed/Downloads/dradis-ce_compliance_package-oscp.v0.6/kit.zip 
WARNING: unable to load thorfile "/usr/lib/dradis/Thorfile": superclass mismatch for class Command
/usr/lib/dradis/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:2:in `<class:Thor>'
Could not find command "dradis:setup:kit".

Expected behavior

https://dradisframework.com/academy/industry/compliance/oscp/ per above the command should install the kit into dradis

Actual behavior

Tell us what happens instead

the error mentioned above

System configuration

Dradis version: v4.0.0 and then also v4.1.2

Ruby version: ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]

OS version: Linux kali 5.14.0-kali2-amd64 #1 SMP Debian 5.14.9-2kali1 (2021-10-04) x86_64 GNU/Linux

etdsoft commented 2 years ago

Hi @s3638844 can I ask you to give this another try? There was some development around Kits and CE in Feb/Mar 2022 that should have dealt with the issues: #980 #981 #982 and #983

Please re-open if the issue still exists.