pwn 0.5.222 → 0.5.223

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: bd6e555a2d8ef7c201ec907f9fc623d2f6c858b55a6c951294c972209a3e83b8
4
- data.tar.gz: 283f21e8170868880e244160a37ad2dbcd2541671816b053c539e92e6138034c
3
+ metadata.gz: f62a1b15820e6b9a94bbd33ee42d416c4e15e8c19646a5f63143a148a83f5802
4
+ data.tar.gz: 067743e36ba002ef16266a0c97de85c8eff3d80b385698898c1cf9268bf3157c
5
5
  SHA512:
6
- metadata.gz: 6e4359266db4d1beac5b074f475b58a89192dde95c259349eb1a0b563241a113cb50f0b151e671aaefd95aa206e17701f51358f9da4e3f2967e7d1a712989039
7
- data.tar.gz: f63f5a254a37976e203bd4faa5818eeeb8e7a32c1f718e8c4b87a7b7b928b0f92a5ab3bc4dc6bb541d8706075785e9e20e8467fda12eda76d2621929d2e24730
6
+ metadata.gz: d7eb4993d27370f19fe5965981e385ab05eb366dfa53c1ca3154980e8c2cbe304b8c45e9b09220fc8c2d416efdb9edfd7284ee2201e772156de79e1a210532ee
7
+ data.tar.gz: 67e3fe1caaf2f97af856679e2d9d7ef730518dded9db7b6f085715678a23522441ddae467445a97677de6517fc463ded1b9dfeb3846c4d6884198226cb30a4f3
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.222]:001 >>> PWN.help
40
+ pwn[v0.5.223]: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.222]:001 >>> PWN.help
55
+ pwn[v0.5.223]: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.222]:001 >>> PWN.help
65
+ pwn[v0.5.223]: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:
@@ -31,13 +31,8 @@ module PWN
31
31
  dchars = "\001\e[33m\002***\001\e[0m\002" if mode == :splat
32
32
 
33
33
  if pi.config.pwn_asm
34
- arch = pi.config.pwn_asm_arch || PWN::Plugins::DetectOS.arch
34
+ arch = pi.config.pwn_asm_arch
35
35
  endian = pi.config.pwn_asm_endian
36
- if endian.nil? && [1].pack('I') == [1].pack('N')
37
- endian = 'big'
38
- else
39
- endian = 'little'
40
- end
41
36
 
42
37
  pi.config.prompt_name = "pwn.asm:#{arch}/#{endian}"
43
38
  name = "\001\e[1m\002\001\e[37m\002#{pi.config.prompt_name}\001\e[0m\002"
@@ -554,10 +549,15 @@ module PWN
554
549
  pi.config.pwn_ai_temp = pi.config.p[ai_engine][:temp]
555
550
  Pry.config.pwn_ai_temp = pi.config.pwn_ai_temp
556
551
 
557
- pi.config.pwn_asm_arch = pi.config.p[:asm][:arch]
552
+ pi.config.pwn_asm_arch = pi.config.p[:asm][:arch] ||= PWN::Plugins::DetectOS.arch
558
553
  Pry.config.pwn_asm_arch = pi.config.pwn_asm_arch
559
554
 
560
555
  pi.config.pwn_asm_endian = pi.config.p[:asm][:endian]
556
+ if pi.config.pwn_asm_endian.nil? && [1].pack('I') == [1].pack('N')
557
+ pi.config.pwn_asm_endian = 'big'
558
+ else
559
+ pi.config.pwn_asm_endian = 'little'
560
+ end
561
561
  Pry.config.pwn_asm_endian = pi.config.pwn_asm_endian
562
562
 
563
563
  pi.config.pwn_irc = pi.config.p[:irc]
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.222'
4
+ VERSION = '0.5.223'
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.222
4
+ version: 0.5.223
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.