Skip to content

Commit 70bb252

Browse files
committed
Add target opts information
1 parent 56c1bf9 commit 70bb252

File tree

4 files changed

+177
-2478159
lines changed

4 files changed

+177
-2478159
lines changed

.github/workflows/module-info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-18.04
14+
runs-on: ubuntu-20.04
1515
timeout-minutes: 40
1616

1717
services:

.github/workflows/wrapups.yml

Lines changed: 133 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,144 @@
1-
name: Metasploit wrapups
1+
# name: Metasploit wrapups
22

3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
startTag:
7-
description: 'Start tag'
8-
required: true
9-
default: '6.0.20'
10-
endTag:
11-
description: 'End tag'
12-
required: true
13-
default: '6.0.21'
14-
push:
15-
branches-ignore:
16-
- gh-pages
17-
- metakitty
18-
#schedule:
19-
# - cron: '0 18 * * *'
3+
# on:
4+
# workflow_dispatch:
5+
# inputs:
6+
# startTag:
7+
# description: 'Start tag'
8+
# required: true
9+
# default: '6.0.20'
10+
# endTag:
11+
# description: 'End tag'
12+
# required: true
13+
# default: '6.0.21'
14+
# push:
15+
# branches-ignore:
16+
# - gh-pages
17+
# - metakitty
18+
# #schedule:
19+
# # - cron: '0 18 * * *'
2020

21-
jobs:
22-
build:
23-
runs-on: ubuntu-16.04
24-
timeout-minutes: 40
21+
# jobs:
22+
# build:
23+
# runs-on: ubuntu-20.04
24+
# timeout-minutes: 40
2525

26-
services:
27-
postgres:
28-
image: postgres:9.6
29-
ports: ["5432:5432"]
30-
env:
31-
POSTGRES_USER: postgres
32-
POSTGRES_PASSWORD: postgres
33-
options: >-
34-
--health-cmd pg_isready
35-
--health-interval 10s
36-
--health-timeout 5s
37-
--health-retries 5
26+
# services:
27+
# postgres:
28+
# image: postgres:9.6
29+
# ports: ["5432:5432"]
30+
# env:
31+
# POSTGRES_USER: postgres
32+
# POSTGRES_PASSWORD: postgres
33+
# options: >-
34+
# --health-cmd pg_isready
35+
# --health-interval 10s
36+
# --health-timeout 5s
37+
# --health-retries 5
3838

39-
strategy:
40-
fail-fast: true
41-
matrix:
42-
ruby:
43-
- 2.7
44-
info_cmd:
45-
- >-
46-
set -euxo pipefail;
39+
# strategy:
40+
# fail-fast: true
41+
# matrix:
42+
# ruby:
43+
# - 2.7
44+
# info_cmd:
45+
# - >-
46+
# set -euxo pipefail;
4747

48-
cd metasploit-framework;
49-
mkdir tmp;
50-
bundle exec ./msfconsole --quiet --no-database --resource ../metasploit-info/resources/extract_module_info.rc --execute-command 'quit';
48+
# cd metasploit-framework;
49+
# mkdir tmp;
50+
# bundle exec ./msfconsole --quiet --no-database --resource ../metasploit-info/resources/extract_module_info.rc --execute-command 'quit';
5151

52-
cd ..;
53-
cp ./metasploit-framework/tmp/module_metadata.json ./metasploit-info/info/module_metadata.json;
52+
# cd ..;
53+
# cp ./metasploit-framework/tmp/module_metadata.json ./metasploit-info/info/module_metadata.json;
5454

55-
env:
56-
RAILS_ENV: test
55+
# env:
56+
# RAILS_ENV: test
5757

58-
name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
59-
steps:
58+
# name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
59+
# steps:
6060

61-
# - name: Install system dependencies
62-
# run: sudo apt-get install libpcap-dev graphviz
63-
#
64-
- name: Checkout code
65-
uses: actions/checkout@v2
66-
with:
67-
path: metasploit-info
61+
# # - name: Install system dependencies
62+
# # run: sudo apt-get install libpcap-dev graphviz
63+
# #
64+
# - name: Checkout code
65+
# uses: actions/checkout@v2
66+
# with:
67+
# path: metasploit-info
6868

69-
- name: Generate change logs
70-
run: |
71-
echo "Release notes for ${{ github.event.inputs.startTag }} to ${{ github.event.inputs.endTag }}" > wrapup.html
69+
# - name: Generate change logs
70+
# run: |
71+
# echo "Release notes for ${{ github.event.inputs.startTag }} to ${{ github.event.inputs.endTag }}" > wrapup.html
7272

