pwn 0.5.210 → 0.5.212

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: 361b33380a6f528dc2cc78a4cd403b5a9114d319237e6703584f7ea325fe22a1
4
- data.tar.gz: 03e63ef8cba3b0a0b77425b8e25d45292c8f660bc4ff6568ce28566cbf7d7a7e
3
+ metadata.gz: f0fd8f1da78a3b405f9035174e85290c7f98530788978420b9549dbfd1fd339f
4
+ data.tar.gz: fe9f18e11d3b7724c9fc850d4d50fd5f95b7cc0c02a01faa4127a31a5b20f3e2
5
5
  SHA512:
6
- metadata.gz: 7143125cec3c6e0a3b594070aff1d33e6047727cd5fb2e3e8f79ef49ed7136cba384a1150bb32084e4bdd8bd88fed222b21196f27c90db35c99d7695a04b13fe
7
- data.tar.gz: 59739d8a5df55eb280222fb49004043fb299d569ef9cb77769f7402ce3a9b6f56de81faead1f0a8b305138042b48bd6fdb4efcb0923882ebd9cdb3d15fa06b2d
6
+ metadata.gz: 5dfe45db1a08de1d032cfac8b2e3e87c5389bca6662fc0632776cc520ef02bad74d09d7f9811b8c83bdfcdc758f7bd519424ae41ec785824339c523c2ce8421d
7
+ data.tar.gz: 3af1b7b7b8387998f8c7524ec7294eecc8bbdf9775435803e03c86914171047f2af0473688b76655e806fe6921a07e3fc86e27962f2ea05212407248f18e417c
data/Gemfile CHANGED
@@ -81,7 +81,7 @@ gem 'rspec', '3.13.0'
81
81
  gem 'rtesseract', '3.1.3'
82
82
  gem 'rubocop', '1.66.1'
83
83
  gem 'rubocop-rake', '0.6.0'
84
- gem 'rubocop-rspec', '3.0.5'
84
+ gem 'rubocop-rspec', '3.1.0'
85
85
  gem 'ruby-audio', '1.6.1'
86
86
  gem 'ruby-nmap', '1.0.3'
87
87
  gem 'ruby-saml', '1.17.0'
data/bin/pwn_bdba_groups CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'optparse'
5
5
  require 'pwn'
data/bin/pwn_bdba_scan CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'cgi'
5
5
  require 'optparse'
data/bin/pwn_gqrx_scanner CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'pwn'
5
5
  require 'json'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'ipaddr'
5
5
  require 'optparse'
data/bin/pwn_sast CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'pwn'
5
5
  require 'optparse'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'pwn'
5
5
  require 'optparse'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'pwn'
5
5
  require 'optparse'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'pwn'
5
5
  require 'optparse'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: false
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'time'
5
5
  require 'pwn'
