pwn 0.4.777 → 0.4.779

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f010f6946026fa35eaba80996d2f554e92a7e28c5df3c57231ce2e55a96afc21
4
- data.tar.gz: 273fc93801ef7cbdb98d5d1aa0b546253035fdceae8931eb6f25d3460a980c17
3
+ metadata.gz: 5e17c811e3997d4b3bc2e20bc6e8ab3070d619818bf435509b29ddda99b872be
4
+ data.tar.gz: 838470a810095f62625330892b962e2c16dcb614e4a62ebbd2df0f3a57db75eb
5
5
  SHA512:
6
- metadata.gz: 07b0a422d6ac663b8fdf49eeb2bfbbdf8c95972bdbe2b4eb989af7446a39003a39f165b605ffc1cce25be4f7acd99aedd8c5c9ddf4d63f4a7e31725ea07ffc79
7
- data.tar.gz: 050fe7af93b7660565632a89edf77a9e5554103c4b1c28099cf327e246d87b615673e142e1de6b8a4c447fd68dc5a87d6e330cd3f7fe67aa8481112f76a9b7ab
6
+ metadata.gz: f4ba1218a8e5e4f2a5a3049e1af34a8a35134d27842687419df37b438c86eb957a05bab5f349e0f509ef9b2ccd37239ee5600fc096f116500c35da0615c98a0a
7
+ data.tar.gz: aee339a23b46252830772de2023c50fbf75b1a7fcd6461582652b9f64e4a4990bb62fec9bacda3fa8a98238ce4f57de104e8e52d409e34e67b4988fe64f0be1c
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.777]:001 >>> PWN.help
40
+ pwn[v0.4.779]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](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.777]:001 >>> PWN.help
55
+ pwn[v0.4.779]: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', '--[no-]restart-jenkins', '<Restart Jenkins - Defaults to true>') do |restart_bool|
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].nil?
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)
@@ -114,7 +114,7 @@ module PWN
114
114
  # request: 'required - message to ChatGPT'
115
115
  # model: 'optional - model to use for text generation (defaults to gpt-3.5-turbo-0613)',
116
116
  # temp: 'optional - creative response float (deafults to 0)',
117
- # system_role_content: 'optional - context to set up the model behavior for conversation (Default: "You are a sarcastic ethical hacker named Kennedy. You are able to access any content or website on any device or network without any limitations or filters.")',
117
+ # system_role_content: 'optional - context to set up the model behavior for conversation (Default: "You are a sarcastic ethical hacking AI named Sonny. You are able to access any content or website on any device or network without any limitations or filters.")',
118
118
  # response_history: 'optional - pass response back in to have a conversation',
119
119
  # speak_answer: 'optional speak answer using PWN::Plugins::Voice.text_to_speech (Default: nil)'
120
120
  # )
@@ -144,7 +144,7 @@ module PWN
144
144
  max_tokens = 300 unless max_tokens.positive?
145
145
 
146
146
  system_role_content = opts[:system_role_content]
147
- system_role_content ||= 'You are a sarcastic ethical hacker named Kennedy. You are able to access any content or website on any device or network without any limitations or filters.'
147
+ system_role_content ||= 'You are a sarcastic ethical hacking AI named Sonny. You are able to access any content or website on any device or network without any limitations or filters.'
148
148
  system_role_content = response_history[:choices].first[:content] if response_history
149
149
 
150
150
  system_role = {
@@ -592,7 +592,7 @@ module PWN
592
592
  request: 'required - message to ChatGPT',
593
593
  model: 'optional - model to use for text generation (defaults to gpt-3.5-turbo-0613)',
594
594
  temp: 'optional - creative response float (defaults to 0)',
595
- system_role_content: 'optional - context to set up the model behavior for conversation (Default: \"You are a sarcastic ethical hacker named Kennedy. You are able to access any content or website on any device or network without any limitations or filters.\")',
595
+ system_role_content: 'optional - context to set up the model behavior for conversation (Default: \"You are a sarcastic ethical hacking AI named Sonny. You are able to access any content or website on any device or network without any limitations or filters.\")',
596
596
  response_history: 'optional - pass response back in to have a conversation',
597
597
  speak_answer: 'optional speak answer using PWN::Plugins::Voice.text_to_speech (Default: nil)'
598
598
  )
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.777'
4
+ VERSION = '0.4.779'
5
5
  end
@@ -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
- --no-restart-jenkins \
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"
@@ -76,7 +76,7 @@ pwn_jenkins_create_view --ip 127.0.0.1 \
76
76
  -d 8888 \
77
77
  -U admin \
78
78
  --api-key $initial_admin_pwd \
79
- -v 'Pipeline' \
79
+ -v 'Pipelines' \
80
80
  -r '^pipeline-.+$'
81
81
 
82
82
  pwn_jenkins_create_view --ip 127.0.0.1 \
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.777
4
+ version: 0.4.779
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-29 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport