
基本的に、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 は最大3つの引数を受け取れます: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:
許可されたセキュリティテストのみを対象としています。明示的な許可なくシステムに対してこのツールを悪用することは違法です。