73-
- name: Upload Change log
74-
uses: actions/upload-artifact@v2
75-
with:
76-
name: wrapup-${{ github.event.inputs.startTag }}-to-${{ github.event.inputs.endTag }}
77-
path: wrapup.html
78-
retention-days: 1
79-
#
80-
# - name: ${{ matrix.test_cmd }}
81-
# run: |
82-
# echo "${CMD}"
83-
# bash -c "${cmd}"
84-
# env:
85-
# CMD: ${{ matrix.test_cmd }}
86-
#
87-
# - name: Checkout metasploit-framework code
88-
# uses: actions/checkout@v2
89-
# with:
90-
# repository: rapid7/metasploit-framework
91-
# path: metasploit-framework
92-
#
93-
# - uses: actions/setup-ruby@v1
94-
# with:
95-
# ruby-version: ${{ matrix.ruby }}
96-
#
97-
# - name: Setup bundler
98-
# run: |
99-
# gem install bundler
100-
#
101-
# - uses: actions/cache@v2
102-
# with:
103-
# path: vendor/bundle
104-
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
105-
# restore-keys: |
106-
# ${{ runner.os }}-gems-
107-
#
108-
# - name: Bundle install
109-
# run: |
110-
# cd metasploit-framework
111-
# bundle config path vendor/bundle
112-
# bundle install --jobs 4 --retry 3
113-
# env:
114-
# BUNDLER_WITHOUT: coverage development pcap
115-
#
116-
# - name: Create database
117-
# run: |
118-
# cd metasploit-framework
119-
# cp config/database.yml.github_actions config/database.yml
120-
# bundle exec rake --version
121-
# bundle exec rake db:create
122-
# bundle exec rake db:migrate
123-
# # fail build if db/schema.rb update is not committed
124-
# git diff --exit-code db/schema.rb
125-
#
126-
# - name: ${{ matrix.info_cmd }}
127-
# run: |
128-
# echo "${CMD}"
129-
# bash -c "${CMD}"
130-
# env:
131-
# CMD: ${{ matrix.info_cmd }}
132-
#
133-
# - name: Commit
134-
# uses: EndBug/add-and-commit@v6
135-
# with:
136-
# add: './info'
137-
# author_name: Metasploit Github Actions
138-
# author_email: do-not-contact@example.com
139-
# branch: master
140-
# cwd: './metasploit-info'
141-
# message: 'Update module information'
142-
# signoff: false
143-
# push: true
144-
# token: ${{ secrets.GITHUB_TOKEN }}
73+
# - name: Upload Change log
74+
# uses: actions/upload-artifact@v2
75+
# with:
76+
# name: wrapup-${{ github.event.inputs.startTag }}-to-${{ github.event.inputs.endTag }}
77+
# path: wrapup.html
78+
# retention-days: 1
79+
# #
80+
# # - name: ${{ matrix.test_cmd }}
81+
# # run: |
82+
# # echo "${CMD}"
83+
# # bash -c "${cmd}"
84+
# # env:
85+
# # CMD: ${{ matrix.test_cmd }}
86+
# #
87+
# # - name: Checkout metasploit-framework code
88+
# # uses: actions/checkout@v2
89+
# # with:
90+
# # repository: rapid7/metasploit-framework
91+
# # path: metasploit-framework
92+
# #
93+
# # - uses: actions/setup-ruby@v1
94+
# # with:
95+
# # ruby-version: ${{ matrix.ruby }}
96+
# #
97+
# # - name: Setup bundler
98+
# # run: |
99+
# # gem install bundler
100+
# #
101+
# # - uses: actions/cache@v2
102+
# # with:
103+
# # path: vendor/bundle
104+
# # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
105+
# # restore-keys: |
106+
# # ${{ runner.os }}-gems-
107+
# #
108+
# # - name: Bundle install
109+
# # run: |
110+
# # cd metasploit-framework
111+
# # bundle config path vendor/bundle
112+
# # bundle install --jobs 4 --retry 3
113+
# # env:
114+
# # BUNDLER_WITHOUT: coverage development pcap
115+
# #
116+
# # - name: Create database
117+
# # run: |
118+
# # cd metasploit-framework
119+
# # cp config/database.yml.github_actions config/database.yml
120+
# # bundle exec rake --version
121+
# # bundle exec rake db:create
122+
# # bundle exec rake db:migrate
123+
# # # fail build if db/schema.rb update is not committed
124+
# # git diff --exit-code db/schema.rb
125+
# #
126+
# # - name: ${{ matrix.info_cmd }}
127+
# # run: |
128+
# # echo "${CMD}"
129+
# # bash -c "${CMD}"
130+
# # env:
131+
# # CMD: ${{ matrix.info_cmd }}
132+
# #
133+
# # - name: Commit
134+
# # uses: EndBug/add-and-commit@v6
135+
# # with:
136+
# # add: './info'
137+
# # author_name: Metasploit Github Actions
138+
# # author_email: do-not-contact@example.com
139+
# # branch: master
140+
# # cwd: './metasploit-info'
141+
# # message: 'Update module information'
142+
# # signoff: false
143+
# # push: true
144+
# # token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)