Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- length=$[ 6 +$[RANDOM % 6]]
- char=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z)
- max=${#char[*]}
- for ((i = 1; i <= $length ; i++))do
- let rand=${RANDOM}%${max}
- password="${password}${char[$rand]}"
- done
- length=$[ 6 +$[RANDOM % 6]]
- char=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z)
- max=${#char[*]}
- for ((i = 1; i <= $length ; i++))do
- let rand=${RANDOM}%${max}
- username="${username}${char[$rand]}"
- done
- echo "##Main##
- #Starting 3proxy as a service/daemon
- daemon
- #DNS Servers to resolve domains and for the local DNS cache
- #that providers faster resolution for cached entries
- nserver 91.239.100.100
- nserver 89.233.43.71
- nscache 65536
- #Authentication
- #CL = Clear Text, CR = Encrypted Passswords (MD5)
- #Add MD5 users with MD5 passwords with "" (see below)
- #users "user:CR:password"
- users $username:CL:$password
- #Logging
- log /var/log/3proxy/3proxy.log D
- logformat \"- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T\"
- rotate 30
- #Auth type
- #auth strong = username & password
- auth strong
- #Binding address
- external 0.0.0.0
- internal 0.0.0.0
- #SOCKS5
- auth strong
- flush
- allow $username
- maxconn 384
- socks -p1080" > /root/3proxy/3proxy.cfg
- sleep 1
- echo "username: " $username
- echo "password: " $password
- echo ifconfig | awk -F':' '/inet addr/&&!/127.0.0.1/{split($2,_," ");print _[1]}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement