Guest_imported
New member
- Jan 1, 1970
- 0
Hi all, can you try and help?
If i used the below script would i be safe from intruders?
Could somebody run arbitrary code If I used this script?
Regards,
Gareth
Ps – thank you to anybody that replies
################start###############
#!/bin/sh
TEMP=`date "+%y%m%d%H%M%S"`
touch /tmp/log.$TEMP
echo
echo Login not permitted on this account
echo
echo "Subject: Illegal login" >>/tmp/log.$TEMP
echo " " >>/tmp/log.$TEMP
who am i >>/tmp/log.$TEMP
uname -a >>/tmp/log.$TEMP
/usr/lib/sendmail -t sec@sdplc.com </tmp/log.$TEMP
rm /tmp/log.$TEMP
########end#########
If i used the below script would i be safe from intruders?
Could somebody run arbitrary code If I used this script?
Regards,
Gareth
Ps – thank you to anybody that replies
################start###############
#!/bin/sh
TEMP=`date "+%y%m%d%H%M%S"`
touch /tmp/log.$TEMP
echo
echo Login not permitted on this account
echo
echo "Subject: Illegal login" >>/tmp/log.$TEMP
echo " " >>/tmp/log.$TEMP
who am i >>/tmp/log.$TEMP
uname -a >>/tmp/log.$TEMP
/usr/lib/sendmail -t sec@sdplc.com </tmp/log.$TEMP
rm /tmp/log.$TEMP
########end#########