Results 1 to 2 of 2

Thread: ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Aug:2007
    Location: Sofia
    Posts: 2

    Unhappy ?

    .
    - exe . , .
    , skype velizarcho_123

  2. #2
    Banned
    Join Date: Oct:2001
    Location: , -5
    Posts: 2,637
    Code:
    #!/bin/bash
    if (echo $1 | grep -q " ") || (echo $2 | grep -q " ")
    then
       echo  , 
       exit
    fi
    
    PROXY=$1
    PROGRAM=$(which $2)
    MY_IP=$(ifconfig eth0 | grep "inet addr" | cut -f 2 -d : | awk '{ print $1 }')
    NAME=$(basename $PROGRAM)
    
    export HTTP_PROXY=$PROXY
    
    if [ -e /tmp/$NAME ] || [ -e /var/www/$MY_IP/htdocs/$NAME ]
    then
       echo    
       exit
    fi
    
    cp $PROGRAM /var/www/$MY_IP/htdocs
    wget -O /tmp/$NAME http://$MY_IP/$NAME
    chmod +x /tmp/$NAME
    /tmp/$NAME &
    rm -f -- /tmp/$NAME /var/www/$MY_IP/htdocs/$NAME

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |