pwn 0.5.472 → 0.5.475

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64d838c2244b031f0d4c1aa74a55697e0a759f41af3acba22658cd819948e9c7
4
- data.tar.gz: f2ff0e54c0d14a57090f5bde376cbad4c26a89283446154da5771c624b7905f4
3
+ metadata.gz: 9925d872d4ad9fd60b7b6bdcfae94e7dd9cfbbdf3b6940cbadabf7272262bcdf
4
+ data.tar.gz: 617935fb1c6d04fc405653444a5902e712a7f991d32125c8f61d3c409cb67495
5
5
  SHA512:
6
- metadata.gz: 0aa2798d611fc5a118ead2077604d6843e455feee5befd4a9167a47085c284e7b439ac4863d303adc5b0260598dc38befeec08ea32aa3e6156913cc109d14719
7
- data.tar.gz: cb58d8b8191715306cf8e1892dc3bd6bce6611a751e335e4ead6d115c08088237b287fc65a39c0ac40d98f1c15041c841542745107b4aca2289cccfde0603f0d
6
+ metadata.gz: 16ff0e642b1bb240f649061e58940ab33274c9ddf3ede313d1cb6a8a0cf6a867d7a670e5417a1d87439e14dc2d8683e1e6936936cae6877b6d4d6d5fac546405
7
+ data.tar.gz: e065a9f313c72510212c198836419e61cddd6d2baad2b42874046c8c5421b4cde6d2287b5a8303ad006c0bd539e04841aaae3557019bcfb4baf40f5068042094
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ gemspec
11
11
  # In some circumstances custom flags are passed to gems in order
12
12
  # to build appropriately. Defer to ./reinstall_pwn_gemset.sh
13
13
  # to review these custom flags (e.g. pg, serialport, etc).
14
- gem 'activesupport', '8.0.3'
14
+ gem 'activesupport', '<8.1.0'
15
15
  gem 'anemone', '0.7.2'
16
16
  gem 'authy', '3.0.1'
17
17
  gem 'aws-sdk', '3.3.0'
@@ -48,7 +48,7 @@ gem 'jwt', '3.1.2'
48
48
  gem 'libusb', '0.7.2'
49
49
  gem 'luhn', '3.0.0'
50
50
  gem 'mail', '2.8.1'
51
- gem 'meshtastic', '0.0.129'
51
+ gem 'meshtastic', '0.0.132'
52
52
  gem 'metasm', '1.0.5'
53
53
  gem 'mongo', '2.21.3'
54
54
  gem 'msfrpc-client', '1.1.2'
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.472]:001 >>> PWN.help
40
+ pwn[v0.5.475]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.472]:001 >>> PWN.help
55
+ pwn[v0.5.475]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.472]:001 >>> PWN.help
65
+ pwn[v0.5.475]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -6,7 +6,9 @@ cat Gemfile | awk '{print $2}' | grep -E "^'.+$" | grep -v -e rubygems.org | whi
6
6
  this_gem=`echo $gem | sed "s/'//g" | sed 's/\,//g'`
7
7
  latest_version=`gem search -r $this_gem | grep -E "^${this_gem}\s.+$" | awk '{print $2}' | sed 's/(//g' | sed 's/)//g' | sed 's/,//g'`
8
8
  echo "${this_gem} => $latest_version"
9
- if [[ $this_gem == 'bundler' ]]; then
9
+ if [[ $this_gem == 'activesupport' ]]; then
10
+ sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '<${latest_version}'/g" Gemfile
11
+ elif [[ $this_gem == 'bundler' ]]; then
10
12
  sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '>=${latest_version}'/g" Gemfile
11
13
  elif [[ $this_gem == 'json' ]]; then
12
14
  # Shakes fist at selenium-webdriver
@@ -483,7 +483,7 @@ module PWN
483
483
  allowed_fields << field_key.to_s
484
484
  end
485
485
 
486
- reserved_fields = %i[project summary issuetype description]
486
+ reserved_fields = %i[project summary issuetype description attachment]
487
487
  reserved_fields << epic_name_field_key.to_sym if epic_name_field_key
488
488
 
489
489
  filtered_fields = {}
@@ -648,6 +648,7 @@ module PWN
648
648
  mqtt_obj = PWN.const_get(:MqttObj)
649
649
  from = "!#{mqtt_obj.client_id}"
650
650
  active_channel = PWN::Env[:plugins][:meshtastic][:channel][:active].to_s.to_sym
651
+ region = PWN::Env[:plugins][:meshtastic][:channel][active_channel][:region]
651
652
  topic = PWN::Env[:plugins][:meshtastic][:channel][active_channel][:topic]
652
653
  channel_num = PWN::Env[:plugins][:meshtastic][:channel][active_channel][:channel_num]
653
654
  psk = PWN::Env[:plugins][:meshtastic][:channel][active_channel][:psk]
@@ -662,16 +663,19 @@ module PWN
662
663
  to_raw = text.split('@').last.chomp[0..8]
663
664
  # If to_raw[1..-1] is hex than set to = to_raw
664
665
  to = to_raw if to_raw[1..-1].match?(/^[a-fA-F0-9]{8}$/)
666
+ text.gsub!("@#{to_raw}", '')
665
667
  end
666
668
  puts "\nFrom: #{from}"
667
669
  puts "To: #{to}"
670
+ puts "Region: #{region}"
668
671
  puts "Topic: #{topic}"
669
- puts "Channel: #{channel_num}"
672
+ puts "Channel #: #{channel_num}"
670
673
  puts "Text: #{text}\n\n"
