pwn 0.4.993 → 0.4.994

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84008b06b85408aed7b64e9ee6ae23d392d7713028b21b7f6f85ddf20433d9fa
4
- data.tar.gz: 6a7749cb6897c478325ef819039a3790cbc5a126b3da0e907ab8e9ca145737ba
3
+ metadata.gz: f010c6df34f9a81d009a4aeab08e33f34b2742a0d4213d325b098b569a214dcc
4
+ data.tar.gz: 0acb444e835706c708e978eb958a246b4a7b8fe5edf8a86f919a2db6fa74f2dd
5
5
  SHA512:
6
- metadata.gz: 681a65c0de2438a658cefb719e3d9d009bc295eaf5af5f54e7ef7710994113809b72279549c535dd89efdd621561ec3eb93e0d0d4f941360f4cd20dc1788587a
7
- data.tar.gz: 802a27fd787dd8745c6e20de8cabcf7f76cae6bd6fea9d2431f9a8ea3b11574016ef03925855c7e6c712c37fbd366aaddd8f70fd513905f4e81fe530096e1e44
6
+ metadata.gz: 4e39eee29dd4903c286491138e44efe43daa1f9c273298c22dd03c8a389a350328d8c5c474f2e43d127cd192a896485493fb4000c6ec2014280c864aa66aec36
7
+ data.tar.gz: a0dc92d6a92524f76e3ffeb9aa57e630b48bef9cd7a7434dc6a4e0e6c151ab99eedad232ca6185b2129c46b72d58f2461fd689e6a9560c85466b4e3418c525ed
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.4.993]:001 >>> PWN.help
40
+ pwn[v0.4.994]: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.0@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.993]:001 >>> PWN.help
55
+ pwn[v0.4.994]: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.0@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.4.993]:001 >>> PWN.help
65
+ pwn[v0.4.994]: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:
@@ -33,18 +33,16 @@ module PWN
33
33
  io.write(fmt_row)
34
34
 
35
35
  if hashed
36
- hashed_hexdump["#{fmt_row.split.first.delete(':')}"] = {
36
+ hashed_hexdump[fmt_row.split.first.delete(':').to_s] = {
37
37
  hex: fmt_row.split[1..8],
38
38
  ascii: fmt_row.split[9..-1].join
39
39
  }
40
40
  end
41
41
  end
42
42
 
43
- if hashed
44
- return hashed_hexdump
45
- else
46
- return io.string
47
- end
43
+ return hashed_hexdump if hashed
44
+
45
+ io.string unless hashed
48
46
  rescue StandardError => e
49
47
  raise e
50
48
  end
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.993'
4
+ VERSION = '0.4.994'
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.993
4
+ version: 0.4.994
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.