pwn 0.5.379 → 0.5.380

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: '08c57893a7c8ff17823511aa3c0322a12a4f4ce089120f6067bf6e6b58e5d27e'
4
- data.tar.gz: 3b8e0556e4de92f923a16e7a6e79bdbf017523ba952c4f617bc0bfa36e2e83e5
3
+ metadata.gz: 2e7b6ee84c6d1db20d149b280c6fcd80f2f99b4cc2351ad68f522d099cce28d0
4
+ data.tar.gz: c94cdc3b832b629977921387b8074595171dc39abf241c30bd7eaae4b4fdc355
5
5
  SHA512:
6
- metadata.gz: 4b627e3542f5b38403e1a7ed028f0e82c2c060751acdecfe7fdfe9ed0ea5cd5196558a9da64b84bece55584d51ade3337bd5234576b5aa982c753f7a2988bfb8
7
- data.tar.gz: 9a1966d1dd62ae3f06876895f3fa2b328cacc21441b7df0621d212406d7c78a8b7f2d44b8cdcef38cb16d3a03bc79ab45bca288b7c9fa80c010982110fa892b3
6
+ metadata.gz: 6d1126929afb0fff17d04010855842ac5777d0173dd34af1872432547d07e80e7ded44ece36d3d69b54f172be812539b15974c6cf17f714d5dd3f9aac94ced87
7
+ data.tar.gz: 5a331c6e4323a9971b3b702ec82efdf159d9190df4f1ecc6138a6a46525411328ed4330bb147ce81adfa5886928dfbd91ab4ad56a08a54a799732a1e449ec319
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.379]:001 >>> PWN.help
40
+ pwn[v0.5.380]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.379]:001 >>> PWN.help
55
+ pwn[v0.5.380]: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.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.379]:001 >>> PWN.help
65
+ pwn[v0.5.380]: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:
data/bin/pwn_sast CHANGED
@@ -79,6 +79,8 @@ begin
79
79
  end_of_color = "\e[0m"
80
80
 
81
81
  dir_path = opts[:dir_path] ||= '.'
82
+ previous_dir = Dir.pwd
83
+ Dir.chdir(dir_path) unless dir_path == '.'
82
84
 
83
85
  uri_source_root = opts[:uri_source_root].to_s.scrub
84
86
 
@@ -211,8 +213,6 @@ begin
211
213
 
212
214
  # Start Simple HTTP Server (If Requested)
213
215
  if start_reporting_server
214
- Dir.chdir(dir_path)
215
-
216
216
  listen_ip = '127.0.0.1'
217
217
  listen_ip = '0.0.0.0' if pwn_provider == 'docker'
218
218
  listen_port = PWN::Plugins::Sock.get_random_unused_port.to_s
@@ -228,4 +228,6 @@ begin
228
228
  end
229
229
  rescue SystemExit, Interrupt
230
230
  puts "\nGoodbye."
231
+ ensure
232
+ Dir.chdir(previous_dir) unless dir_path == '.'
231
233
  end
@@ -72,9 +72,9 @@ module PWN
72
72
  target_file: entry,
73
73
  entry_beautified: entry_beautified
74
74
  )
75
- else
76
- author = 'N/A'
77
75
  end
76
+ author ||= 'N/A'
77
+
78
78
  hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
79
79
  line_no: line_no,
80
80
  contents: contents,
@@ -72,9 +72,9 @@ module PWN
72
72
  target_file: entry,
73
73
  entry_beautified: entry_beautified
74
74
  )
75
- else
76
- author = 'N/A'
77
75
  end
76
+ author ||= 'N/A'
77
+
78
78
  hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
79
79
  line_no: line_no,
80
80
  contents: contents,
data/lib/pwn/sast/aws.rb CHANGED
@@ -73,9 +73,9 @@ module PWN
73
73
  target_file: entry,
74
74
  entry_beautified: entry_beautified
75
75
  )
76
- else
77
- author = 'N/A'
78
76
  end
77
+ author ||= 'N/A'
78
+
79
79
  hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
80
80
  line_no: line_no,
81
81
  contents: contents,
@@ -200,9 +200,9 @@ module PWN
200
200
  target_file: entry,
201
201
  entry_beautified: entry_beautified
202
202
  )
203
- else
204
- author = 'N/A'
205
203
  end
204
+ author ||= 'N/A'
205
+
206
206
  hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
207
207
  line_no: line_no,
208
208
  contents: contents,
@@ -72,9 +72,9 @@ module PWN
72
72
  target_file: entry,
73
73
  entry_beautified: entry_beautified
74
74
  )
75
- else
76
- author = 'N/A'
77
75
  end
76
+ author ||= 'N/A'
77
+
78
78
  hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
79
79
  line_no: line_no,
80
80
  contents: contents,
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.379'
4
+ VERSION = '0.5.380'
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.379
4
+ version: 0.5.380
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.