pwn 0.5.490 → 0.5.491

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: d4c871405c39f70977bc12f378019f8b57d41c7bcb196a0d98ec2ec9c27786f3
4
- data.tar.gz: a7d7666635a7eb493d673eab21e16185fe13e67f653bbc66aa738bcb375abff1
3
+ metadata.gz: 2405070279e4dcb16274dac715597aa675a5bd7ca63ff5947546140ff0ce32ce
4
+ data.tar.gz: 6a6a8fc328408d3fd7491f4d9a3870e2fe6026264cf358e9008188ffd0e56bd7
5
5
  SHA512:
6
- metadata.gz: 4046713b68f5614414cce21d2367c37609e481043e6279b7816b846b78500dfdc509aa96050763e9882f5c8dcf5f1cdb58e8f5687f3be76476b75a6518b2df98
7
- data.tar.gz: 384df4144dac12d48b1b1a428b02dfba08d5254687aedca300db6d831cfc4aae11ac079bbf0f339f5aa24b837dcd4f5a3aab862c421b202f6f60323e110d09d4
6
+ metadata.gz: 6b9021c3c272e955d6880fa7159a1d2681cba2a71a62ae8f3ed6412b1df1a2e6678c56b6d156899cdf63ffd43727d5fda483c0fdfe79dcc98dcd4a3b65bd12cf
7
+ data.tar.gz: efc03739756dba291d48090cc4a4a215eacff16b32e9a6ccc74b9335dac5e3457a1d6a042555bca0ccbc76655598a9d5a501d057deaba55230806d341d64065b
data/.rubocop.yml CHANGED
@@ -6,7 +6,7 @@ Layout/LineLength:
6
6
  Lint/UselessRescue:
7
7
  Enabled: false
8
8
  Metrics/AbcSize:
9
- Max: 562.2
9
+ Max: 563.3
10
10
  Metrics/BlockLength:
11
11
  Max: 292
12
12
  Metrics/BlockNesting:
@@ -16,7 +16,7 @@ Metrics/ClassLength:
16
16
  Metrics/CyclomaticComplexity:
17
17
  Max: 157
18
18
  Metrics/MethodLength:
19
- Max: 564
19
+ Max: 565
20
20
  Metrics/ModuleLength:
21
21
  Max: 1116
22
22
  Metrics/PerceivedComplexity:
data/Gemfile CHANGED
@@ -49,7 +49,7 @@ gem 'jwt', '3.1.2'
49
49
  gem 'libusb', '0.7.2'
50
50
  gem 'luhn', '3.0.0'
51
51
  gem 'mail', '2.9.0'
52
- gem 'meshtastic', '0.0.140'
52
+ gem 'meshtastic', '0.0.141'
53
53
  gem 'metasm', '1.0.5'
54
54
  gem 'mongo', '2.21.3'
55
55
  gem 'msfrpc-client', '1.1.2'
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.490]:001 >>> PWN.help
40
+ pwn[v0.5.491]: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.490]:001 >>> PWN.help
55
+ pwn[v0.5.491]: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.490]:001 >>> PWN.help
65
+ pwn[v0.5.491]: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:
@@ -551,9 +551,10 @@ module PWN
551
551
  PWN.const_set(:MeshMutex, Mutex.new)
552
552
 
553
553
  # Live typing echo thread (idempotent)
554
- tx_prompt = "#{region}/#{topic} >>>"
554
+ tx_prompt = "pwn.mesh:#{region}/#{topic} >>> "
555
555
  echo_thread = Thread.new do
556
556
  last_line = nil
557
+ last_cursor_pos = -1
557
558
  loop do
558
559
  break unless pi.config.pwn_mesh
559
560
 
@@ -562,11 +563,10 @@ module PWN
562
563
  msg_input = pi.input.line_buffer.to_s
563
564
  ts = Time.now.strftime('%H:%M:%S%z')
564
565
  cursor_pos = Readline.point
565
- prefix = "[#{ts}] [TX] #{tx_prompt} "
566
- base_line = "#{prefix}#{msg_input}"
567
- cursor_abs_index = prefix.length + cursor_pos
566
+ base_line = "#{tx_prompt}#{msg_input}"
567
+ cursor_abs_index = tx_prompt.length + cursor_pos
568
568
  current_line = base_line
569
- if last_line != current_line
569
+ if last_line != current_line || cursor_pos != last_cursor_pos
570
570
  mutex.synchronize do
571
571
  tx_win.clear
572
572
  tx_win.attron(Curses.color_pair(red) | Curses::A_BOLD)
@@ -602,6 +602,7 @@ module PWN
602
602
  tx_win.refresh
603
603
  end
604
604
  last_line = current_line
605
+ last_cursor_pos = cursor_pos
605
606
  end
606
607
  sleep 0.00001
607
608
  end
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.490'
4
+ VERSION = '0.5.491'
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.490
4
+ version: 0.5.491
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -533,14 +533,14 @@ dependencies:
533
533
  requirements:
534
534
  - - '='
535
535
  - !ruby/object:Gem::Version
536
- version: 0.0.140
536
+ version: 0.0.141
537
537
  type: :runtime
538
538
  prerelease: false
539
539
  version_requirements: !ruby/object:Gem::Requirement
540
540
  requirements:
541
541
  - - '='
542
542
  - !ruby/object:Gem::Version
543
- version: 0.0.140
543
+ version: 0.0.141
544
544
  - !ruby/object:Gem::Dependency
545
545
  name: metasm
546
546
  requirement: !ruby/object:Gem::Requirement