CasperSecurity

Current Path : /etc/ppp/ip-down.d/
Upload File :
Current File : //etc/ppp/ip-down.d/0000usepeerdns

#!/bin/sh -e

# exit if the resolvconf package is installed
[ -x /sbin/resolvconf ] && exit 0

# exit if systemd-resolved is running
[ -e /run/systemd/system ] && \
  systemctl is-active --quiet systemd-resolved.service &&
  exit 0

# follow any symlink to find the real file
if [ -e /etc/resolv.conf ]; then
  REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
else
  REALRESOLVCONF=/etc/resolv.conf
fi

# if an old resolv.conf file exists, restore it
if [ -e $REALRESOLVCONF.pppd-backup.$PPP_IFACE ]; then
  mv -f $REALRESOLVCONF.pppd-backup.$PPP_IFACE $REALRESOLVCONF

  # restart nscd because resolv.conf has changed
  if [ -e /var/run/nscd.pid ]; then
    /etc/init.d/nscd restart || true
  fi
fi

exit 0
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY