pwn 0.5.219 → 0.5.220

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: 58a55be13ad9968ee1a2ec11d4d6a4f83fa5d690f4742c1cdcdf35ca23513bfa
4
- data.tar.gz: 418f44ce4b2bfec5b0cdacd073f19fb616c4fcc8e268fc1ed448b18a18384f21
3
+ metadata.gz: 143e0460a07be9c121a96930c090c3cdfb67729d8b3a740db5689f831852d4f4
4
+ data.tar.gz: fd68c26928faa119307076f2f523fb1a23d3e903259b3d952d089d20c3fd6927
5
5
  SHA512:
6
- metadata.gz: aa7ab4d1286a3bbd0c842bddc1ffe90ad78d36036565460b6b8aa861de325958ac5ff6f77ead67071b109c6a6ebee040e3b8a4469a71fb55365b6364b05aaa51
7
- data.tar.gz: 6f5fe523e33592e80e2da2117890838cb0ca89abe67a2e0432552760e7328f337adb1cddb4e53c7098478fa5f80fb7f8b198dfc2af72723a6baecad3bd77b3d3
6
+ metadata.gz: 830e7f14bf6016d84834079b06fc6b81fb061012c4486e7a2f9a188893426fbc37eda86bd178aef5eca4de76005868081cb9c572d983236bb1356d598762e009
7
+ data.tar.gz: 59d931f3926c07c18df20bdaa6ebc283126f2855d51c506408a1b2b5bc6cee0c21fad154e856687c60f01f4653fe2bc91087d7035037b22574ab2f8bca55c707
data/Gemfile CHANGED
@@ -79,9 +79,9 @@ gem 'rmagick', '6.0.1'
79
79
  gem 'rqrcode', '2.2.0'
80
80
  gem 'rspec', '3.13.0'
81
81
  gem 'rtesseract', '3.1.3'
82
- gem 'rubocop', '1.69.1'
82
+ gem 'rubocop', '1.69.2'
83
83
  gem 'rubocop-rake', '0.6.0'
84
- gem 'rubocop-rspec', '3.2.0'
84
+ gem 'rubocop-rspec', '3.3.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/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.219]:001 >>> PWN.help
40
+ pwn[v0.5.220]: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.3.5@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.219]:001 >>> PWN.help
55
+ pwn[v0.5.220]: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.3.5@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.219]:001 >>> PWN.help
65
+ pwn[v0.5.220]: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:
@@ -66,8 +66,8 @@ begin
66
66
 
67
67
  jsonl_hash = {
68
68
  messages: [
69
- { role: 'user', content: user_content },
70
- { role: 'assistant', content: assistant_content }
69
+ { role: :user, content: user_content },
70
+ { role: :assistant, content: assistant_content }
71
71
  ]
72
72
  }
73
73
  # puts "JSONL: #{jsonl}"
@@ -432,10 +432,9 @@ module PWN
432
432
  # training_file: 'required - JSONL that contains OpenAI training data'
433
433
  # validation_file: 'optional - JSONL that contains OpenAI validation data'
434
434
  # model: 'optional - :ada||:babbage||:curie||:davinci (defaults to :davinci)',
435
- # n_epochs: 'optional - iterate N times through training_file to train the model (defaults to 4)',
436
- # batch_size: 'optional - batch size to use for training (defaults to nil)',
437
- # learning_rate_multipler: 'optional - fine-tuning learning rate is the original learning rate used for pretraining multiplied by this value (defaults to nil)',
438
- # prompt_loss_weight: 'optional - (defaults to 0.01)',
435
+ # n_epochs: 'optional - iterate N times through training_file to train the model (defaults to "auto")',
436
+ # batch_size: 'optional - batch size to use for training (defaults to "auto")',
437
+ # learning_rate_multiplier: 'optional - fine-tuning learning rate is the original learning rate used for pretraining multiplied by this value (defaults to "auto")',
439
438
  # computer_classification_metrics: 'optional - calculate classification-specific metrics such as accuracy and F-1 score using the validation set at the end of every epoch (defaults to false)',
440
439
  # classification_n_classes: 'optional - number of classes in a classification task (defaults to nil)',
441
440
  # classification_positive_class: 'optional - generate precision, recall, and F1 metrics when doing binary classification (defaults to nil)',
@@ -448,14 +447,11 @@ module PWN
448
447
  token = opts[:token]
449
448
  training_file = opts[:training_file]
450
449
  validation_file = opts[:validation_file]
