
COFF and BOF Loader written in Nim
기본적으로 NiCOFF는 Nim으로 작성된 COFF 및 BOF 파일 로더입니다. NiCOFF는 BOF 또는 COFF 파일을 읽어 메모리에서 파싱하고 실행합니다. 전체 프로젝트는 Yasser와 Kevin의 COFF Loader 프로젝트를 기반으로 합니다. 이 프로젝트들의 로더와 비콘 함수는 모두 Nim으로 다시 작성되었습니다.
다음 명령어로 소스 코드를 직접 컴파일할 수 있습니다:
nim c -d:release -o:NiCOFF.exe Main.nim
"cannot open file" 오류가 발생하는 경우, 필요한 의존성도 설치해야 합니다:
nimble install ptr_math winim
NiCOFF는 최대 세 개의 인수를 받을 수 있습니다: BOF 또는 COFF 파일 경로, 시작 함수 엔트리(함수 포인터를 변경하고 싶을 수 있음), 그리고 선택적 BOF 인수입니다 (Kevin의 스크립트를 확인할 수 있습니다).
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:
승인된 보안 테스트에만 사용하세요. 명시적 허가 없이 시스템에 이 도구를 사용하는 것은 불법입니다.