There are two scripts in directory scripts.
A script used to filter and create proxylist file from raw file.
Only line in format of "ip:port@proto.*" will be reserved and the chars after proto in the line will be removed. All duplicate line will be removed.
What the script does is: start->read aline from raw file->capitalize ->find port between : and @->port is number->check the string after @ to find proto -> proto is SOCKS5 or HTTP -> write ip:port@proto to tmpfile -> continue read next line ... loop
If any of the steps failed, just break and continue with the next line from start.
After all of lines are filtered,changed and saved to tmpfile, sort and uniq are used to remove duplicate line.
Usage: ./createlist infile outfile Example:
./createlist p proxylist
sort the file proxylist. Usage:
cp doc/sortlist . ./sortlist