
COFF and BOF Loader written in Nim
मूल रूप से, NiCOFF Nim में लिखा गया एक COFF और BOF फ़ाइल लोडर है। NiCOFF एक BOF या COFF फ़ाइल पढ़ता है, उसे पार्स करता है और मेमोरी में निष्पादित करता है। पूरा प्रोजेक्ट Yasser और Kevin के COFF लोडर प्रोजेक्ट्स पर आधारित है। इन प्रोजेक्ट्स में लोडर और बीकन फ़ंक्शन दोनों को Nim में फिर से लिखा गया था।
आप निम्न कमांड से सीधे सोर्स कोड संकलित कर सकते हैं:
nim c -d:release -o:NiCOFF.exe Main.nim
यदि आपको "cannot open file" त्रुटि मिलती है, तो आपको आवश्यक निर्भरताएँ भी स्थापित करनी चाहिए:
nimble install ptr_math winim
NiCOFF अधिकतम तीन तर्क ले सकता है: BOF या COFF फ़ाइल पथ, प्रारंभ फ़ंक्शन एंट्री (आप फ़ंक्शन पॉइंटर बदलना चाह सकते हैं), और वैकल्पिक BOF तर्क (आप Kevin's script देख सकते हैं)।
PS C:\Users\test\Desktop\NiCOFF\bin> .\NiCOFF.exe .\ipconfig.x64.o go
______ _ ______ _____ _______ _______
| ___ \(_)/ _____) ___ \(_______|_______)
| | | |_| / | | | |_____ _____
| | | | | | | | | | ___) | ___)
| | | | | \____| |___| | | | |
|_| |_|_|\______)_____/|_| |_|
@R0h1rr1m
[+] File is read!
[+] Sections are copied!
[+] Relocations for section: .text
[+] Relocations for section: .data
[+] Relocations for section: .bss
[+] Relocations for section: .xdata
[+] Relocations for section: .pdata
[+] Relocations for section: .rdata
[+] Relocations for section: /4
[+] Relocations are done!
[+] Trying to find the entry: go
[+] go entry found!
[+] Executing...
[+] COFF File is Executed!
[+] Output Below:
केवल अधिकृत सुरक्षा परीक्षण के लिए। स्पष्ट अनुमति के बिना सिस्टम के खिलाफ इस उपकरण का दुरुपयोग अवैध है।