-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a separate rake task and GitHub Action to lint exploit metadata.
- Loading branch information
1 parent
137ecb0
commit 26d2bcc
Showing
7 changed files
with
60 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Lint exploits | ||
|
||
on: | ||
push: | ||
paths: | ||
- exploits/{**/}*.rb | ||
- lint/exploits_spec.rb | ||
pull_request: | ||
paths: | ||
- exploits/{**/}*.rb | ||
- lint/exploits_spec.rb | ||
|
||
jobs: | ||
# exploits linting | ||
exploits: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
- name: Install dependencies | ||
run: bundle install --jobs 4 --retry 3 | ||
- name: Lint exploits | ||
run: 'bundle exec rake lint:exploits' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 15 additions & 12 deletions
27
spec/exploits/exploit_examples.rb → lint/exploits_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require 'spec_helper' | ||
require_relative '../exploit_examples' | ||
require_relative '../../../exploits/d-link/CVE-2024-3273' | ||
require './exploits/d-link/CVE-2024-3273' | ||
|
||
describe Ronin::Exploits::CVE_2024_3273 do | ||
include_context "Exploit metadata" | ||
it "#launch" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require 'spec_helper' | ||
require_relative '../exploit_examples' | ||
require_relative '../../../exploits/flowmon/CVE-2024-2389' | ||
require './exploits/flowmon/CVE-2024-2389' | ||
|
||
describe Ronin::Exploits::CVE_2024_2389 do | ||
include_context "Exploit metadata" | ||
it "#launch" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require 'spec_helper' | ||
require_relative '../exploit_examples' | ||
require_relative '../../../exploits/ivanti/CVE-2024-21887' | ||
require './exploits/ivanti/CVE-2024-21887' | ||
|
||
describe Ronin::Exploits::CVE_2024_21887 do | ||
include_context "Exploit metadata" | ||
it "#launch" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require 'spec_helper' | ||
require_relative '../exploit_examples' | ||
require_relative '../../../exploits/sophos/CVE-2023-1671' | ||
require './exploits/sophos/CVE-2023-1671' | ||
|
||
describe Ronin::Exploits::CVE_2024_3273 do | ||
include_context "Exploit metadata" | ||
it "#launch" | ||
end |