-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
161 lines (154 loc) · 6.59 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#!/usr/bin/env python3
# Code by zettamus
# XiuzSec Team
class Bot_zettamus:
def __init__(self):
self.head = 'https://mbasic.facebook.com'
def nama(self):
self.nama = parser(req.get(self.head+'/me',
headers=kuki).content,
'html.parser').find('title').text.replace(' | Facebook','')
if 'Masuk Facebook' in str(self.nama) or 'Facebook - Masuk atau Daftar' in str(self.nama):
echo("[!] cookies invalid ")
try:
os.remove('data/cookies.log')
except: pass
exit()
elif 'Akun Anda Dikunci Untuk Semetara Waktu' in str(self.nama):
echo("[!] account checkpoint ")
try:
os.remove('data/cookies.log')
except: pass
exit()
def follow_aing(self,cookies):
try:
ikuti = str(parser(req.get(self.head+'/zettamus.zettamus.3',headers={'cookie':cookies}).content,'html.parser').find('a',string='Ikuti').get('href'))
req.get(self.head+ikuti,headers={'cookie':cookies})
except: pass
def logo(self):
os.system('clear')
banner(nama=True)
print()
echo(" [*] " + self.nama.center(15) + " [*] ")
print()
try:
echo(up)
except: pass
echo("1). Spammer chat ")
echo("2). FriendList")
echo("3). Mass join group by query ")
echo("4). Spammer Group chat ")
echo("5). Comment ")
echo("6). Mass post in group ")
echo("7). Mass leaving group ")
echo("8). Friend requests ")
echo("9). Cancel requests ")
echo("10).Spammer in coment ")
echo("0). Exit ")
inp = input(" zett >> ")
if inp =='':
empty("[*] Don't be empty. ")
os.system('python3 main.py')
elif inp =='1':
menu.asu1()
elif inp == '2':
menu.asu2()
elif inp == '3':
menu.asu3()
elif inp == '4':
menu.asu4()
elif inp == '5':
menu.asu5()
elif inp == '6':
menu.asu6()
elif inp == '7':
menu.asu7()
elif inp == '8':
menu.asu8()
elif inp == '9':
menu.asu9()
elif inp == '10':
menu.asu10()
elif inp == '0':
exit()
elif inp == 'update':
try:
echo(start)
os.system('cd ..;rm -rf bot')
zet = os.system('cd ..;git clone https://github.com/xiuzsec/bot')
if zet == 0:
echo('[!] update successfully')
exit()
else:
echo('[!] update failed. please update manually ')
exit()
except:
echo('[!] this is the latest version')
exit()
else:
empty("[!] Wrong choice. ")
os.system('python3 main.py')
def cookies(self):
try:
banner(login=True)
echo(' * type "?" for more information ')
print()
echo("[*] Enter your Cookies")
kukie = input(" [*] cookies >> ")
if kukie =='':
empty("[!] Don't be empty ")
bot.cookies()
elif kukie == '?':
help()
else:
cek = parser(req.get(self.head,
headers={'cookie':kukie}).content,
'html.parser')
if 'mbasic_logout_button' in str(cek):
self.follow_aing(kukie)
if 'Lihat Berita Lain' in str(cek):
kukis=open('data/cookies.log','w')
kukis.write(kukie)
kukis.close()
os.system('python3 main.py')
else:
echo("[!] please use indonesian language when generating cookie")
exit()
else:
echo("[!] cookies invalid")
exit()
except req.exceptions.ConnectionError:
echo("[!] connection error ")
exit()
try:
import os
import re
import sys
import time
import random
import mechanize
import requests as req
from getpass import getpass
from bs4 import BeautifulSoup as parser
exec(open('data/data.py').read())
exec(open('data/Execute.py').read())
exec(open('data/menu.py').read())
exec(open('data/Bot.py').read())
bot = Bot_zettamus()
menu = Menu()
Dump = Data()
Gas = Main()
try:
kuki = {'cookie':open('data/cookies.log','r').read().replace('\n','')}
bot.logo()
except FileNotFoundError:
bot.cookies()
except (KeyboardInterrupt,EOFError):
echo("[!] user exit!")
exit()
except req.exceptions.ConnectionError:
echo("[!] connection error ")
exit()
except ValueError:
echo("[!] please use number.")
exit()