pwn 0.5.28 → 0.5.30

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: 4fedcf1e8ab9f433bbc680d908b9e74cb46260e26dcf419fa439ec21f14fb3f3
4
- data.tar.gz: 1b573222bc99b6db8caeaa6fd96739a868f3263e2ce49cc9a524a068cf01bfc7
3
+ metadata.gz: d4e7b87e5244c746192d143d56434889226b231f2cf4edfb9b88a86426d0bd2b
4
+ data.tar.gz: f3df82054c4cf1ec228a169759637c91ed343aafde84123c0a7e8c7578ddefdb
5
5
  SHA512:
6
- metadata.gz: 9e6de61ed61ecacc9423524c9dc26d20a262e67c5bda25dca703d3855e2ae8d07d24b37288d5d397cf0383592eee3efe48bfa755990c0be45437fef7ce0c399e
7
- data.tar.gz: 5784fe22a75fb5966e09e392aa2535d9553d27c78ce357e44867575905256bae4caf2e4507cd7c2a83647de2e4b09b4cd68ec24380ab6492815c2f84585706ec
6
+ metadata.gz: 7c197bef416d8e168ee308047b9cef8f00e1584008c67c6afcd482779b78a1f8c7aacd17b5f16aca6bb48b95eb50f1bbd93047ed7c1283eee40dd26ad5bae70f
7
+ data.tar.gz: e14809146771166af109a354c12999e0412fb0313d5b4325c3d2d44fa080d9c8605b342df6fa52400fa4fdb4843eed950a3da2e68bec91603a9f2575b37f7f54
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.28]:001 >>> PWN.help
40
+ pwn[v0.5.30]: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.5.28]:001 >>> PWN.help
55
+ pwn[v0.5.30]: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.5.28]:001 >>> PWN.help
65
+ pwn[v0.5.30]: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:
@@ -32,6 +32,15 @@ module PWN
32
32
  raise "Unsupported architecture: #{arch}"
33
33
  end
34
34
 
35
+ # If opcodes appear to be '"90", "90", "90"' then convert to "\x90\x90\x90"
36
+ opcodes = opcodes.split(',').map { |x| format('\x%02x', x.gsub('"', '').to_i(16)) }.join if opcodes.include?('"') && opcodes.include?(',')
37
+
38
+ # If opcodes appear to be '90 90 90' then convert to "\x90\x90\x90"
39
+ opcodes = opcodes.split.map { |x| format('\x%02x', x.to_i(16)) }.join if opcodes.include?(' ')
40
+
41
+ # If opcodes appear to be '909090' then convert to "\x90\x90\x90"
42
+ opcodes = opcodes.chars.each_slice(2).map(&:join).map { |x| format('\x%02x', x.to_i(16)) }.join if opcodes.length.even?
43
+
35
44
  Metasm::Shellcode.disassemble(arch_obj, opcodes).to_s
36
45
  rescue StandardError => e
37
46
  raise e
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.28'
4
+ VERSION = '0.5.30'
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.28
4
+ version: 0.5.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.