pwn 0.4.582 → 0.4.584

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: c795f1c0793ed422362a6edbc43a4314e5a0aa7ae127adb831080710ff93205a
4
- data.tar.gz: eb341a7109e1cfb7c4ef0f7872a2c47fa032f995fc9ea3163ac2db824c95889f
3
+ metadata.gz: 19ef4baab5a1450de0598985ed9d744d06e78865fa6203ed0bbd36d125ef9228
4
+ data.tar.gz: ffc3a80466da20a458803846154daa0a55c44e6e8e585f7481a53ffe3d26c105
5
5
  SHA512:
6
- metadata.gz: 2d0a07648f561c3cfe36b83ad727e8b3520ee343b86934cc6bceaf0bd865d9db69bef57d495b7db0d7ba9a0e493475a92dae9ca21502e6c20e2ee4a692c87dea
7
- data.tar.gz: 587b9c35ff9285d307e9e93f5b5ad5677ac3d56896680204353f33ead3bfc8958edf142a5c0ce18d73ee55a447a4a0f812c73d6571c6d52139ff502e8b3a47c8
6
+ metadata.gz: '04693f0a5ed8f20a8cc8129d01c318ab0eb18a712028fe72193fef03cef664e177c410189b60ba6e828e71f942381a6f53eac1fa36acff6487277cb756979630'
7
+ data.tar.gz: 44e299d4c17ba886a27498771b16ae2c7efc27404f97e5fefff0ec3d7832dd2121625c0aca452872379ccfde3ab25de3984f72e183776e8893e130ef019c88d4
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.3@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.582]:001 >>> PWN.help
40
+ pwn[v0.4.584]: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.1.3@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.582]:001 >>> PWN.help
55
+ pwn[v0.4.584]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -81,7 +81,6 @@ module PWN
81
81
  token = opts[:token]
82
82
 
83
83
  response = open_ai_rest_call(
84
- http_method: :post,
85
84
  token: token,
86
85
  rest_call: 'models'
87
86
  )
@@ -105,18 +104,18 @@ module PWN
105
104
  request = opts[:request]
106
105
  model = opts[:model]
107
106
  model ||= 'text-davinci-003'
108
- temp = opts[:temp]
109
- temp ||= 0
110
- max_tokens = opts[:max_tokens]
111
- max_tokens ||= 1024
107
+ temp = opts[:temp].to_i
108
+ temp = 0 unless temp.positive?
109
+ max_tokens = opts[:max_tokens].to_i
110
+ max_tokens = 1024 unless max_tokens.positive?
112
111
 
113
112
  rest_call = 'completions'
114
113
 
115
114
  http_body = {
116
115
  model: model,
117
116
  prompt: request,
118
- temperature: temp.to_i,
119
- max_tokens: max_tokens.to_i
117
+ temperature: temp,
118
+ max_tokens: max_tokens
120
119
  }
121
120
 
122
121
  response = open_ai_rest_call(
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.582'
4
+ VERSION = '0.4.584'
5
5
  end
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.4.582
4
+ version: 0.4.584
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.