This file is indexed.

/usr/share/doc/ruby-packet/examples/persistent_print.rb is in ruby-packet 0.1.15-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require "rubygems"
require "eventmachine"

module Client
  def receive_data data
    @tokenizer.extract(data).each do |b_data|
      client_data = b_data
      p "Client has sent #{client_data}"
    end
  end

  def start_push_on_client
    send_data("Hello World : #{Time.now}\n")
  end

  def post_init
    @tokenizer = BufferedTokenizer.new
    EM::add_periodic_timer(1) { start_push_on_client }
  end
end

EM.run do
  EM.start_server("localhost",11009,Client)
end