671
674
  Meshtastic::MQTT.send_text(
672
675
  mqtt_obj: mqtt_obj,
673
676
  from: from,
674
677
  to: to,
678
+ region: region,
675
679
  topic: topic,
676
680
  channel: channel_num,
677
681
  text: text,
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.5.472'
4
+ VERSION = '0.5.475'
5
5
  end
@@ -737,7 +737,7 @@
737
737
  {"messages":[{"role":"user","content":"PWN::Plugins::Jenkins.list_nested_jobs Usage"},{"role":"assistant","content":"`PWN::Plugins::Jenkins.list_nested_jobs`: Supported Method Parameters\n\nPWN::Plugins::Jenkins.list_nested_jobs(\n\njenkins_obj: 'required jenkins_obj returned from #connect method',\nview_path: 'required view path to list jobs'\n\n)\n"}]}
738
738
  {"messages":[{"role":"user","content":"PWN::Plugins::Jenkins.list_nested_views Usage"},{"role":"assistant","content":"`PWN::Plugins::Jenkins.list_nested_views`: Supported Method Parameters\n\nPWN::Plugins::Jenkins.list_nested_views(\n\njenkins_obj: 'required jenkins_obj returned from #connect method',\nview_path: 'required view path list sub-views'\n\n)\n"}]}
739
739
  {"messages":[{"role":"user","content":"PWN::Plugins::JiraDataCenter.authors Usage"},{"role":"assistant","content":"`PWN::Plugins::JiraDataCenter.authors`: Author(s)\n\n0day Inc. <support@0dayinc.com>\n"}]}
740
- {"messages":[{"role":"user","content":"PWN::Plugins::JiraDataCenter.clone_issue Usage"},{"role":"assistant","content":"`PWN::Plugins::JiraDataCenter.clone_issue`: Supported Method Parameters\n\nissue_resp = PWN::Plugins::JiraDataCenter.clone_issue(\n\nissue: 'required - issue to clone (e.g. Bug, Issue, Story, or Epic ID)'\n\n)\n"}]}
740
+ {"messages":[{"role":"user","content":"PWN::Plugins::JiraDataCenter.clone_issue Usage"},{"role":"assistant","content":"`PWN::Plugins::JiraDataCenter.clone_issue`: Supported Method Parameters\n\nissue_resp = PWN::Plugins::JiraDataCenter.clone_issue(\n\nissue: 'required - issue to clone (e.g. Bug, Issue, Story, or Epic ID)',\ncopy_attachments: 'optional - boolean to indicate whether to copy attachments (Defaults to false)'\n\n)\n"}]}
741
741
  {"messages":[{"role":"user","content":"PWN::Plugins::JiraDataCenter.create_issue Usage"},{"role":"assistant","content":"`PWN::Plugins::JiraDataCenter.create_issue`: Supported Method Parameters\n\nissue_resp = PWN::Plugins::JiraDataCenter.create_issue(\n\nproject_key: 'required - project key (e.g. PWN)',\nsummary: 'required - summary of the issue (e.g. Epic for PWN-1337)',\nissue_type: 'required - issue type (e.g. :epic, :story, :bug)',\ndescription: 'optional - description of the issue',\nepic_name: 'optional - name of the epic',\nadditional_fields: 'optional - additional fields to set in the issue (e.g. labels, components, custom fields, etc.)'\nattachments: 'optional - array of attachment paths to upload to the issue (e.g. [\"/tmp/file1.txt\", \"/tmp/file2.txt\"])',\ncomment: 'optional - comment to add to the issue (e.g. \"This is a comment\")'\n\n)\n"}]}
742
742
  {"messages":[{"role":"user","content":"PWN::Plugins::JiraDataCenter.delete_attachment Usage"},{"role":"assistant","content":"`PWN::Plugins::JiraDataCenter.delete_attachment`: Supported Method Parameters\n\nissue_resp = PWN::Plugins::JiraDataCenter.delete_attachment(\n\nid: 'required - attachment ID to delete (e.g. 10000) found in #get_issue method'\n\n)\n"}]}
743
743
  {"messages":[{"role":"user","content":"PWN::Plugins::JiraDataCenter.delete_issue Usage"},{"role":"assistant","content":"`PWN::Plugins::JiraDataCenter.delete_issue`: Supported Method Parameters\n\nissue_resp = PWN::Plugins::JiraDataCenter.delete_issue(\n\nissue: 'required - issue to delete (e.g. Bug, Issue, Story, or Epic ID)'\n\n)\n"}]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.472
4
+ version: 0.5.475
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -13,16 +13,16 @@ dependencies:
13
13
  name: activesupport
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - '='
16
+ - - "<"
17
17
  - !ruby/object:Gem::Version
18
- version: 8.0.3
18
+ version: 8.1.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - '='
23
+ - - "<"
24
24
  - !ruby/object:Gem::Version
25
- version: 8.0.3
25
+ version: 8.1.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: anemone
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -519,14 +519,14 @@ dependencies:
519
519
  requirements:
520
520
  - - '='
521
521
  - !ruby/object:Gem::Version
522
- version: 0.0.129
522
+ version: 0.0.132
523
523
  type: :runtime
524
524
  prerelease: false
525
525
  version_requirements: !ruby/object:Gem::Requirement
526
526
  requirements:
527
527
  - - '='
528
528
  - !ruby/object:Gem::Version
529
- version: 0.0.129
529
+ version: 0.0.132
530
530
  - !ruby/object:Gem::Dependency
531
531
  name: metasm
532
532
  requirement: !ruby/object:Gem::Requirement