Skip to content

Commit 2567bfc

Browse files
authored
Merge pull request #347 from ninp0/master
PWN::Plugins::Android module - #bugfix in permissions for #list_insta…
2 parents f13328a + b185f66 commit 2567bfc

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

.rubocop_todo.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-04-21 21:47:04 UTC using RuboCop version 1.50.2.
3+
# on 2023-07-06 20:02:51 UTC using RuboCop version 1.53.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -17,15 +17,16 @@ Layout/LineContinuationSpacing:
1717
- 'packer/provisioners/wpscan.rb'
1818
- 'vagrant/provisioners/beef.rb'
1919

20-
# Offense count: 269
20+
# Offense count: 282
21+
# This cop supports unsafe autocorrection (--autocorrect-all).
2122
Lint/UselessAssignment:
2223
Enabled: false
2324

24-
# Offense count: 628
25+
# Offense count: 669
2526
Lint/UselessRescue:
2627
Enabled: false
2728

28-
# Offense count: 273
29+
# Offense count: 283
2930
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
3031
Metrics/AbcSize:
3132
Max: 328
@@ -36,7 +37,7 @@ Metrics/AbcSize:
3637
Metrics/BlockLength:
3738
Max: 196
3839

39-
# Offense count: 47
40+
# Offense count: 49
4041
# Configuration parameters: CountBlocks.
4142
Metrics/BlockNesting:
4243
Max: 5
@@ -47,31 +48,31 @@ Metrics/CollectionLiteralLength:
4748
Exclude:
4849
- 'lib/pwn/plugins/uri_scheme.rb'
4950

50-
# Offense count: 100
51+
# Offense count: 108
5152
# Configuration parameters: AllowedMethods, AllowedPatterns.
5253
Metrics/CyclomaticComplexity:
5354
Max: 231
5455

55-
# Offense count: 496
56+
# Offense count: 518
5657
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
5758
Metrics/MethodLength:
5859
Max: 466
5960

60-
# Offense count: 49
61+
# Offense count: 52
6162
# Configuration parameters: CountComments, CountAsOne.
6263
Metrics/ModuleLength:
63-
Max: 1186
64+
Max: 1187
6465

65-
# Offense count: 93
66+
# Offense count: 101
6667
# Configuration parameters: AllowedMethods, AllowedPatterns.
6768
Metrics/PerceivedComplexity:
6869
Max: 51
6970

70-
# Offense count: 165
71+
# Offense count: 158
7172
Style/ClassVars:
7273
Enabled: false
7374

74-
# Offense count: 289
75+
# Offense count: 287
7576
# This cop supports safe autocorrection (--autocorrect).
7677
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
7778
# SupportedStyles: assign_to_condition, assign_inside_condition
@@ -129,7 +130,7 @@ Style/StringLiterals:
129130
Exclude:
130131
- 'bin/pwn'
131132

132-
# Offense count: 585
133+
# Offense count: 601
133134
# This cop supports safe autocorrection (--autocorrect).
134135
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
135136
# URISchemes: http, https

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ gem 'net-ldap', '0.18.0'
4848
gem 'net-openvpn', '0.8.7'
4949
gem 'net-smtp', '0.3.3'
5050
gem 'nexpose', '7.3.0'
51-
gem 'nokogiri', '1.15.2'
51+
gem 'nokogiri', '1.15.3'
5252
gem 'nokogiri-diff', '0.2.0'
5353
gem 'oily_png', '1.2.1'
5454
gem 'open3', '0.1.2'
@@ -67,7 +67,7 @@ gem 'rex', '2.0.13'
6767
gem 'rmagick', '5.2.0'
6868
gem 'rspec', '3.12.0'
6969
gem 'rtesseract', '3.1.2'
70-
gem 'rubocop', '1.53.1'
70+
gem 'rubocop', '1.54.1'
7171
gem 'rubocop-rake', '0.6.0'
7272
gem 'rubocop-rspec', '2.22.0'
7373
gem 'ruby-audio', '1.6.1'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.782]:001 >>> PWN.help
40+
pwn[v0.4.783]:001 >>> PWN.help
4141
```
4242

4343
[![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.2.2@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.782]:001 >>> PWN.help
55+
pwn[v0.4.783]:001 >>> PWN.help
5656
```
5757

5858

lib/pwn/plugins/android.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ module Android
175175
end
176176

177177
`#{adb_path} root` if as_root
178-
app_resp = `#{adb_path} shell pm list packages`
178+
app_resp = `#{adb_path} shell pm list packages` if as_root
179+
app_resp = `#{adb_path} shell pm list packages --user 0` unless as_root
179180
app_resp.gsub("\npackage:", "\n").split("\n")
180181
rescue StandardError => e
181182
raise e

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.782'
4+
VERSION = '0.4.783'
55
end

0 commit comments

Comments
 (0)