pwn 0.5.24 → 0.5.26

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: 833f2055842c7ea2beaaa250cbf13763b540cbdc8ee79e8b8d68a5fc14147adb
4
- data.tar.gz: '0586ab2fb44e10f0bad1f597827368f6c9b915159545aed0a5608f125b5eefc1'
3
+ metadata.gz: ccfdeec6aac7c06f9ed930595c5f0ab6284cd702920135d02b39353c38f97289
4
+ data.tar.gz: fb101f03af0551b32c84fde42b32a999ff0b7caed272c59d1d493905ab729f76
5
5
  SHA512:
6
- metadata.gz: 3917d7c131039161725cac99d74528a31ecdb15cb28bf9dce318be2330c23ec5363876728fda087f247843d83bf3cc0fec330080c22721631f851039262008ed
7
- data.tar.gz: ecfb3ed335b995423363f8c9de534c1bdb4422a9b485465d677e01bcb814c167080356903d0feecefd72b1430428b9f30d798db53f2a1968bd06e78a955b479a
6
+ metadata.gz: 4db3d35799d8c8c4dd7c426cf35d0a2100a0d78d93071501b6ba42b9c456ab7adbb1211bf796460bcde6bf27ca7b844eff428dba9599a446b2ca7879c1e56b09
7
+ data.tar.gz: d618f1e6546d935183dd9a33c3029dc12eb0783f04e07c84748d018b13cb4c3d2a28897225489e4988dc71b869583d18c0f407c0d4f28628ea170542e30a4454
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.24]:001 >>> PWN.help
40
+ pwn[v0.5.26]: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.24]:001 >>> PWN.help
55
+ pwn[v0.5.26]: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.24]:001 >>> PWN.help
65
+ pwn[v0.5.26]: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:
@@ -16,17 +16,17 @@ module PWN
16
16
 
17
17
  public_class_method def self.opcodes_to_asm(opts = {})
18
18
  opcodes = opts[:opcodes]
19
- arch = opts[:arch] ||= PNW::Plugins::DetectOS.arch
19
+ arch = opts[:arch] ||= PWN::Plugins::DetectOS.arch
20
20
  endian = opts[:endian] ||= :little
21
21
 
22
22
  case arch
23
- when 'i386'
23
+ when 'i386', 'i686', 'x86'
24
24
  arch_obj = Metasm::Ia32.new(endian)
25
25
  when 'amd64', 'x86_64'
26
26
  arch_obj = Metasm::X86_64.new(endian)
27
- when 'armv71'
27
+ when 'armv4l', 'armv4b','armv5l', 'armv5b', 'armv6l', 'armv6b', 'armv7b', 'armv7l', 'arm', 'armhf'
28
28
  arch_obj = Metasm::ARM.new(endian)
29
- when 'aarch64'
29
+ when 'aarch64', 'arm64'
30
30
  arch_obj = Metasm::ARM64.new(endian)
31
31
  else
32
32
  raise "Unsupported architecture: #{arch}"
@@ -35,8 +35,6 @@ module PWN
35
35
  Metasm::Shellcode.disassemble(arch_obj, opcodes).to_s
36
36
  rescue StandardError => e
37
37
  raise e
38
- ensure
39
- opcodes_tmp.unlink if File.exist?(opcodes_tmp.path)
40
38
  end
41
39
 
42
40
  # Supported Method Parameters::
@@ -48,17 +46,17 @@ module PWN
48
46
 
49
47
  public_class_method def self.asm_to_opcodes(opts = {})
50
48
  asm = opts[:asm]
51
- arch = opts[:arch] ||= PNW::Plugins::DetectOS.arch
49
+ arch = opts[:arch] ||= PWN::Plugins::DetectOS.arch
52
50
  endian = opts[:endian] ||= :little
53
51
 
54
52
  case arch
55
- when 'i386'
53
+ when 'i386', 'i686', 'x86'
56
54
  arch_obj = Metasm::Ia32.new(endian)
57
55
  when 'amd64', 'x86_64'
58
56
  arch_obj = Metasm::X86_64.new(endian)
59
- when 'armv71'
57
+ when 'armv4l', 'armv4b','armv5l', 'armv5b', 'armv6l', 'armv6b', 'armv7b', 'armv7l', 'arm', 'armhf'
60
58
  arch_obj = Metasm::ARM.new(endian)
61
- when 'aarch64'
59
+ when 'aarch64', 'arm64'
62
60
  arch_obj = Metasm::ARM64.new(endian)
63
61
  else
64
62
  raise "Unsupported architecture: #{arch}"
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.24'
4
+ VERSION = '0.5.26'
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.24
4
+ version: 0.5.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.