Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test latest pcaprub version #205

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,18 +407,18 @@ jobs:
bundler: 2.2.33

# If you need to build a custom version of pcaprub:
# - name: Checkout pcaprub
# uses: actions/checkout@v4
# with:
# repository: pcaprub/pcaprub
# path: pcaprub
# ref: '5440ca93dafd15e7d3bb009fc1bb9a15e80d03f9'

# - name: Create pcaprub gem
# run: |
# cd pcaprub
# bundle
# rake gem
- name: Checkout pcaprub
uses: actions/checkout@v4
with:
repository: dwelch-r7/pcaprub
path: pcaprub
ref: 'npcap-support'

- name: Create pcaprub gem
run: |
cd pcaprub
bundle
rake gem

# Checkout framework
- name: Checkout metasploit-framework code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@
# limitations under the License.
#

name "winpcap-devpack"
default_version "4.1.2"
name "npcap-sdk"
default_version "1.13"

version "4.1.2" do
source md5: "bae2236af062b0900ad1416b2c4878b9"
version "1.13" do
source md5: "2067b3975763ddf61d4114d28d9d6c9b"
end

dependency "ruby-windows"
dependency "ruby-windows-devkit"

relative_path "WpdPack"

source url: "https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip"
source url: "https://npcap.com/dist/npcap-sdk-#{version}.zip"

build do
ruby_api_version = "3.1.0"
Expand Down
5 changes: 2 additions & 3 deletions config/software/pcaprub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if windows?
dependency "ruby-windows"
dependency "ruby-windows-devkit"
dependency "winpcap-devpack"
dependency "npcap-sdk"
else
dependency "ruby"
dependency "libpcap"
Expand All @@ -33,8 +33,7 @@
env = with_standard_compiler_flags(with_embedded_path)
env['SSL_CERT_FILE'] = "#{install_dir}/embedded/ssl/cert.pem"

# We need to create the pcaprub gem ourselves until 0.13.2 is released (https://github.com/pcaprub/pcaprub/issues/67)
# Use version of pcaprub relative to the current directory
# Support a custom build of pcaprub relative to the current directory
local_pcaprub_checkout = File.expand_path(File.join(Dir.pwd, "..", "pcaprub"))
command "echo checking for path: #{local_pcaprub_checkout}", env: env
if File.exist?(local_pcaprub_checkout)
Expand Down
2 changes: 1 addition & 1 deletion local/cache
Submodule cache updated 1 files
+ npcap-sdk-1.13.zip
Loading