This file is indexed.

/usr/share/doc/ruby-httpclient/examples/wcat.rb is in ruby-httpclient 2.7.1-1ubuntu1.

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
#!/usr/bin/env ruby

# wcat for http-access2
# Copyright (C) 2001 TAKAHASHI Masayoshi

$:.unshift(File.join('..', 'lib'))
require 'httpclient'

if ENV['HTTP_PROXY']
  h = HTTPClient.new(ENV['HTTP_PROXY'])
else
  h = HTTPClient.new()
end

while urlstr = ARGV.shift
  response = h.get(urlstr){ |data|
    print data
  }
  p response.contenttype
  p response.peer_cert if /^https/i =~ urlstr
end