451
- model = opts[:model] ||= 'gpt-4o-mini'
450
+ model = opts[:model] ||= 'gpt-4o-mini-2024-07-18'
452
451
 
453
- n_epochs = opts[:n_epochs] ||= 4
454
-
455
- batch_size = opts[:batch_size]
456
- learning_rate_multipler = opts[:learning_rate_multipler]
457
-
458
- prompt_loss_weight = opts[:prompt_loss_weight] ||= 0.01
452
+ n_epochs = opts[:n_epochs] ||= 'auto'
453
+ batch_size = opts[:batch_size] ||= 'auto'
454
+ learning_rate_multiplier = opts[:learning_rate_multiplier] ||= 'auto'
459
455
 
460
456
  computer_classification_metrics = true if opts[:computer_classification_metrics]
461
457
  classification_n_classes = opts[:classification_n_classes]
@@ -482,10 +478,12 @@ module PWN
482
478
  http_body[:training_file] = training_file
483
479
  http_body[:validation_file] = validation_file if validation_file
484
480
  http_body[:model] = model
485
- http_body[:n_epochs] = n_epochs
486
- http_body[:batch_size] = batch_size if batch_size
487
- http_body[:learning_rate_multipler] = learning_rate_multipler if learning_rate_multipler
488
- http_body[:prompt_loss_weight] = prompt_loss_weight if prompt_loss_weight
481
+ http_body[:hyperparameters] = {
482
+ n_epochs: n_epochs,
483
+ batch_size: batch_size,
484
+ learning_rate_multiplier: learning_rate_multiplier
485
+ }
486
+ # http_body[:prompt_loss_weight] = prompt_loss_weight if prompt_loss_weight
489
487
  http_body[:computer_classification_metrics] = computer_classification_metrics if computer_classification_metrics
490
488
  http_body[:classification_n_classes] = classification_n_classes if classification_n_classes
491
489
  http_body[:classification_positive_class] = classification_positive_class if classification_positive_class
@@ -797,10 +795,9 @@ module PWN
797
795
  training_file: 'required - JSONL that contains OpenAI training data'
798
796
  validation_file: 'optional - JSONL that contains OpenAI validation data'
799
797
  model: 'optional - :ada||:babbage||:curie||:davinci (defaults to :davinci)',
800
- n_epochs: 'optional - iterate N times through training_file to train the model (defaults to 4)',
801
- batch_size: 'optional - batch size to use for training (defaults to nil)',
802
- learning_rate_multipler: 'optional - fine-tuning learning rate is the original learning rate used for pretraining multiplied by this value (defaults to nill)',
803
- prompt_loss_weight: 'optional - (defaults to nil)',
798
+ n_epochs: 'optional - iterate N times through training_file to train the model (defaults to \"auto\")',
799
+ batch_size: 'optional - batch size to use for training (defaults to \"auto\")',
800
+ learning_rate_multiplier: 'optional - fine-tuning learning rate is the original learning rate used for pretraining multiplied by this value (defaults to \"auto\")',
804
801
  computer_classification_metrics: 'optional - calculate classification-specific metrics such as accuracy and F-1 score using the validation set at the end of every epoch (defaults to false)',
805
802
  classification_n_classes: 'optional - number of classes in a classification task (defaults to nil)',
806
803
  classification_positive_class: 'optional - generate precision, recall, and F1 metrics when doing binary classification (defaults to nil)',
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.219'
4
+ VERSION = '0.5.220'
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.219
4
+ version: 0.5.220
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-12-11 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -926,14 +926,14 @@ dependencies:
926
926
  requirements:
927
927
  - - '='
928
928
  - !ruby/object:Gem::Version
929
- version: 1.69.1
929
+ version: 1.69.2
930
930
  type: :runtime
931
931
  prerelease: false
932
932
  version_requirements: !ruby/object:Gem::Requirement
933
933
  requirements:
934
934
  - - '='
935
935
  - !ruby/object:Gem::Version
936
- version: 1.69.1
936
+ version: 1.69.2
937
937
  - !ruby/object:Gem::Dependency
938
938
  name: rubocop-rake
939
939
  requirement: !ruby/object:Gem::Requirement
@@ -954,14 +954,14 @@ dependencies:
954
954
  requirements:
955
955
  - - '='
956
956
  - !ruby/object:Gem::Version
957
- version: 3.2.0
957
+ version: 3.3.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.2.0
964
+ version: 3.3.0
965
965
  - !ruby/object:Gem::Dependency
966
966
  name: ruby-audio
967
967
  requirement: !ruby/object:Gem::Requirement