-
Notifications
You must be signed in to change notification settings - Fork 42
/
Setup.py
203 lines (197 loc) · 6.97 KB
/
Setup.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
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
#########################################################
# Windows-Python-RAT Setup #
# [R]emote [A]dministrator [T]ool #
# GitHub: https://github.com/Windows-Python-RAT #
# ##################################################### #
# Coded By Sir.4m1R (Amir Hossein Yeganeh) #
# Telegram: @Sir4m1R #
# Email: [email protected] #
# ##################################################### #
# Developed By Hanieh Panahi #
# Telegram: @Hanie0101 #
# ##################################################### #
# The404Hacking #
# Digital Security ReSearch Group #
# ##################################################### #
# Telegram: https://Telegram.me/The404Hacking #
# Instagram: https://instagram.com/The404Hacking #
# Aparat: http://aparat.com/The404Hacking #
# YouTube: http://yon.ir/youtube404 #
# GitHub: https://github.com/The404Hacking #
# LahzeNegar https://lahzenegar.com/The404Hacking #
# Email: [email protected] #
#########################################################
import os
import platform
import urllib
def clear():
linux = 'clear'
windows = 'cls'
os.system([linux, windows][os.name == 'nt'])
clear()
print "\n [***] Please wait ...\n\n"
#data = urllib.urlopen("https://api.ipify.org/")
#ip = data.read()
#os.system("python -m pip install wget")
clear()
banner = '\n'
banner += ' Hi '+platform.uname()[1]+' !\n'
#banner += ' Your IP: '+ip+' !\n'
banner += ' WelCome to Windows-Python-RAT Setup.\n'
banner += ' ------------------------------------\n'
banner += ' Coder: Sir.4m1R (@Sir4m1R)\n'
banner += ' --------------------------\n'
banner += ' The404Hacking\n'
banner += ' Digital Security ReSearch Group\n'
banner += ' ------------------------------------\n'
banner += ' Select a Options:\n'
banner += ' [1] Install Module.\n'
banner += ' [2] Clone again [for Linux].\n'
banner += ' [3] Report Bug.\n'
banner += ' [4] Create Bot.\n'
banner += ' [5] Compile py File [pyinstaller].\n'
banner += ' [6] Windows-Python-RAT GitHub.\n'
banner += ' [7] About.\n'
banner += ' [0] Exit.\n'
print banner
number = input(" [?] WinRAT-Setup~# ")
if number == 1:
clear()
print "\n [***] Please wait ...\n\n"
os.system("python -m pip install --upgrade pip")
os.system("python -m pip install python-telegram-bot")
os.system("python -m pip install pyttsx")
os.system("python -m pip install autopy")
os.system("python -m pip install pyinstaller")
print '\n\n [+] Installation Completed !\n'
quit()
elif number == 2:
clear()
if os.name == "nt":
print "\n [***] Please wait ...\n\n [X] Error !\n [!] This Method for Linux and Run in Linux Machine !\n"
quit()
elif os.name != "nt":
print "\n [***] Please wait ...\n\n"
os.system("git clone https://github.com/The404Hacking/Windows-Python-RAT.git")
print '\n\n [+] Windows-Python-RAT Cloned !\n Git: https://github.com/The404Hacking/Windows-Python-RAT\n'
quit()
elif number ==3:
clear()
reportbug = '''
Hi !
For Reporting a Bug, Send Mail to:
or
Send Message to Telegram:
https://T.me/Sir4m1R
'''
print reportbug
quit()
elif number == 4:
clear()
createbot = '''
Hi
Create Telegram Bot with @BotFather
-----------------------------------
[1] Go to https://t.me/BotFather and Send /start Command.
[2] Type a Name and Send to BotFather
[3] Select a Username. It must end in 'bot'.
(Ex: Samplebot or Sample_bot)
[4] BotFather send for you a API-TOKEN.
(Ex: 549710235:AAF-cjA1A-upWOZs8y96Qv2AMpQrGJLH6Xo)
[+] Good :D, Replace Your API-Token in Windows-Python-RAT.py ! (Line: 35)
'''
print createbot
def edit():
linux = 'gedit Windows-Python-RAT.py'
windows = 'notepad Windows-Python-RAT.py'
os.system([linux, windows][os.name == 'nt'])
edit()
quit()
elif number == 5:
clear()
installer = '''
Welcome to Compiler [PyInstaller]
---------------------------------
Select a Method:
[1] Console
[2] No-Console'''
print installer
num = input("\n [?] WinRAT-Setup~# ")
if num == 1:
print "\n Console Method:"
iconadrs = raw_input(" [?] Icon [*.ico] Address: ")
pyadrs = raw_input(" [?] Python [*.py] Address: ")
pyname = raw_input(" [?] Python File [*.py] Name: ")
print "\n [***] Please wait ...\n\n"
os.system("pyinstaller -i "+iconadrs+" -F "+pyadrs)
exe1 = pyname
rexe = exe1.replace(".py" , "")
clear()
address1 = '\n [Ok] Python Script Console Compile Successfully !\n [+] Directory: \dist\n [+] File: {}.exe\n\n'.format(rexe)
print address1
quit()
elif num == 2:
print "\n No Console Method:"
iconadrs2 = raw_input(" [?] Icon [*.ico] Address: ")
pyadrs2 = raw_input(" [?] Python [*.py] Address: ")
pyname2 = raw_input(" [?] Python File [*.py] Name: ")
print "\n [***] Please wait ...\n\n"
os.system("pyinstaller -i "+iconadrs2+" --noconsole -F "+pyadrs2)
exe2 = pyname2
rexe2 = exe2.replace(".py" , "")
#clear()
address2 = '\n [Ok] Python Script No-Console Compile Successfully !\n [+] Directory: \dist\n [+] File: {}.exe\n\n'.format(rexe2)
print address2
quit()
else:
quit()
elif number == 6:
clear()
txtgit = '''
Hi !
Windows-Python-RAT
------------------
Download or Clone This RAT in Your Machine :)
Select a options:
[1] Clone [for Linux]
[2] Download [for Windows]
'''
print txtgit
numbr = input(" [?] WinRAT-Setup~# ")
if numbr == 1:
clear()
print "\n [***] Please wait ...\n\n"
os.system("git clone https://github.com/The404Hacking/Windows-Python-RAT.git")
print "\n\n [+] Clone Successfully !\n"
quit()
elif numbr == 2:
print "\n [***] Please wait ...\n\n"
os.system("start https://github.com/The404Hacking/Windows-Python-RAT/master/archive.zip")
print "\n\n [+] Download Successfully !\n"
quit()
else:
quit()
elif number == 7:
clear()
about_text = "\n"
about_text += " Hi "+platform.uname()[1]+" !\n"
about_text += " WelCome to Windows-Python-RAT About :)\n"
about_text += "\n"
about_text += " This RAT Created by Sir.4m1R.\n"
about_text += " This is a RAT for Computer Hacking and Infiltration with Microsoft Windows\n Operating Systems.\n"
about_text += "\n"
about_text += " Using this tool, you can easily perform the Penetration Test on Windows\n and get the commands that are registered in the management robot to get\n the Information you want from the Control Panel Robot (Robot management RAT).\n"
about_text += "\n"
about_text += " This RAT is controlled by a robot in the Telegram. For the robot to work\n and send Information and logs to you in a telegram, you just have to create\n a Robot in the Telegram with @BotFather robot.\n"
about_text += "\n"
about_text += "\n"
about_text += " Powered By Sir.4m1R.\n"
about_text += " Developed By Hanieh Panahi\n"
about_text += " Copyright (C) 2018 The404Hacking.\n"
print about_text
elif number == 0:
print "\n Good Bye "+platform.uname()[1]+" :)\n"
else:
print " Error !"
quit()