pwn 0.4.518 → 0.4.519

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: 85e6141b3b8dd08c343adb8df5d2304f6d5986cea9e9a5ec413a64f787d30688
4
- data.tar.gz: 47f7f0b048ee4344300d87b8d1b8bf93897d9c511b554c0b25f4a9b4c4014580
3
+ metadata.gz: fe3ddbaf62f25dd464ff0f20bc246bf64de86e8da5dd99ee9e4bb1e96809ed0e
4
+ data.tar.gz: c412d6c18bdd5050f593315fb246d7269bac6af1de1cfa5dc604fdf1f5dc959c
5
5
  SHA512:
6
- metadata.gz: bba9d9c3c601991e5976fc4574deaa52ca3570dee096f05295f5c93bd6cb7cf16e3c62fd355dbee21ae436acbd7a5f8b543ae4805e18a98404b865ef7c3acb89
7
- data.tar.gz: a47336e634a3f6d68d62231b0a3c63ed7f6d0a0d86c9923f4dfb19b27571a3fee8a2df296e81f5a49e1f249906af12f5d5bb8281923f66324e4603100ac1f30b
6
+ metadata.gz: e13ccc9856631374e168cd58877891784b45ea653eeed58e1c4cd2cc59737078f71aa5891e93c6afa0c0fb1f81f9ca7074cbcad48b411f33981bd495ba0eacca
7
+ data.tar.gz: 5c341c124a7c4df33d0f63f272eb00b63e0f6f8a2bddbadade06bc1792fda1a57eddafe79cf70d4c4da28e1bc1538df473b33a892d05bdc06296531e482008ec
data/Gemfile CHANGED
@@ -60,7 +60,7 @@ gem 'rex', '2.0.13'
60
60
  gem 'rmagick', '4.2.6'
61
61
  gem 'rspec', '3.11.0'
62
62
  gem 'rtesseract', '3.1.2'
63
- gem 'rubocop', '1.35.0'
63
+ gem 'rubocop', '1.35.1'
64
64
  gem 'rubocop-rake', '0.6.0'
65
65
  gem 'rubocop-rspec', '2.12.1'
66
66
  gem 'ruby-audio', '1.6.1'
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.518]:001 >>> PWN.help
40
+ pwn[v0.4.519]: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.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.518]:001 >>> PWN.help
55
+ pwn[v0.4.519]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -311,25 +311,25 @@ module PWN
311
311
  country = ''
312
312
  when 11
313
313
  # 1 digit country+area+prefix+suffix
314
- country = format('%0.1s', Random.rand(1..9))
314
+ country = format('%0.1d', Random.rand(1..9))
315
315
  country = target_num.to_s.chars.first if src_num_rules_arr.include?(
316
316
  :same_country
317
317
  )
318
318
  when 12
319
319
  # 2 digit country+area+prefix+suffix
320
- country = format('%0.2s', Random.rand(1..99))
320
+ country = format('%0.2d', Random.rand(1..99))
321
321
  country = target_num.to_s.chars[0..1].join if src_num_rules_arr.include?(
322
322
  :same_country
323
323
  )
324
324
  when 13
325
325
  # 3 digit country+area+prefix+suffix
326
- country = format('%0.3s', Random.rand(1..999))
326
+ country = format('%0.3d', Random.rand(1..999))
327
327
  country = target_num.to_s.chars[0..2].join if src_num_rules_arr.include?(
328
328
  :same_country
329
329
  )
330
330
  when 14
331
331
  # 4 digit country+area+prefix+suffix
332
- country = format('%0.4s', Random.rand(1..9999))
332
+ country = format('%0.4d', Random.rand(1..9999))
333
333
  country = target_num.to_s.chars[0..3].join if src_num_rules_arr.include?(
334
334
  :same_country
335
335
  )
@@ -337,16 +337,18 @@ module PWN
337
337
  raise "Target # should be 10-14 digits. Length is: #{target_num.to_s.length}"
338
338
  end
339
339
 
340
- area = format('%0.3s', Random.rand(200..999))
340
+ # > 799 for prefix leads to call issues when calling 800 numbers.
341
+ # area = format('%0.3s', Random.rand(200..999))
342
+ area = format('%0.3d', Random.rand(200..999))
341
343
  area = target_num.to_s.chars[-10..-8].join if src_num_rules_arr.include?(
342
344
  :same_area
343
345
  )
344
346
 
345
- prefix = format('%0.3s', Random.rand(200..999))
347
+ prefix = format('%0.3d', Random.rand(200..999))
346
348
  prefix = target_num.to_s.chars[-7..-5].join if src_num_rules_arr.include?(
347
349
  :same_prefix
348
350
  )
349
- suffix = format('%0.4s', Random.rand(0..9999))
351
+ suffix = format('%0.4d', Random.rand(0..9999))
350
352
  src_num = "#{country}#{area}#{prefix}#{suffix}"
351
353
  src_num = target_num if src_num_rules_arr.include?(:self)
352
354
 
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.4.518'
4
+ VERSION = '0.4.519'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.518
4
+ version: 0.4.519
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -688,14 +688,14 @@ dependencies:
688
688
  requirements:
689
689
  - - '='
690
690
  - !ruby/object:Gem::Version
691
- version: 1.35.0
691
+ version: 1.35.1
692
692
  type: :runtime
693
693
  prerelease: false
694
694
  version_requirements: !ruby/object:Gem::Requirement
695
695
  requirements:
696
696
  - - '='
697
697
  - !ruby/object:Gem::Version
698
- version: 1.35.0
698
+ version: 1.35.1
699
699
  - !ruby/object:Gem::Dependency
700
700
  name: rubocop-rake
701
701
  requirement: !ruby/object:Gem::Requirement
@@ -2024,7 +2024,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2024
2024
  - !ruby/object:Gem::Version
2025
2025
  version: '0'
2026
2026
  requirements: []
2027
- rubygems_version: 3.3.19
2027
+ rubygems_version: 3.3.20
2028
2028
  signing_key:
2029
2029
  specification_version: 4
2030
2030
  summary: Automated Security Testing for CI/CD Pipelines & Beyond