pwn 0.5.19 → 0.5.20

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: 760af23894c1c3935f4cd7446cc6fc91c7e4bc17b7e7706579ea5f537d23b33f
4
- data.tar.gz: ed23bc43c52e0039223d60e72c314850958f7cf5b1c22a7bff81b40e57654154
3
+ metadata.gz: 0eae675237c1c401d02725100825a91a2a3a526530f168395d586a4c70c18393
4
+ data.tar.gz: c75e41212e51d0a547e3902e9d17e0da76736350d0205c6b9bd8a560299fd176
5
5
  SHA512:
6
- metadata.gz: add4ef7cf69683f089fc5f7c1d0d2373c978455ebb14cff1ee968735386d6ce92b9d89ccc5ee0e78cf1c94b09ffc21bbba5577244728aa9e4a6bc74793b6697c
7
- data.tar.gz: 1e32fa66801433801b0e771ad2fc9bc9a475724facf68734434c2ede4401fc862b14356c881f05a4bb8ca66ee6d23268be4cdc26a044e384a620bd947c9b761f
6
+ metadata.gz: b9c6d09fc541013dbb20f2748b36e0aefe220bd0e16947a94d36c3cc65a8a93fa04fc111c70ea9aee2aff86b2ec3aafb506f49473e5c0dfbaa4b37586af994e9
7
+ data.tar.gz: b72b6bab89ea7cbe3e2bd33704cc14758feb55e3e100509e8f827d698efc0db60ac3274c259c95ab6e09612f93b22f6eec13b3b70b43341b82daea304541a671
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.19]:001 >>> PWN.help
40
+ pwn[v0.5.20]: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.19]:001 >>> PWN.help
55
+ pwn[v0.5.20]: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.19]:001 >>> PWN.help
65
+ pwn[v0.5.20]: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:
@@ -37,13 +37,13 @@ module PWN
37
37
  asm_tmp.write(asm_code)
38
38
  asm_tmp.close
39
39
 
40
- system('as', '-o', "#{asm_tmp.path}.o", asm_tmp.path)
40
+ asm_tmp_o = "#{asm_tmp.path}.o"
41
+ system('as', '-o', asm_tmp_o, asm_tmp.path)
41
42
  `objdump -D #{asm_tmp.path}.o`
42
43
  rescue StandardError => e
43
44
  raise e
44
45
  ensure
45
- asm_tmp.unlink if File.exist?(asm_tmp.path)
46
- File.unlink("#{asm_tmp.path}.o") if File.exist?("#{asm_tmp.path}.o")
46
+ FileUtils.rm_f("#{asm_tmp.path}*") if File.exist?(asm_tmp.path)
47
47
  end
48
48
 
49
49
  # Author(s):: 0day Inc. <request.pentest@0dayinc.com>
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.19'
4
+ VERSION = '0.5.20'
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.19
4
+ version: 0.5.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.