Ejemplo n.º 1
0
def getgrupmem(idg, name):
    n = int(input('Jumlah id (max:5000): '))
    no = 0
    id = []
    url = [
        f'https://graph.facebook.com/{idg}/members?fields=id&limit=99999999&access_token='
        + tokn
    ]
    print(f'Mantap, kamu pilih {name}')
    while True:
        if len(id) == n:
            break
        try:
            r = get(url[no]).json()
            no += 1
            for i in r['data']:
                if len(id) == n:
                    break
                id.append(i['id'])
                print(f"\rMengambil {len(id)} id", end=""),
                sys.stdout.flush()
            url.append(r['paging']['next'])
        except:
            break
    print(f'\nAuto add friend ke {len(id)} id member {name}..')
    from multiprocessing.pool import ThreadPool as tp
    t = tp(10)
    p = t.map(add, id)
Ejemplo n.º 2
0
def crack():
    global pw
    id = []
    print(m96 + ' Milti brute force')
    print(m91 + ' -----------------')
    list = open(input(f" {m0}Path of list : {m90}"), 'r').readlines()
    print(f" {m96}{str(len(list))}{m0} username found")
    pw = input(f" Password : {m90}")
    print(f"\n {m96}Cracking start")
    print(f" {m91}--------------")
    for i in list:
        id.append(i.strip())

    from multiprocessing.pool import ThreadPool as tp
    try:
        t = tp(20)
        p = t.map(logcrack, id)
    except requests.exceptions.ConnectionError:
        print(m91 + ' Connection error')
    except json.decoder.JSONDecodeError:
        print(m91 + '\n Program stoped ...\n Connection too slow')

    if len(succ) == 0:
        pass
    if len(tf) == 0:
        print(
            f"{m0}\n Cracking {m96}{str(len(id))}{m0} username done with no results\n"
        )
        input(f" {m95}Enter to return{m90}?> {m0}")
        crack()
    else:
        print(f" {m96}Results\n {m96}-------\n\t")
        if len(succ) == 0:
            print(f" {m96}Two factor verification(s):")
            for i in tf:
                print(m95 + '  * ' + m0 + i)

        elif len(tf) == 0:
            print(f" {m96}Success:")
            for i in succ:
                print(m95 + '  * ' + m0 + i)

        else:
            print(f" {m96}Success:")
            for i in succ:
                print(m95 + '  * ' + m0 + i)

            print(f" {m96}Two factor verification(s):")
            for i in tf:
                print(m97 + '  * ' + m0 + i)
Ejemplo n.º 3
0
def sp(q):
	q = q.replace(' ','%20')
	r = get('https://shopee.co.id/api/v2/search_items/?by=relevancy&keyword='+q+'&limit=100&newest=0&order=desc&page_type=search',headers=h).json()
	go = [(i['itemid'],i['shopid']) for i in r['items']]
	from multiprocessing.pool import ThreadPool as tp
	t = tp(10)
	def ss(r):
		rr = get(f'https://shopee.co.id/api/v2/item/get?itemid={r[0]}&shopid={r[1]}').json()
		url = f'https://shopee.co.id/product-i.{r[1]}.{r[0]}'
		harga = round(rr['item']['price']/100000)
		nama = rr['item']['name']
		toko = '\033[93mShopee\033[0m'
		data.append((harga,nama,url,toko))	
#		print(f'\rShopee {len(data)}',end=''),;sys.stdout.flush()
	p = t.map(ss,go)
Ejemplo n.º 4
0
def bf():
	global pw
	id = []
	list = open(input(f'{l6}Uname file list :{l0} '),'r').readlines()
	print(f'{l5}{str(len(list))}{l0} uname successfully loaded.')
	pw = input(f'{l6}Password : {l0}')
	print(f'{l6}Cracking..\n')
	for i in list:
		id.append(i.strip())
	from multiprocessing.pool import ThreadPool as tp
	try:
		t = tp(10)
		p=t.map(logbf,id)
	except requests.exceptions.ConnectionError:
		print(l1+'Connection error')
	if len(succ) == 0 and len(tf) == 0:
		print(f'{l0}\nCracking {l6}{str(len(id))}{l0} uname done with null results.')
	else:
		print(f'''
	{l6}Results
	{l5}-------
	''')
		if len(succ) == 0:
			print(f'{l6}Two factor verification(s):')
			for i in tf:
				print(l5+'  * '+l0+i)
		elif len(tf) == 0:
			print(f'{l6}Success:')
			for i in succ:
				print(l5+'  * '+l0+i)
		else:
			print(f'{l6}Success:')
			for i in succ:
				print(l5+'  * '+l0+i)
			print(f'{l6}Two factor verification(s):')
			for i in tf:
				print(l5+'  * '+l0+i)
