pwn 0.4.777 → 0.4.778
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/pwn_jenkins_install_plugin +7 -3
- data/lib/pwn/version.rb +1 -1
- data/packer/provisioners/jenkins.sh +2 -2
- data/vagrant/provisioners/jenkins.sh +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b134c7b969176fa98de2a29a4fd68675986a9ec85606ffabb0f59a9a83e345d
|
|
4
|
+
data.tar.gz: c2dc7115ee2f56297766ee68ecb7318a46bbde846c944a53c2d9b4b7c5f40d9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec6751f046085d515f1f88bc63250f381e7822dbe0d6710664ab96462f5e9bbf980c84113a1ea304d69e90747ddfb9b4384caffaa3494fb37658336cf23b9d44
|
|
7
|
+
data.tar.gz: 10f3c2929bfdf170027bc6bb4dfc9b99e7043376bff410fa6a56f2b165e639b7eac2c4df53e06ef5d75c828c0230ca55e7e0c980c27814f2295b5e7add760061
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
|
37
37
|
$ rvm list gemsets
|
|
38
38
|
$ gem install --verbose pwn
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.4.
|
|
40
|
+
pwn[v0.4.778]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
|
53
53
|
$ gem install --verbose pwn
|
|
54
54
|
$ pwn
|
|
55
|
-
pwn[v0.4.
|
|
55
|
+
pwn[v0.4.778]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
|
@@ -32,7 +32,7 @@ OptionParser.new do |options|
|
|
|
32
32
|
opts[:list_available_bool] = list_available_bool
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
options.on('-R', '--
|
|
35
|
+
options.on('-R', '--restart-jenkins', '<Do not Install Plugins - Just Restart Jenkins - Defaults to false>') do |restart_bool|
|
|
36
36
|
opts[:restart_jenkins] = restart_bool
|
|
37
37
|
end
|
|
38
38
|
end.parse!
|
|
@@ -53,7 +53,12 @@ list_available_bool = if opts[:list_available_bool]
|
|
|
53
53
|
false
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
restart_jenkins = opts[:restart_jenkins]
|
|
56
|
+
restart_jenkins = true if opts[:restart_jenkins] ||= false
|
|
57
|
+
if restart_jenkins
|
|
58
|
+
puts 'Restarting Jenkins...'
|
|
59
|
+
jenkins_obj.system.restart
|
|
60
|
+
exit 0
|
|
61
|
+
end
|
|
57
62
|
|
|
58
63
|
if port.positive?
|
|
59
64
|
jenkins_obj = PWN::Plugins::Jenkins.connect(
|
|
@@ -85,7 +90,6 @@ else
|
|
|
85
90
|
# JenkinsApi::Exceptions::Forbidden: Access Denied...
|
|
86
91
|
# Crumb expired...
|
|
87
92
|
jenkins_obj.plugin.install(plugin_arr)
|
|
88
|
-
jenkins_obj.system.restart if restart_jenkins
|
|
89
93
|
end
|
|
90
94
|
|
|
91
95
|
PWN::Plugins::Jenkins.disconnect(jenkins_obj: jenkins_obj)
|
data/lib/pwn/version.rb
CHANGED
|
@@ -63,5 +63,5 @@ pwn_jenkins_install_plugin --ip 127.0.0.1 \
|
|
|
63
63
|
-d 8888 \
|
|
64
64
|
-U admin \
|
|
65
65
|
--api-key $initial_admin_pwd \
|
|
66
|
-
|
|
67
|
-
-p "ace-editor, analysis-core, ansicolor, ant, antisamy-markup-formatter, apache-httpcomponents-client-4-api, bouncycastle-api, build-pipeline-plugin, bulk-builder, command-launcher, conditional-buildstep, credentials, dashboard-view, dependency-check-jenkins-plugin, dependency-track, display-url-api, external-monitor-job, git, git-client, handlebars, htmlpublisher, jackson2-api, javadoc, jdk-tool, jquery, jquery-detached, jquery-ui, jsch, junit, ldap, log-parser, mailer, matrix-auth, matrix-project, maven-plugin, momentjs, nested-view, pam-auth, parameterized-trigger, pipeline-build-step, pipeline-graph-analysis, pipeline-input-step, pipeline-rest-api, pipeline-stage-step, pipeline-stage-view, plain-credentials, purge-build-queue-plugin, role-strategy, run-condition, scm-api, script-security, slack, ssh-agent, ssh-credentials, ssh-slaves, structs, token-macro, windows-slaves, workflow-api, workflow-cps, workflow-job, workflow-scm-step, workflow-step-api, workflow-support"
|
|
66
|
+
-p "ansicolor, build-pipeline-plugin, bulk-builder, git, git-client, htmlpublisher, log-parser, mailer, matrix-auth, nested-view, purge-build-queue-plugin, ssh-agent, ssh-credentials"
|
|
67
|
+
# -p "ace-editor, analysis-core, ansicolor, ant, antisamy-markup-formatter, apache-httpcomponents-client-4-api, bouncycastle-api, build-pipeline-plugin, bulk-builder, command-launcher, conditional-buildstep, credentials, dashboard-view, dependency-check-jenkins-plugin, dependency-track, display-url-api, external-monitor-job, git, git-client, handlebars, htmlpublisher, jackson2-api, javadoc, jdk-tool, jquery, jquery-detached, jquery-ui, jsch, junit, ldap, log-parser, mailer, matrix-auth, matrix-project, maven-plugin, momentjs, nested-view, pam-auth, parameterized-trigger, pipeline-build-step, pipeline-graph-analysis, pipeline-input-step, pipeline-rest-api, pipeline-stage-step, pipeline-stage-view, plain-credentials, purge-build-queue-plugin, role-strategy, run-condition, scm-api, script-security, slack, ssh-agent, ssh-credentials, ssh-slaves, structs, token-macro, windows-slaves, workflow-api, workflow-cps, workflow-job, workflow-scm-step, workflow-step-api, workflow-support"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.778
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-06-
|
|
11
|
+
date: 2023-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|