/usr/share/doc/ruby-packetfu/examples/ifconfig.rb is in ruby-packetfu 1.1.11-2.
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 | # -*- coding: binary -*-
$:.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib/"))
require 'packetfu'
# ifconfig for Darwin
iface = ARGV[0] || 'en1'
config = PacketFu::Utils.ifconfig(iface)
print "#{RUBY_PLATFORM} => "
p config
|