Добро пожаловать! Это — архивная версия форумов на «Хакер.Ru». Она работает в режиме read-only.
 

Код на сайте. Что такое.

Пользователи, просматривающие топик: none

Зашли как: Guest
Все форумы >> [В Сети] >> Код на сайте. Что такое.
Имя
Сообщение << Старые топики   Новые топики >>
Код на сайте. Что такое. - 2009-06-07 22:35:49.023333   
PILIGRIMERT

Сообщений: 299
Оценки: 0
Присоединился: 2008-12-25 22:52:37.420000
Вот. Нашел на одном сайте методом весьма нехитрого запроса. Что это такое и что с этим можно сделать?

#!/bin/sh # # Sophos Anti-Virus for Unix - Enterprise Manager installation/update script # Copyright (c) 2003-2008 Sophos Plc, www.sophos.com VAexit() { if [ "$new_cid_list" != "" ] && [ "$new_cid_list" != "$central_install_dir/$cid_list" ]; then if [ -r $new_cid_list ]; then rm -f $new_cid_list fi fi if [ "$trusted_calcmd5" != "" ]; then if [ -r $trusted_calcmd5 ]; then rm -f $trusted_calcmd5 fi fi if [ -r /tmp/sav_file_list ]; then rm -f /tmp/sav_file_list fi status=$1 if [ "$extended_errcodes" = "yes" ]; then if [ $status -eq 0 ]; then status=0 if [ "$vdl_updated" = "yes" ]; then status=1 if [ "$libsavi_updated" = "yes" ]; then status=3 if [ "$sweep_updated" = "yes" ]; then status=7 fi elif [ "$sweep_updated" = "yes" ]; then status=5 fi else if [ "$libsavi_updated" = "yes" ]; then status=2 if [ "$sweep_updated" = "yes" ]; then status=6 fi elif [ "$sweep_updated" = "yes" ]; then status=4 fi fi else status=128 fi fi exit $status } error() { fecho 'Error: ' $* VAexit 1 } fecho() { case "$verbose,$1" in [0-9],[0-9]) if [ $verbose -ge $1 ]; then shift; else return; fi;; esac echo $@ } pathcontains() { i=$IFS IFS=: for d in $1; do if [ "$d" = "$2" ]; then IFS=$i; return 1 fi done IFS=$i return 0 } emcopy() { if [ "$wget" != "" ]; then cd $2 $wget_program $wget_options $http_login $http_passwd $proxy_user $proxy_passwd $1 &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then if [ -r $2/$3 ]; then return 0 fi fi return 1 fi if [ "$network_user" != "" ]; then if [ -r $2/$3 ]; then mv $2/$3 $2/$3.bak fi su - $network_user -c "cp -f $1 $2/$3" if [ -r $2/$3 ]; then rm -rf $2/$3.bak return 0 else if [ -r $2/3.bak ]; then mv $2/$3.bak $2/$3 fi return 1 fi else if [ ! -r $1 ]; then return 1 else cp -f $1 $2/$3 fi return 0 fi } emread() { if [ "$wget" != "" ]; then cd $2 $wget_program $wget_options $http_login $http_passwd $proxy_user $proxy_passwd $1 &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then if [ -r $2/$3 ]; then return 0 fi fi return 1 fi if [ "$network_user" != "" ]; then if [ -r $2/$3 ]; then mv $2/$3 $2/$3.bak fi su - $network_user -c "cp -f $1 $2/$3" if [ -r $2/$3 ]; then rm -rf $2/$3.bak return 0 else if [ -r $2/3.bak ]; then mv $2/$3.bak $2/$3 fi return 1 fi else if [ ! -r $1 ]; then return 1 fi return 0 fi } check_type_of_file_updated() { if [ "$extended_errcodes" != "yes" ]; then return fi echo "$filename" | grep "\.ide" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then vdl_updated=yes return fi echo "$filename" | grep "^vdl" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then vdl_updated=yes return fi echo "$filename" | grep "^sus" | grep "\.vdb" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then vdl_updated=yes return fi echo "$filename" | grep "^libsavi" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then libsavi_updated=yes return fi echo "$filename" | grep "sweep" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then sweep_updated=yes return fi if [ "$filename" = "swpmess.dat" ]; then sweep_updated=yes return fi return } initialise() { checksum= eminstall_conf="/etc/eminstall.conf" em_install_icheckd= filename= finish_scan_command_line= install= install_commands= lastline= keep= extended_errcodes= status=0 vdl_updated= libsavi_updated= sweep_updated= savi_only= root_user="root" central_install_dir= central_install_dir2= central_install_dir3= cache_install_dir= calc_cidchecksum= cid_checksum= cid_list="cidsync.lst" new_cid_list= protocol=" " protocol2=" " protocol3=" " sleeptime=30 run_on_success= tab=" " tmp_cidfile=/tmp/cidlist.$$$ tmp_filelist=/tmp/filelist.$$$ trusted_calcmd5= sav_ic_dir= sav_install_dir= sav_binary_dir= sav_lib_dir= sav_data_dir= sav_man_dir= version=303 verbose=0 wget= wget_program= wget_options= http_login=" " http_passwd=" " proxy_user=" " proxy_passwd=" " original_http_proxy=$http_proxy use_exported_http_proxy= http_proxy=" " ftp_proxy=" " http_login2=" " http_passwd2=" " proxy_user2=" " proxy_passwd2=" " http_proxy2=" " ftp_proxy2=" " http_login3=" " http_passwd3=" " proxy_user3=" " proxy_passwd3=" " http_proxy3=" " ftp_proxy3=" " network_user= if [ -d /sbin ]; then pathcontains $PATH /sbin if [ $? -eq 0 ]; then PATH=$PATH:/sbin fi fi if [ -d /usr/sbin ]; then pathcontains $PATH /usr/sbin if [ $? -eq 0 ]; then PATH=$PATH:/usr/sbin fi fi if [ -d /usr/local/bin ]; then pathcontains $PATH /usr/local/bin if [ $? -eq 0 ]; then PATH=$PATH:/usr/local/bin fi fi if [ -d /usr/local/man ]; then pathcontains $MANPATH /usr/local/man if [ $? -eq 0 ]; then MANPATH=$MANPATH:/usr/local/man fi fi can_use_variables= echo "****" &gt; /tmp/sav_temp while read dummy; do can_use_variables=yes done &lt; /tmp/sav_temp rm -rf /tmp/sav_temp } help_text() { echo "Sophos Anti-Virus Enterprise Manager Installation Utility" echo "Copyright (c) 2003-2006 Sophos Plc, www.sophos.com" echo echo "Display this help text by using: eminstall.sh -h" echo echo "This utility performs an Enterprise Manager installation or update by checking" echo "to see if the central installation directory has been updated. If it has," echo "then an updated version of Sophos Anti-Virus is installed." echo echo "eminstall.sh should be set up so that it is run by a regular cron job. If" echo "no changes have occurred to the central installation directory, then nothing" echo "will be done." echo echo "You will need to set up a configuration file, $eminstall_conf, to tell" echo "eminstall.sh where the central installation directory and cache can be found" echo "as well as other details. See below for details on $eminstall.conf." echo echo "Command line options:" echo "---------------------" echo echo "eminstall.sh -v Verbose - give more details about what eminstall.sh" echo " is doing." echo "eminstall.sh -ninst Download but do not install SAV for Unix - you will" echo " have to install it youself" echo "eminstall.sh -savi Install SAVI components only, not SWEEP" echo "eminstall.sh -eec Output exit code as extended error code" echo " 0x00 - OK" echo " These codes are bit { 0x01 - VDL or IDE files were updated" echo " masks, i.e. SWEEP { 0x02 - library (libsavi) was updated" echo " and VDL updated { 0x04 - SWEEP was updated" echo " would be 0x05 { " echo " 0x80 - an error occurred" echo " Codes are given in hexadecimal" echo "eminstall.sh -r &lt;program or script&gt;" echo " After successful installation, run the" echo " program or script specfied. Note that you" echo " may need to use the full path." echo echo "$eminstall_conf configuration file options:" echo "-----------------------------------------------" echo echo "More detailed control and configuration of eminstall.sh can be performed by" echo "using the configuration file $eminstall_conf." echo echo "Configuration file $eminstall_conf should be set up to tell eminstall.sh" echo "where the central installation directory is, and where the local cache" echo "directory is. The central installation directory specifies a directory," echo "probably on a remote machine, to which Enterprise Manager will download the" echo "latest updates of Sophos Anti-Virus. (The directory may be accessible either" echo "via file-sharing, e.g. NFS, Samba, or via wget and http). The cache directory" echo "is a directory local to this machine, which holds the last update of" echo "Sophos Anti-Virus." echo echo "You can also specify which directories SAV itself should be installed in," echo "by setting values in the $eminstall.conf file." echo echo "The layout of eminstall.conf is:-" echo "EM install CID = &lt;central installation directory for EM&gt;" echo "EM cache dir = &lt;cache directory for EM&gt;" echo "SAV install dir=&lt;SAV install directory prefix, e.g. /usr/local&gt;" echo "SAV bin dir=&lt;SAV bin directory, relative to install dir, e.g. bin&gt;" echo "SAV library dir=&lt;SAV library dir, relative to install dir, e.g. lib&gt;" echo "SAV virus dir=&lt;SAV virus dir, relative to install dir, e.g. sav&gt;" echo "SAV man dir=&lt;SAV man pages dir, relative to install dir, e.g. man&gt;" echo "Verbose=&lt;verbose level&gt;, 0 or 1&gt;" echo "Keep=&lt;file 1 to be kept&gt; &lt;file 2 to be kept&gt; etc." echo "protocol=&lt;protocol to be used for obtaining files from CID - values" echo " can be nfs or wget. Default is file sharing. If you set" echo " wget then you must also set the wget= parameter, and" echo " the EM install CID must be set to the url address where the" echo " central installation files are to be found." echo "network user=&lt;name of user to access network files&gt;" echo " If filesharing is used to obtain files from the CID, and" echo " your root user does not have permission to access the CID" echo " you can use this to specify a username which does have permissions." echo " You must run eminstall.sh as root (the superuser) for this to work." echo "wget=&lt;path to wget program&gt; This value only needs to be set if" echo " the central installation files are to be downloaded via wget." echo " Note that you should set protocol=wget, and that the EM install" echo " CID must be set to the url address where central installation" echo " files are to be found." echo "http-login=&lt;wget --http-login= value&gt; { These parameters" echo "http-passwd=&lt;wget --http-passwd= value&gt; { are only meaningful" echo "proxy-user=&lt;wget --proxy-user= value&gt; { if you are using" echo "proxy-passwd=&lt;wget --proxy-passwd= value&gt; { wget. They allow" echo "http-proxy=&lt;wget http_proxy env variable value&gt;{ control of login," echo "ftp-proxy=&lt;wget ftp_proxy env variable value&gt; { password and proxy" echo " { values." echo "wget-options=&lt;options to be passed to wget&gt; Allows other wget options" echo " to be passed to wget." echo echo "E.g. the lines:-" echo "SAV install dir=/usr/local" echo "SAV bin dir=bin" echo "would set the SAV install dir prefix to /usr/local, and the binary install" echo "directory to /usr/local/bin. These values are optional and will be set to" echo "default values if not supplied. You MUST, however specify the EM install CID" echo "and the EM cache dir." echo echo "Alternate locations can be specified so that if the EM install script" echo "has difficulty accessing one location it will try another instead." echo "You can specify up to three, so that as well as EM install CID there" echo "is EM install CID2 and EM install CID3. Each is tried in turn, so" echo "that if EM install CID fails, EM install CID2 will be tried and then" echo "EM install CID3. You can set a different protocol for each one, so" echo "they do not all need to be accessed via file sharing, or via wget." echo "If you are using wget then these will be urls, and an additional set" echo "of http-login, http-passwd, etc. values can also be set. For example," echo echo "EM install CID = http://example-server/eminstall-cid" echo "EM install CID2 = http://backup-servern/eminstall-cid" echo "EM install CID3 = /mnt/server/central_install_dir" echo "http-login = guest" echo "http-passwd = guest" echo "http-login2 = guest" echo "http-passwd2 = guest" echo "protocol = wget" echo "protocol2 = wget" echo "protocol3 = nfs" echo echo "This also applies to proxy-user, proxy-passwd, http-proxy and ftp-proxy." echo exit 0 } EM_installation() { initialise if [ ${#} -gt 0 ]; then while [ "$1" != "" ] && [ ! "$finish_scan_command_line" ]; do case "$1" in -h | -help) help_text ;; -c | -config) if [ "$2" ]; then eminstall_conf=$2 shift fi ;; -v | -verbose) verbose=1 ;; -r | -run) if [ "$2" ]; then shift run_on_success=$* finish_scan_command_line=yes fi ;; -eec) extended_errcodes=yes ;; -ninst | --no-install) install=no ;; -savi) savi_only=yes ;; -use-exported-http-proxy | --use-exported-http-proxy) use_exported_http_proxy=yes ;; -no-use-exported-http-proxy | --no-use-exported-http-proxy) use_exported_http_proxy=no ;; *) help_text ;; esac shift done fi read_conf_file see_if_alternate_required see_if_update_required update_em_cache remove_unwanted_files set_execute_permissions if [ "$install" != "no" ]; then install_sav_for_unix fi } read_conf_file() { if [ -r $eminstall_conf ]; then l=`egrep -i "^[ $tab]*em[ $tab]*install[ $tab]*cid[ $tab]*=" $eminstall_conf` test "$l" && central_install_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*em[ $tab]*cache[ $tab]*dir" $eminstall_conf` test "$l" && cache_install_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*sav[ $tab]*install[ $tab]*dir" $eminstall_conf` test "$l" && sav_install_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*sav[ $tab]*bin[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_bin_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*sav[ $tab]*lib[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_lib_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*sav[ $tab]*virus[ $tab]*[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_data_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*sav[ $tab]*man[ $tab]*[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_man_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*sav[ $tab]*ic[ $tab]*[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_ic_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" if [ ! "$sav_ic_dir" ]; then l=`egrep -i "^[ $tab]*sav[ $tab]*intercheck[ $tab]*[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_ic_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" if [ ! "$sav_ic_dir" ]; then l=`egrep -i "^[ $tab]*sav[ $tab]*icheckd[ $tab]*[a-z]*[ $tab]*dir" $eminstall_conf` test "$l" && sav_ic_dir="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" fi fi l=`egrep -i "^[ $tab]*verbose" $eminstall_conf` test "$l" && v="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" if [ "$v" != "" ]; then if [ "$v" = "0" ]; then verbose=0 elif [ "$v" = "2" ]; then verbose=2 else verbose=1 fi fi l=`egrep -i "^[ $tab]*keep" $eminstall_conf` test "$l" && keep="`echo $l | sed -e 's/^.*= *//'`" l=`egrep -i "^[ $tab]*wget[ $tab]*=" $eminstall_conf` test "$l" && wget_program="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" if [ "$wget_program" != "" ]; then if [ ! -r $wget_program ]; then error Cannot perform EM installation - cannot find $wget_program program fi if [ ! -x $wget_program ]; then error Cannot perform EM installation - $wget_program program is not executable fi fi l=`egrep -i "^[ $tab]*wget-options[ $tab]*" $eminstall_conf` test "$l" && wget_options="`echo $l | cut -f 2- -d = | sed -e 's/^ *$//'`" l=`egrep -i "^[ $tab]*http-login[ $tab]*=" $eminstall_conf` test "$l" && http_login="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-login[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && http_login2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-login[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && http_login3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-passwd[ $tab]*=" $eminstall_conf` test "$l" && http_passwd="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-passwd[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && http_passwd2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-passwd[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && http_passwd3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-proxy[ $tab]*=" $eminstall_conf` test "$l" && http_proxy="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*use[ $tab]*exported[ $tab]*http[ $tab]*proxy" $eminstall_conf` test "$l" && use_exported_http_proxy=yes l=`egrep -i "^[ $tab]*http-proxy[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && http_proxy2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*http-proxy[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && http_proxy3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*ftp-proxy[ $tab]*=" $eminstall_conf` test "$l" && ftp_proxy="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*ftp-proxy[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && ftp_proxy2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*ftp-proxy[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && ftp_proxy3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*proxy-user[ $tab]*=" $eminstall_conf` test "$l" && proxy_user="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*proxy-user[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && proxy_user2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*proxy-user[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && proxy_user3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*proxy-passwd[ $tab]*=" $eminstall_conf` test "$l" && proxy_passwd="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*proxy-passwd[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && proxy_passwd2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*proxy-passwd[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && proxy_passwd3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*em[ $tab]*install[ $tab]*cid[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && central_install_dir2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*em[ $tab]*install[ $tab]*cid[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && central_install_dir3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*protocol[ $tab]*=" $eminstall_conf` test "$l" && protocol="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*protocol[ $tab]*2[ $tab]*=" $eminstall_conf` test "$l" && protocol2="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*protocol[ $tab]*3[ $tab]*=" $eminstall_conf` test "$l" && protocol3="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" l=`egrep -i "^[ $tab]*network[ $tab]*user[ $tab]*=" $eminstall_conf` test "$l" && network_user="`echo $l | sed -e 's/^.*= *//' -e 's/ *$//'`" if [ "$network_user" != "" ] && [ "$root_user" != "" ]; then touch /tmp/eminstall.$$$ &gt; /dev/null 2&gt; /dev/null chown $root_user /tmp/eminstall.$$$ &gt; /dev/null 2&gt; /dev/null err=$? rm -rf /tmp/eminstall.$$$ if [ $err -ne 0 ]; then error "Cannot set network user if not running as superuser (root)". fi fi else error Cannot perform EM installation - no $eminstall_conf file found. Run eminstall.sh -h for details fi fecho 1 EM Central installation directory is $central_install_dir fecho 1 EM Cache directory is $cache_install_dir } set_wget_to_protocol() { wget= case $protocol in http | ftp | wget) wget=$wget_program;; *) wget=;; esac } see_if_alternate_required() { if [ "$central_install_dir" = "" ]; then error Central install directory not set up fi if [ "$cache_install_dir" = "" ]; then error Cache install directory not set up fi if [ ! -d $cache_install_dir ]; then mkdir $cache_install_dir if [ "$network_user" != "" ]; then chmod a+w $cache_install_dir fi fi if [ -r $cache_install_dir/cid_sync.bak ]; then rm -f $cache_install_dir/cid_sync.bak fi if [ -r $cache_install_dir/$cid_list ]; then mv $cache_install_dir/$cid_list $cache_install_dir/cid_sync.bak fi set_wget_to_protocol if [ "$http_login" != " " ]; then http_login="--http-user=$http_login" fi if [ "$http_passwd" != " " ]; then http_passwd="--http-passwd=$http_passwd" fi if [ "$http_proxy" != " " ]; then export http_proxy elif [ "$use_exported_http_proxy" = "yes" ]; then http_proxy=$original_http_proxy export http_proxy fi if [ "$ftp_proxy" != " " ]; then export ftp_proxy fi if [ "$proxy_user" != " " ]; then proxy_user="--proxy-user=$proxy_user" fi if [ "$proxy_passwd" != " " ]; then proxy_passwd="--proxy-passwd=$proxy_passwd" fi emread $central_install_dir/$cid_list $cache_install_dir $cid_list if [ $? -ne 0 ]; then if [ "$central_install_dir2" != "" ]; then fecho 1 Cannot locate $cid_list at $central_install_dir, trying $central_install_dir2 central_install_dir=$central_install_dir2 if [ "$protocol2" != " " ]; then protocol=$protocol2 fi set_wget_to_protocol if [ "$http_login2" != " " ]; then http_login="--http-user=$http_login2" fi if [ "$http_passwd2" != " " ]; then http_passwd="--http-passwd=$http_passwd2" fi if [ "$proxy_user2" != " " ]; then proxy_user="--proxy-user=$proxy_user2" fi if [ "$proxy_passwd2" != " " ]; then proxy_passwd="--proxy-passwd=$proxy_passwd2" fi if [ "$http_proxy2" != " " ]; then http_proxy=$http_proxy2; export http_proxy fi if [ "$ftp_proxy2" != " " ]; then ftp_proxy=$ftp_proxy2; export ftp_proxy fi else fecho 1 Could not read $cid_list at $central_install_dir, retrying sleep $sleeptime fi emread $central_install_dir/$cid_list $cache_install_dir $cid_list if [ $? -ne 0 ]; then if [ "$central_install_dir3" != "" ]; then fecho 1 Cannot locate $cid_list at $central_install_dir, trying $central_install_dir3 central_install_dir=$central_install_dir3 if [ "$protocol3" != " " ]; then protocol=$protocol3 fi set_wget_to_protocol if [ "$http_login3" != " " ]; then http_login="--http-user=$http_login3" fi if [ "$http_passwd3" != " " ]; then http_passwd="--http-passwd=$http_passwd3" fi if [ "$proxy_user3" != " " ]; then proxy_user="--proxy-user=$proxy_user3" fi if [ "$proxy_passwd3" != " " ]; then proxy_passwd="--proxy-passwd=$proxy_passwd3" fi if [ "$http_proxy3" != " " ]; then http_proxy=$http_proxy3; export http_proxy fi if [ "$ftp_proxy3" != " " ]; then ftp_proxy=$ftp_proxy3; export ftp_proxy fi else fecho 1 Could not read $cid_list at $central_install_dir, retrying sleep $sleeptime fi emread $central_install_dir/$cid_list $cache_install_dir $cid_list if [ $? -ne 0 ]; then if [ -r $cache_install_dir/cid_sync.bak ]; then mv $cache_install_dir/cid_sync.bak $cache_install_dir/$cid_list fi error Could not read $cid_list after 3 attempts, final location was $central_install_dir fi fi fi if [ -r $cache_install_dir/$cid_list ]; then new_cid_list="$cache_install_dir/cid_sync.new" mv $cache_install_dir/$cid_list $new_cid_list else new_cid_list="$central_install_dir/$cid_list" fi if [ -r $cache_install_dir/cid_sync.bak ]; then mv $cache_install_dir/cid_sync.bak $cache_install_dir/$cid_list fi } see_if_update_required() { if [ "$wget" = "" ] && [ "$central_install_dir" = "$cache_install_dir" ]; then error Central install directory and cache install directory are the same fi if [ "$wget" = "" ] && [ "$network_user" != "" ]; then result=`su - $network_user -c "if [ -d $central_install_dir ]; then echo OK; else echo FAIL; fi"` if [ "$result" != "OK" ]; then error cannot find EM central installation directory $central_install_dir fi elif [ "$wget" = "" ] && [ ! -d $central_install_dir ]; then error cannot find EM central installation directory $central_install_dir fi if [ -r $cache_install_dir/$cid_list ]; then diff $new_cid_list $cache_install_dir/$cid_list &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then fecho 1 Central installation list is identical, no need to update. VAexit 0 fi fi calcmd5=$cache_install_dir/calcmd5 if [ -r $calcmd5 ]; then if [ ! -x $calcmd5 ]; then chmod u+x $calcmd5 &gt; /dev/null 2&gt; /dev/null fi else emcopy $central_install_dir/calcmd5 $cache_install_dir calcmd5 if [ $? -ne 0 ]; then error Could not locate checksum program, cannot proceed with EM installation fi if [ ! -r $calcmd5 ]; then error Could not locate checksum program, cannot proceed with EM installation fi if [ ! -x $calcmd5 ]; then chmod u+x $calcmd5 &gt; /dev/null 2&gt; /dev/null fi fi lastline=`cat $new_cid_list | sed -e '$!d'` cid_checksum=$lastline grep -v "$lastline" $new_cid_list &gt; $tmp_cidfile 2&gt; /dev/null calc_cidchecksum=`$calcmd5 $tmp_cidfile` rm -rf $tmp_cidfile if [ "$calc_cidchecksum" != "$cid_checksum" ]; then error Checksum error with new central installation cid list - aborting fi if [ ! -r $cache_install_dir/$cid_list ]; then fecho 1 EM installation cache list not found, updating cache... fi } update_em_cache() { file_list="" if [ "$can_use_variables" = "" ] && [ -r /tmp/sav_file_list ]; then rm -f /tmp/sav_file_list fi trusted_calcmd5=$calcmd5.ok if [ -r $trusted_calcmd5 ]; then rm -f $trusted_calcmd5 fi cp -f $calcmd5 $trusted_calcmd5 fecho 1 Updating files from EM central installation directory cache... grep "icheckd" $new_cid_list | grep -v "icheckd.1" | grep -v "icheckd.conf.5" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then if [ "$sav_ic_dir" ]; then em_install_icheckd=yes fi fi while read filename checksum ; do if [ "$filename" != "$cid_checksum" ]; then if [ "$savi_only" = "yes" ]; then echo "$filename" | grep "sweep" &gt; /dev/null 2&gt; /dev/null if [ $? -eq 0 ]; then c
Post #: 1
RE: Код на сайте. Что такое. - 2009-06-07 22:57:50.846666   
Cep}|{

Сообщений: 1396
Оценки: 0
Присоединился: 2007-06-26 01:11:51.416666
quote:

Что это такое

Написано же:
quote:

# Sophos Anti-Virus for Unix - Enterprise Manager installation/update sсriрt


quote:

и что с этим можно сделать?
Да ничего.
Post #: 2
RE: Код на сайте. Что такое. - 2009-06-07 23:06:22.560000   
PILIGRIMERT

Сообщений: 299
Оценки: 0
Присоединился: 2008-12-25 22:52:37.420000
quote:

# Sophos Anti-Virus for Unix - Enterprise Manager installation/update sсriрt

а можно расшифровать данную строчку?
Post #: 3
RE: Код на сайте. Что такое. - 2009-06-07 23:09:33.936666   
Cep}|{

Сообщений: 1396
Оценки: 0
Присоединился: 2007-06-26 01:11:51.416666
Антивирус Sophos для Unix - скрипт установки\обновления. Менеджер установки\обновления.
Post #: 4
RE: Код на сайте. Что такое. - 2009-06-23 14:09:08.960000   
sepo

Сообщений: 434
Оценки: 10
Присоединился: 2009-01-13 21:19:09.150000
похож на эксплоит ток вот эт не эксплоит… хотя…
Post #: 5
RE: Код на сайте. Что такое. - 2009-06-24 09:50:43.866666   
Pupkin-Zade

Сообщений: 9398
Оценки: 1489
Присоединился: 2004-03-10 13:54:16
Каким боком это похоже на эксплоит???
Post #: 6
Страниц:  [1]
Все форумы >> [В Сети] >> Код на сайте. Что такое.







Связаться:
Вопросы по сайту / xakep@glc.ru

Предупреждение: использование полученных знаний в противозаконных целях преследуется по закону.