# Extract Shellcode from RTF Document > Find and extract embedded shellcode from a malicious RTF file **Tools:** [[tools/rtfdump-py|rtfdump-py]], [[tools/xorsearch|xorsearch]], [[tools/scdbgc|scdbgc]] **FOR610 Lab:** 3.5 ## Commands ```bash # Scan RTF structure — look for groups with lots of hex data rtfdump.py # Extract the hex-heavy group as binary rtfdump.py -s -H -d > extracted.bin # Scan for shellcode patterns (even XOR-encoded) XORSearch -W -d 3 extracted.bin # Emulate shellcode at found offset scdbgc /f extracted.bin /foff /s -1 ``` #recipe #rtfdump-py #xorsearch #scdbgc