pwn 0.5.145 → 0.5.146

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: 5abe6183d65bb827bfc416425e6e699da1ab46e35281c064cefc77de5faec20a
4
- data.tar.gz: 93e4b8e4d672a3d7e113e74d80532888ff13d38da29a42f5c94018bdd9320310
3
+ metadata.gz: bbefb22bbb4ea918d453cf393ed8c0b70233f3c805e42091b745acad787c79fc
4
+ data.tar.gz: d09276dd30b97c56b85f7265c4e8b2b2d991c2487db3d03c59cb0b11d08d2a7d
5
5
  SHA512:
6
- metadata.gz: 0a052893baaade04883ff451e42fc3294c546cb0f9ae263cc1d4a2d54fdea804a8d5b85fe3e60cfbb0a9d4c3c2619762b4e980c1db20b0b506895d0f80cc39e5
7
- data.tar.gz: fc941f149e90f72c77e1c65f45aab0f7d58f874e6e5810b85c9558733d02943bd1b99da59d11026245e7437ab01a3c58c5398d7de538573e9340e826f8238a52
6
+ metadata.gz: 2d2e07b620f65bcc28274404ff1c320bfdee914ec6ae192c40e3dc09759492274a463fd01caa6894a279e975487aeee9762b445659fc0ead93af68c340bf6440
7
+ data.tar.gz: 715e84c89c04080f6836e48363816567e8dbfa190a5a3cd6549fae2d368f3271dc78d1cc5093df4e3d22ce2b3327620f0a7b2f88d74aceee5cfabae308effc67
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.145]:001 >>> PWN.help
40
+ pwn[v0.5.146]: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.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.145]:001 >>> PWN.help
55
+ pwn[v0.5.146]: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.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.145]:001 >>> PWN.help
65
+ pwn[v0.5.146]: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:
@@ -311,15 +311,17 @@ module PWN
311
311
  # Use an IRC nCurses CLI Client
312
312
  ui_nick = pi.config.pwn_irc[:ui_nick]
313
313
  if weechat_installed
314
+ join_channels = ai_agents_arr.map { |a| "/join ##{a}" }.join(',')
315
+ cmd0 = "/nick #{ui_nick}"
316
+ cmd1 = "/server add pwn #{host}/#{port} -notls"
317
+ cmd2 = "/connect pwn"
318
+ cmd3 = join_channels
319
+ weechat_cmds = "#{cmd0};#{cmd1};#{cmd2};#{cmd3}"
320
+
314
321
  system(
315
322
  '/usr/bin/weechat',
316
323
  '--run-command',
317
- '/server add pwn 127.0.0.1/6667 -notls',
318
- '--run-command',
319
- '/connect pwn',
320
- '--run-command',
321
- '/nick',
322
- ui_nick.to_s
324
+ weechat_cmds
323
325
  )
324
326
  else
325
327
  system(
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.145'
4
+ VERSION = '0.5.146'
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.5.145
4
+ version: 0.5.146
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.