Nyari Proxy !!! [Python Script]
#1
Malam IBT !!!
Abis belajar regular expression ala Python !! terus terinspirasi dari Proxy Finder buatan Om JimmyRomanticDevil !! jadi coba2 juga dehh buat tools untuk nyari proxy !!!
Code:
#!/usr/bin/env python
import re, sys, os
from time import sleep, ctime
import urllib

baca=''

if os.name in ['nt', 'win32']:
        os.system('cls')
else:
        os.system('clear')
print '''
__  __  ____     ____ ____  ___ ____
| / / / |  _  \  /____|    ||__   |    
| |/ /  | | |  | ____/|____||     |  
| |\ \  | |_|  | ----------------------  
|_| \_\ |____ /     c0d3r by : th3-u5h4nt aka RR12
    '''
    
#Pilihan
print '[1] Indonesian Proxy'
print '[2] Other Proxy'
pilihan = raw_input('[+] Enter your choice ! 1 or 2 ? ')

print '[+] Try Connecting ...'
try:
    if pilihan=='1':
        url=urllib.urlopen('http://nntime.com/proxy-country/Indonesia-01.htm').read()
    elif pilihan=='2':
        url=urllib.urlopen('http://nntime.com/proxy-list-01.htm').read()
except:
    print '[*] Failed to connect !'
    sys.exit('[*] Check your internet connection !')

#salin halaman
for isi in url:
        baca+=isi    
print '[+] Connected !'
sleep(2)
print '[+] Fresh Proxy List !! Enjoy it !!'

# cari judul
#cari_judul = re.findall(r'>\w.*</a></th>',baca)
#judul=[]
#for i in cari_judul:
#    judul.append(i[1:-9])
print '-----------------------------------------------------------------------------------'
print 'IP Address:Port\t\t Anonimity Type\t Updated\t Registered To'
print '-----------------------------------------------------------------------------------'

#cari IP Address & Port
cari_IP = re.findall(r'td>\d+\.\d+\.\d+\.\d+<',baca)
ip=[]
for i in cari_IP:
    ip.append(i[3:-1])
cari_port = re.findall(r'value="\d*.\d*\.\d*\.\d*" onclick',baca)
port=[]
pan=[]
j=0
cari_pan = re.findall(r'":".*\)',baca)
for i in cari_pan:
    pan.append(i[3:-1])
    
for i in cari_port:
    batas = -9 - len(pan[j])/2
    port.append(i[batas:-9])
    j+=1

#cari tipe proxy
cari_tipe=re.findall(r'<td>\w+\W\w+</td>|<td>\w+\s</td>',baca)
tipe=[]
n=0
for i in cari_tipe:
    if i[4:-5]=='transparent proxy':
        i='transparent '
        tipe.append(i)
    else:
        tipe.append(i[4:-5])
    
#cari update
cari_update = re.findall(r'GMT">.*</dfn>',baca)
update=[]
for i in cari_update:
    update.append(i[5:-6])

#cari org
cari_org = re.findall(r'organization">.*</td>',baca)
org=[]
for i in cari_org:
    org.append(i[14:-5])

try:
    for rr in range(0,(len(ip)-1)):
        print ip[rr]+':'+ port[rr] + '\t' + tipe[rr] + '\t' + update[rr] + '\t' + org[rr]
        sleep(2)
except KeyboardInterrupt:
    print '\n[+] Menghentikan proses !'
    sleep(1)
    sys.exit(1)

#cari tanggal update
tanggal=re.search(r'Updated \w+.*Total',baca)
tanggal=tanggal.group()
print '-----------------------------------------------------------------------------------'
print tanggal[:-5]
print '-----------------------------------------------------------------------------------'

SSnya !!
[Image: 20uols0.jpg]

yahh meski masih jauh dari kesempurnaan !!! tapi semoga bermanfaat lahh !!! hehheheheh !!!:apn::apn::apn:


Messages In This Thread
Nyari Proxy !!! [Python Script] - by u5h4nt - 08-05-2011, 08:36 PM
RE: Nyari Proxy !!! [Python Script] - by THJC - 08-05-2011, 08:38 PM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 08-05-2011, 08:39 PM
RE: Nyari Proxy !!! [Python Script] - by THJC - 08-06-2011, 10:28 AM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 08-06-2011, 10:57 PM
RE: Nyari Proxy !!! [Python Script] - by THJC - 08-07-2011, 12:10 AM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 08-07-2011, 12:18 AM
RE: Nyari Proxy !!! [Python Script] - by THJC - 08-07-2011, 01:24 AM
RE: Nyari Proxy !!! [Python Script] - by DEMIT - 11-26-2012, 09:25 AM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 11-26-2012, 02:05 PM
RE: Nyari Proxy !!! [Python Script] - by DEMIT - 11-26-2012, 08:33 PM
RE: Nyari Proxy !!! [Python Script] - by devilnay - 08-07-2011, 12:02 AM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 08-07-2011, 03:33 PM
RE: Nyari Proxy !!! [Python Script] - by THJC - 08-07-2011, 09:19 PM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 08-07-2011, 04:25 PM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 08-12-2011, 08:56 PM
RE: Nyari Proxy !!! [Python Script] - by 9oBl4ck - 08-12-2011, 11:48 AM
RE: Nyari Proxy !!! [Python Script] - by lau13 - 08-14-2011, 01:51 PM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 09-01-2011, 02:48 AM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 09-03-2011, 01:33 AM
RE: Nyari Proxy !!! [Python Script] - by Marwanz - 05-24-2012, 01:33 PM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 05-24-2012, 02:33 PM
RE: Nyari Proxy !!! [Python Script] - by Marwanz - 05-24-2012, 03:31 PM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 09-03-2013, 12:29 AM
RE: Nyari Proxy !!! [Python Script] - by mywisdom - 06-17-2013, 02:23 AM
RE: Nyari Proxy !!! [Python Script] - by mywisdom - 09-03-2013, 12:35 AM
RE: Nyari Proxy !!! [Python Script] - by u5h4nt - 09-03-2013, 12:39 AM
RE: Nyari Proxy !!! [Python Script] - by mywisdom - 09-10-2013, 11:17 PM
RE: Nyari Proxy !!! [Python Script] - by ino_ot - 09-10-2013, 11:23 PM
RE: Nyari Proxy !!! [Python Script] - by mywisdom - 09-11-2013, 12:40 AM




Users browsing this thread: 2 Guest(s)