Skip to content

Commit

Permalink
Update windows acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Jun 13, 2024
1 parent f8eba7c commit 483e0da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ jobs:
# pcaprub skipped until new version released: https://github.com/pcaprub/pcaprub/issues/70
- name: Remove pcaprub dependency
shell: pwsh
if: runner.os == 'Windows':
if: runner.os == 'Windows'
run: |
Set-Content -Path "Gemfile.lock" -Value (Get-Content -Path "Gemfile.lock" | Select-String -Pattern 'pcaprub' -NotMatch)
Set-Content -Path "metasploit-framework.gemspec" -Value (Get-Content -Path "metasploit-framework.gemspec" | Select-String -Pattern 'pcaprub' -NotMatch)
Set-Content -Path "Gemfile.lock" -Value (Get-Content -Path "Gemfile.lock" | Select-String -Pattern 'pcaprub' -NotMatch | Select-String -Pattern 'packetfu' -NotMatch)
Set-Content -Path "metasploit-framework.gemspec" -Value (Get-Content -Path "metasploit-framework.gemspec" | Select-String -Pattern 'pcaprub' -NotMatch | Select-String -Pattern 'packetfu' -NotMatch)
- name: Setup Ruby
env:
Expand Down
1 change: 0 additions & 1 deletion lib/metasploit/framework.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
require 'msgpack'
require 'metasploit/credential'
require 'nokogiri'
require 'packetfu'
# railties has not autorequire defined
# rkelly-remix is a fork of rkelly, so it's autorequire is 'rkelly' and not 'rkelly-remix'
require 'rkelly'
Expand Down
1 change: 1 addition & 0 deletions lib/msf_autoload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ def finalize_loader(loader)
autoload :BinData, 'bindata'
autoload :RubySMB, 'ruby_smb'
autoload :MetasploitPayloads, 'metasploit-payloads'
autoload :packetfu, 'packetfu'

require 'rexml/document'
# Load IO#expect moneypatch
Expand Down

0 comments on commit 483e0da

Please sign in to comment.