Skip to content

Commit

Permalink
Testing all resolve multiple hosts meterpreter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 committed Feb 13, 2025
1 parent 9bad611 commit 94dadf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/shared_meterpreter_acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
- name: Checkout metasploit-payloads
uses: actions/checkout@v4
with:
repository: rapid7/metasploit-payloads
repository: cgranleese-r7/metasploit-payloads
path: metasploit-payloads
ref: ${{ inputs.metasploit_payloads_commit }}
ref: mega-testing-branch-meterpreter-resolve-multiple-hosts

- name: Build Meterpreter payloads
run: |
Expand Down Expand Up @@ -153,9 +153,9 @@ jobs:
if: ${{ matrix.meterpreter.name == 'mettle' && inputs.build_mettle }}
uses: actions/checkout@v4
with:
repository: rapid7/mettle
repository: cgranleese-r7/mettle
path: mettle
ref: ${{ inputs.mettle_commit }}
ref: meterpreter-resolve-multiple-hosts

- name: Get mettle version
if: ${{ matrix.meterpreter.name == 'mettle' && inputs.build_mettle }}
Expand Down Expand Up @@ -186,9 +186,9 @@ jobs:
- name: Checkout metasploit-framework commit
uses: actions/checkout@v4
with:
repository: rapid7/metasploit-framework
repository: cgranleese-r7/metasploit-framework
path: metasploit-framework
ref: ${{ inputs.metasploit_framework_commit }}
ref: meterpreter-resolve-multiple-hosts

- name: Setup Ruby
env:
Expand Down Expand Up @@ -247,9 +247,9 @@ jobs:
if: ${{ inputs.build_metasploit_payloads && matrix.meterpreter.name != 'mettle' }}
uses: actions/checkout@v4
with:
repository: rapid7/metasploit-payloads
repository: cgranleese-r7/metasploit-payloads
path: metasploit-payloads
ref: ${{ inputs.metasploit_payloads_commit }}
ref: mega-testing-branch-meterpreter-resolve-multiple-hosts

- name: Build Windows payloads via Visual Studio 2019 Build (Windows)
shell: cmd
Expand Down
6 changes: 3 additions & 3 deletions test/modules/post/test/resolve_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def test_resolve_host
vprint_status('Starting resolve_host tests')

it 'should return a Hash' do
hostname = 'localhost'
hostname = 'nslookup.io'
family = AF_INET6

resolved_host = resolve_host(hostname, family)
resolved_host.is_a?(Hash)
end

it 'should return a valid IPV4 host' do
hostname = 'localhost'
hostname = 'nslookup.io'
family = AF_INET

resolved_host = resolve_host(hostname, family)
Expand All @@ -50,7 +50,7 @@ def test_resolve_host
end

it 'should return a valid IPV6 host' do
hostname = 'localhost'
hostname = 'nslookup.io'
family = AF_INET6

resolved_host = resolve_host(hostname, family)
Expand Down

0 comments on commit 94dadf4

Please sign in to comment.