nccgroup / asafw

Set of scripts to deal with Cisco ASA firmware [pack/unpack etc.]
BSD 3-Clause "New" or "Revised" License
96 stars 30 forks source link

issue running unpack_repack_bin.sh #14

Open darrellg78 opened 4 years ago

darrellg78 commented 4 years ago

I get the following error. and do not know how to source env.sh, can you point me in the right direction?

error: [unpack_repack_bin] This tool relies on env.sh which has not been sourced

Thanks Darrell

fidgetingbits commented 4 years ago

Type source env.sh from the command line. The env.sh script sets a bunch of environment variables, so you want to use that same shell to run the tools, as they expect these variables to be set. If you use a new shell, you will have to source env.sh again in the new shell.

darrellg78 commented 4 years ago

tried that, but I was running slax in a vm, will try and get ubuntu going tomorrow and see if I have better results. thanks for the reply!

darrellg78 commented 4 years ago

Got it to run, extracted the rootfs image and turned it into a qcow2 file. Still cant get it to run in eve-ng...

fidgetingbits commented 4 years ago

If you show what the problem was with getting the scripts to work and how you fixed it we can document it somewhere in the repo to help others.

I've never heard of eve-ng, but it looks like it's also built on qemu. We only ever used GNS3. The official qcow2 firmware files provided by cisco appeared to have driver/kernel modifications that let them run in an emulated environment, whereas running a .bin firmware wrapping the raw contents inside a qcow2 we never had working fully in GNS3 either I think. There would always be at least some broken functionality like no network, etc.