Skip to content

Commit e592306

Browse files
committed
pwn REPL Driver - make Open AI API token accessible via Pry.config.chat_gpt_token when passing --yaml-config parameter to driver
1 parent cd4813d commit e592306

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.784]:001 >>> PWN.help
40+
pwn[v0.4.785]:001 >>> PWN.help
4141
```
4242

4343
[![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
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.784]:001 >>> PWN.help
55+
pwn[v0.4.785]:001 >>> PWN.help
5656
```
5757

5858

bin/pwn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ begin
245245
yaml_config_path = opts[:yaml_config_path]
246246
yaml_config = YAML.load_file(yaml_config_path, symbolize_names: true)
247247
pi.config.chat_gpt_token = yaml_config[:bearer_token]
248+
Pry.config.chat_gpt_token = pi.config.chat_gpt_token
248249
end
249250
end
250251

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.784'
4+
VERSION = '0.4.785'
55
end

0 commit comments

Comments
 (0)