Ejemplo n.º 5
0
Archivo: fim.py Proyecto: karjok/fim
def grab(id):
    print(f'{lg}Checking the user profiles..')
    global name, fold
    s.cookies.load()
    r = s.get('https://mbasic.facebook.com/' + id).text
    b = bs(r, 'html.parser')

    # profil name
    n = b.find('title').text
    name = n.replace(' ', '+')[:15]
    if 'Halaman Tidak Ditemukan' in str(n) or 'Facebook' in str(n):
        print(f'{lg}Profile {lx}{id}{lg} not found')
        print('Program stoped !' + lx)
        exit()

    print(f'{lg}User profile name :{lx} {n}')
    fold = input(f'{lg}Folder name :{lx} ')
    np = input(f'{lg}Results amount : {lx}')
    try:
        os.mkdir(fold)
    except:
        pass
    imglink = []
    print(f'{lg}Finding user photo album(s)..')
    for a in b.find_all('a'):

        # search album, if exist, continue
        if 'profile.php?v=photos' in str(
                a) and 'Foto' in a.text or 'photos?lst=' in str(
                    a) and 'Foto' in a.text:
            print('\nAlbum available !')
            print('Grabbing user photo(s)..')
            r = s.get(url + a.get('href')).text
            bb = bs(r, 'html.parser')

            # get photo album named 'upload'
            div = bb.find('div', attrs={'title': 'Unggah'})
            for ia in div.find_all('a'):

                # if album have pager link, continue
                if 'Lihat Semua' in ia.text:
                    link = [ia.get('href')]
                    no = 0
                    while True:
                        try:
                            if len(imglink) == int(np):
                                break
                            r = s.get(url + link[no]).text
                            b = bs(r, 'html.parser')
                            no += 1
                            for a in b.find_all('a'):
                                if len(imglink) == int(np):
                                    break
                                if 'photo.php' in str(a):
                                    imglink.append(a.get(
                                        'href'))  # photos link for download
                                    print(f'\rget {len(imglink)} photo(s)',
                                          end=''),
                                    sys.stdout.flush()

                            # get pager link
                            next = b.find('div', attrs={
                                "id": "m_more_item"
                            }).find('a').get('href')
                            link.append(next)

                        except:
                            break
                else:
                    # if album not have pager link, get photo that available.
                    if len(imglink) == int(np):
                        break
                    if 'photo.php' in str(ia):
                        imglink.append(ia.get('href'))
                        print(f'\rget {len(imglink)} photo(s)', end=''),
                        sys.stdout.flush()

    if len(imglink) == 0:
        print('Album not found !')
    else:
        print('\nDownloading..\n')
        from multiprocessing.pool import ThreadPool as tp
        x = tp(100)
        p = x.map(dl, imglink)
        print(f'{lg}\nDone ! photo(s) saved in : {lx}FIm/{fold}')
