here's another way via r0vm: feed your elf to it and ask for the image_id. r0vm --elf foo --id r0vm --elf guest_anonymous_account --id the elf is in the target dir of your code