Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Bash by Alex ( 16 years ago )
#!/usr/local/bin/bash

export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin

list=$(grep -o -E "("http://download.*/"|[_.A-Za-z0-9]*.rar)" $1) #| awk '{if ( NR % 2 == 0) print $1; else print "output="" $1 """ }')

links=$(echo $list | fmt -s | awk '{if ( NR % 2 == 0) print $1}' )
names=$(echo $list | fmt -s | awk '{if ( NR % 2 != 0) print $1}' )

real_links=$(echo $links  | fmt -s | xargs -n1 curl -L -s --socks5 127.0.0.1:4545 {} | grep -o -E ""http://download.*/"")
touch $3
{
    i=1
    for ll in  $real_links  
    do
 echo "url=$ll"
 echo "output="$2"$(echo $names | awk "{print $$i}")"""
 let i++
    done
} >> $3

 

Revise this Paste

Your Name: Code Language: