HEX
Server: Apache
System: Linux viper.innovativeinternet.net 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User: thetradingroom (1095)
PHP: 8.3.25
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //ibin/iplist
#!/bin/bash

# Get the full hostname
full_hostname=$(hostname)

# Extract the subdomain part (excluding the domain)
subdomain=$(echo $full_hostname | cut -d. -f1)


#ifconfig|gawk '/inet/{print $2}'|gawk -F : '//{print $2}' 

#To sort the output: 
#ifconfig|gawk '/inet/{print $2}'|gawk -F : '//{print $2}'|sort 

#To save it to a file: 
#ifconfig|gawk '/inet/{print $2}'|gawk -F : '//{print $2}' > myiplist.txt 

echo -e "Server: $subdomain ip addresses:"
# Newest list method
#ifconfig | awk '/inet / && $2 !~ /^127\./ {print $2}'
#ip -4 address | awk '/inet / && $2 !~ /^127\./ {print $2}'
ip -4 address | awk '/inet / && $2 !~ /^127\./ {split($2, a, "."); sub(/\/[0-9]+$/, "", a[4]); print a[1]"."a[2]"."a[3]"."a[4]}'