This file is indexed.

/usr/sbin/dhcp-add-wpad is in dbab 1.3.2-1.

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

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
#!/bin/sh

##-----------------------------------------------------------------------
## Porgram: dhcp-add-wpad
## Purpose: Add WPAD (Web Proxy Autodiscovery Protocol) to dbab/dhch service
## Authors: Tong Sun (c) 2014
## License: BSD license
##-----------------------------------------------------------------------

dbabsvr_addr=`cat /etc/dbab/dbab.addr`

# Add wpad DNS entry
echo "host-record=wpad,$dbabsvr_addr" > /etc/dnsmasq.d/dbab.wpad.conf
# Add wpad location to dhcp server
echo 'dhcp-option=252,"http://wpad/wpad.dat"' >> /etc/dnsmasq.d/dbab.wpad.conf
# Report
echo File /etc/dnsmasq.d/dbab.wpad.conf updated.