@@ -0,0 +1,54 @@
1
+ bin/pwn_shodan_search:# frozen_string_literal: false
2
+ bin/pwn_sast:# frozen_string_literal: false
3
+ bin/pwn_www_uri_buster:# frozen_string_literal: false
4
+ bin/pwn_bdba_scan:# frozen_string_literal: false
5
+ bin/pwn_serial_msr206:# frozen_string_literal: false
6
+ bin/pwn_bdba_groups:# frozen_string_literal: false
7
+ bin/pwn_serial_son_micro_sm132_rfid:# frozen_string_literal: false
8
+ bin/pwn_gqrx_scanner:# frozen_string_literal: false
9
+ bin/pwn_nmap_discover_tcp_udp:# frozen_string_literal: false
10
+ lib/pwn/sast/beef_hook.rb:# frozen_string_literal: false
11
+ lib/pwn/sast/local_storage.rb:# frozen_string_literal: false
12
+ lib/pwn/sast/post_message.rb:# frozen_string_literal: false
13
+ lib/pwn/sast/factory.rb:# frozen_string_literal: false
14
+ lib/pwn/sast/base64.rb:# frozen_string_literal: false
15
+ lib/pwn/sast/shell.rb:# frozen_string_literal: false
16
+ lib/pwn/sast/aws.rb:# frozen_string_literal: false
17
+ lib/pwn/sast/token.rb:# frozen_string_literal: false
18
+ lib/pwn/sast/port.rb:# frozen_string_literal: false
19
+ lib/pwn/sast/throw_errors.rb:# frozen_string_literal: false
20
+ lib/pwn/sast/pom_version.rb:# frozen_string_literal: false
21
+ lib/pwn/sast/outer_html.rb:# frozen_string_literal: false
22
+ lib/pwn/sast/window_location_hash.rb:# frozen_string_literal: false
23
+ lib/pwn/sast/deserial_java.rb:# frozen_string_literal: false
24
+ lib/pwn/sast/php_input_mechanisms.rb:# frozen_string_literal: false
25
+ lib/pwn/sast/redos.rb:# frozen_string_literal: false
26
+ lib/pwn/sast/cmd_execution_python.rb:# frozen_string_literal: false
27
+ lib/pwn/sast/type_script_type_juggling.rb:# frozen_string_literal: false
28
+ lib/pwn/sast/version.rb:# frozen_string_literal: false
29
+ lib/pwn/sast/sql.rb:# frozen_string_literal: false
30
+ lib/pwn/sast/emoticon.rb:# frozen_string_literal: false
31
+ lib/pwn/sast/redirect.rb:# frozen_string_literal: false
32
+ lib/pwn/sast/cmd_execution_ruby.rb:# frozen_string_literal: false
33
+ lib/pwn/sast/cmd_execution_java.rb:# frozen_string_literal: false
34
+ lib/pwn/sast/private_key.rb:# frozen_string_literal: false
35
+ lib/pwn/sast/location_hash.rb:# frozen_string_literal: false
36
+ lib/pwn/sast/password.rb:# frozen_string_literal: false
37
+ lib/pwn/sast/php_type_juggling.rb:# frozen_string_literal: false
38
+ lib/pwn/sast/padding_oracle.rb:# frozen_string_literal: false
39
+ lib/pwn/sast/md5.rb:# frozen_string_literal: false
40
+ lib/pwn/sast/http_authorization_header.rb:# frozen_string_literal: false
41
+ lib/pwn/sast/amqp_connect_as_guest.rb:# frozen_string_literal: false
42
+ lib/pwn/sast/signature.rb:# frozen_string_literal: false
43
+ lib/pwn/sast/apache_file_system_util_api.rb:# frozen_string_literal: false
44
+ lib/pwn/sast/keystore.rb:# frozen_string_literal: false
45
+ lib/pwn/sast/log4j.rb:# frozen_string_literal: false
46
+ lib/pwn/sast/inner_html.rb:# frozen_string_literal: false
47
+ lib/pwn/sast/task_tag.rb:# frozen_string_literal: false
48
+ lib/pwn/sast/csrf.rb:# frozen_string_literal: false
49
+ lib/pwn/sast/eval.rb:# frozen_string_literal: false
50
+ lib/pwn/sast/logger.rb:# frozen_string_literal: false
51
+ lib/pwn/sast/sudo.rb:# frozen_string_literal: false
52
+ lib/pwn/sast/ssl.rb:# frozen_string_literal: false
53
+ lib/pwn/sast/cmd_execution_scala.rb:# frozen_string_literal: false
54
+ lib/pwn/sast/banned_function_calls_c.rb:# frozen_string_literal: false
@@ -636,24 +636,28 @@ module PWN
636
636
  else
637
637
  raise "ERROR: Unsupported AI Engine: #{ai_engine}"
638
638
  end
639
+ # puts response.inspect
639
640
 
640
- # puts response[:choices].inspect
641
641
  last_response = ''
642
- if response[:choices].last.keys.include?(:text)
643
- last_response = response[:choices].last[:text]
642
+ if response.nil?
643
+ last_response = "Model: #{model} not currently supported with API key."
644
644
  else
645
- last_response = response[:choices].last[:content]
645
+ if response[:choices].last.keys.include?(:text)
646
+ last_response = response[:choices].last[:text]
647
+ else
648
+ last_response = response[:choices].last[:content]
649
+ end
650
+
651
+ response_history = {
652
+ id: response[:id],
653
+ object: response[:object],
654
+ model: response[:model],
655
+ usage: response[:usage]
656
+ }
657
+ response_history[:choices] ||= response[:choices]
646
658
  end
647
659
  puts "\n\001\e[32m\002#{last_response}\001\e[0m\002\n\n"
648
660
 
649
- response_history = {
650
- id: response[:id],
651
- object: response[:object],
652
- model: response[:model],
653
- usage: response[:usage]
654
- }
655
- response_history[:choices] ||= response[:choices]
656
-
657
661
  if debug
658
662
  puts 'DEBUG: response_history => '
659
663
  pp response_history
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.210'
4
+ VERSION = '0.5.212'
5
5
  end
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.5.210
4
+ version: 0.5.212
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2024-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -954,14 +954,14 @@ dependencies:
954
954
  requirements:
955
955
  - - '='
956
956
  - !ruby/object:Gem::Version
957
- version: 3.0.5
957
+ version: 3.1.0
958
958
  type: :runtime
959
959
  prerelease: false
960
960
  version_requirements: !ruby/object:Gem::Requirement
961
961
  requirements:
962
962
  - - '='
963
963
  - !ruby/object:Gem::Version
964
- version: 3.0.5
964
+ version: 3.1.0
965
965
  - !ruby/object:Gem::Dependency
966
966
  name: ruby-audio
967
967
  requirement: !ruby/object:Gem::Requirement
@@ -1382,6 +1382,7 @@ files:
1382
1382
  - documentation/PWN_Contributors_and_Users.png
1383
1383
  - documentation/fax-spectrogram.png
1384
1384
  - documentation/fax-waveform.png
1385
+ - documentation/frozen_string_literal_files_changed_from_false_to_true.txt
1385
1386
  - documentation/pwn_android_war_dialer_session.png
1386
1387
  - documentation/pwn_install.png
1387
1388
  - documentation/pwn_wallpaper.jpg