Ejemplo n.º 6
0
def cekreq():
    global strg
    try:
        open('kuki.txt', 'r')
    except:
        login()
    s.cookies.load()
    profile = s.get(basic + '/me/friends').text
    b = bs(profile, 'html.parser')
    user = re.findall(r'>Keluar (.*?)<',
                      profile)[0].replace('(', '').replace(')', '')
    ftot = re.findall(r'>Teman (.*?)<',
                      profile)[0].replace('(', '').replace(')', '')
    freq = re.findall(r'>Teman(.*?)<',
                      profile)[0].replace('(', '').replace(')', '')
    if len(freq) == 0:
        freq = "don't have"
        banner(user, ftot, freq)
        print(
            "[\033[93mwarning\033[0m] You don't have friend requests to confirm or delete.\nthis tool only running if you have one or more friend requests."
        )
        exit()

    banner(user, ftot, freq)
    print('''[\033[93mwarning\033[0m] this tool runs
by retrieving all friend request data in your account.
if any, all will be rejected or approved.
but if not, this tool will be finished without results.
''')
    dcac = input('[\033[96minput\033[0m] Decline or Approve ? (d/a) : ')
    if dcac == 'a':
        strg = ['Konfirmasi', 'Approved', 'confirm']

    else:
        strg = ['Hapus Permintaan', 'Deleted', 'delete']
    val = input(f'[\033[96minput\033[0m] Set value (max:{freq}) : ')
    while len(val) == 0 or val not in [f'{x+1}' for x in range(int(freq))]:
        val = input(f'[\033[96minput\033[0m] Set value (max:{freq}) : ')
    print('[\033[96minfo\033[0m] Collecting..')
    link = [basic + '/friends/center/requests/?ref=dbl#friends_center_main']
    no = 0
    dcl = []
    while True:
        if len(dcl) == int(val):
            break
        try:
            r = s.get(link[no]).text
            no += 1
            b = bs(r, 'html.parser')
            for a in b.find_all('a', string=strg[0]):
                if len(dcl) == int(val):
                    break
                dcl.append(basic + a.get('href'))

            nx = b.find('a', string='Lihat selengkapnya').get('href')
            link.append(basic + nx)

            print(f'\r[\033[96minfo\033[0m] {len(dcl)} collected.', end=''),
            sys.stdout.flush()
        except:
            break
    if len(dcl) != 0:
        print(
            f'\n[\033[96minfo\033[0m] Success get {len(dcl)} friend requests')
        print(f'[\033[96minfo\033[0m] Starting..')
        from multiprocessing.pool import ThreadPool as tp
        p = tp(100)
        a = p.map(responder, dcl)
    else:
        print(
            f"[\033[96minfo\033[0m] It looks like you don't have a friend request to respond"
        )

    print(f'\033[0m[\033[96minfo\033[0m] Done. Program finished')
Ejemplo n.º 7
0
def go(uid):
    global ui, pv, s
    s = Session()
    ui = uid
    data = {'url': 'https://www.instagram.com/' + uid}
    data = uenc(data)
    url = 'https://instavideosdownloader.com/download-instagram-photos/'
    no = 0
    link = [url + '?' + data]
    linkimg = []
    pv = input(f'{lc}photo/video/all ? (p/v/a):{lx} ')
    print(f'{lc}get {lx}{uid} {lc}info..')

    if pv == 'p':
        while True:
            try:
                r = s.get(link[no])
                no += 1
                b = bs(r.text, 'html.parser')
                res = b.find('div', attrs={'class': 'igphotos'})
                for a in res.find_all('a'):
                    if 'ig_cache_key' in str(a):
                        getimage(url + a.get('href'))
                link.append('https:' +
                            b.find('a', attrs={
                                'class': 'next-page-block'
                            }).get('href'))
            except:
                break

    elif pv == 'v':
        while True:
            try:
                r = s.get(link[no])
                no += 1
                b = bs(r.text, 'html.parser')
                res = b.find('div', attrs={'class': 'igphotos'})
                for a in res.find_all('a'):
                    if not 'ig_cache_key' in str(a):
                        getvideo(url + a.get('href'))
                link.append('https:' +
                            b.find('a', attrs={
                                'class': 'next-page-block'
                            }).get('href'))
            except:
                break
    elif pv == 'a':
        while True:
            try:
                r = s.get(link[no])
                no += 1
                b = bs(r.text, 'html.parser')
                res = b.find('div', attrs={'class': 'igphotos'})
                for a in res.find_all('a'):
                    if not 'ig_cache_key' in str(a):
                        getvideo(url + a.get('href'))
                    else:
                        getimage(url + a.get('href'))
                link.append('https:' +
                            b.find('a', attrs={
                                'class': 'next-page-block'
                            }).get('href'))
            except:
                break
    else:
        exit()

    from multiprocessing.pool import ThreadPool as tp
    a = tp(1000)
    print('\ndownloading..')
    nc = [nc for nc in zip(content, names)]
    c = a.map(download, nc)
    print(lc + '\ndone')
    print(f'{lc}File saved in {lx}Results/{uid}')