403Webshell
Server IP : 199.250.200.62  /  Your IP : 216.73.217.22
Web Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/dedrads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/dedrads/killdns
#!/bin/bash
#This script is intended to clear lingering DNS. Here is an example of the problems cleared
#[root@ash-sys-pro-imhzone ~]# grep -Rl chases /var/cpanel/users/*
#/var/cpanel/users/system
#[root@ash-sys-pro-imhzone ~]# grep -RH chases /var/cpanel/users/*
#/var/cpanel/users/system:DNS686=tester-domain-chases.com

zone=$1
echo "$zone" | grep -qP '^(([a-zA-Z](-?[a-zA-Z0-9])*)\.)*[a-zA-Z](-?[a-zA-Z0-9])+\.[a-zA-Z]{2,}$' #Validate argument is a domain
result=$?
if [[ $result == 0 ]]
  then
    echo 'Domain found'
  else
    echo 'Valid domain required';
    exit 1
  fi
echo "Executing /scripts/killdns $zone"
/scripts/killdns "$zone"
echo "Killing entry $zone from /etc/userdomains"
sed -i.$(date +%m-%d-%Y) "/^$zone:/d" /etc/userdomains
echo "Killing entry $zone from /var/cpanel/users/*"
shopt -s extglob #required for next line to not have system.bak.bak.bak.bak.bak
sed -i.bak "/DNS[0-9]\+=$zone/d" /var/cpanel/users/!(*.bak)

Youez - 2016 - github.com/yon3zu
LinuXploit