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 30c9ea2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 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
2 changes: 0 additions & 2 deletions lib/msf/core/db_manager/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
# Gems
#

require 'packetfu'

module Msf::DBManager::Import
autoload :Acunetix, 'msf/core/db_manager/import/acunetix'
autoload :Amap, 'msf/core/db_manager/import/amap'
Expand Down
3 changes: 1 addition & 2 deletions lib/msf/core/exploit/capture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def initialize(info = {})
], Msf::Exploit::Capture
)

require 'packetfu'

begin
require 'packetfu'
require 'pcaprub'
@pcaprub_loaded = true
rescue ::LoadError => e
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
2 changes: 0 additions & 2 deletions modules/auxiliary/scanner/scada/profinet_siemens.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'packetfu'

class MetasploitModule < Msf::Auxiliary
def initialize
super(
Expand Down

0 comments on commit 30c9ea2

Please sign in to comment.