Exemplo n.º 1
0
Arquivo: run.py Projeto: YangBeb/TAFA
def menu5():
    banner()
    print(f"   {p}1).{w} Mass Accept Request")
    print(f"   {p}2).{w} Mass Reject Friend")
    print(f"   {p}3).{w} Mass Unadd (not Unfriend)")
    print(f"   {p}4).{w} Mass Unfriend")
    print(f"   {p}0).{w} Back")
    pilih = select(0, 4)
    if pilih == 0:
        menu1()
    elif pilih == 1 or pilih == 2:
        banner()
        print(f"   {p}1).{w} Mass Accept Request" if pilih ==
              1 else f"   {p}2).{w} Mass Reject Friend")
        limit = select(1, 9999999, teks=f"    {C}> {w}Limit:")
        confirm_execute()
        data = dump(murtanto.friend_request,
                    args=(ses, ),
                    limit=limit,
                    show_target=False)
        for url in data:
            url = url[0] if pilih == 1 else url[1]
            function.open_url(ses, url)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
        enter()

    elif pilih == 3:
        banner()
        print(f"   {p}3).{w} Mass Unadd (not Unfriend)")
        limit = select(1, 9999999, teks=f"    {C}> {w}Limit:")
        confirm_execute()
        data = dump(murtanto.friend_requested,
                    args=(ses, ),
                    limit=limit,
                    show_target=False)
        for url in data:
            function.open_url(ses, url)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
        enter()

    elif pilih == 4:
        banner()
        print(f"   {p}4).{w} Mass Unfriend")
        limit = select(1,
                       350,
                       msg_error=f"   {C}> {w}min: 1, max: 350",
                       teks=f"    {C}> {w}Limit:")
        confirm_execute()
        data = dump(murtanto.myFriend,
                    args=(ses, ),
                    limit=limit,
                    show_target=False)
        for name, username, img in data:
            function.unfriend(ses, username)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
        enter()
Exemplo n.º 2
0
def menu2():
    banner()
    print(f"   {p}1). {w}Spam Like in Home")
    print(f"   {p}2). {w}Spam Like in Friend Timeline")
    print(f"   {p}3). {w}Spam Like in Group")
    print(f"   {p}4). {w}Spam Like in Fanspage")
    print(f"   {p}0). {w}Back\n")
    pilih = select(0, 4)
    if pilih == 0:
        menu1()
    elif pilih == 1:
        banner()
        print(f"   {p}1). {w}Spam Like in Home")
        limit = select(1,
                       500,
                       msg_error=f"   {C}> {w}min: 1, max: 500",
                       teks=f"    {C}> {w}Limit:")
        data = dump(murtanto.like_post_home,
                    args=(ses, ),
                    limit=limit,
                    show_target=False)
        for url in data:
            function.open_url(ses, url)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
    elif pilih == 2:
        banner()
        print(f"   {p}2). {w}Spam Like in Friend Timeline")
        id_ = input2(f"   {panah}Id Friend: ")
        limit = select(1,
                       500,
                       msg_error=f"   {C}> {w}min: 1, max: 500",
                       teks=f"    {C}> {w}Limit:")
        data = dump(murtanto.like_post_friend,
                    args=(ses, ),
                    kwargs={"id": id_},
                    limit=limit)
        for url in data:
            function.open_url(ses, url)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
    elif pilih == 3:
        banner()
        print(f"   {p}3). {w}Spam Like in Group")
        id_ = input2(f"   {panah}Id Group: ")
        limit = select(1,
                       500,
                       msg_error=f"   {C}> {w}min: 1, max: 500",
                       teks=f"    {C}> {w}Limit:")
        data = dump(murtanto.like_post_grup,
                    args=(ses, ),
                    kwargs={"id": id_},
                    limit=limit)
        for url in data:
            function.open_url(ses, url)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
    elif pilih == 4:
        banner()
        print(f"   {p}4). {w}Spam Like in Fanspage")
        id_ = input2(f"   {panah}Username Fanspage: ")
        limit = select(1,
                       500,
                       msg_error=f"   {C}> {w}min: 1, max: 500",
                       teks=f"    {C}> {w}Limit:")
        data = dump(murtanto.like_post_fanspage,
                    args=(ses, ),
                    kwargs={"username": id_},
                    limit=limit)
        for url in data:
            function.open_url(ses, url)
            hitung_proses(len(data))
        print(f"\n   {p}[+]{w} Done !!!")
    enter(func=menu2)