I lost Wifi and IMEI damaged (with 4.2.3g). I managed to get it to 1.0.2

I am trying to flash BB but i cant run it so I installed Terminal.app via iFuntastic but Terminal seems like its not working maybe with out BSD (?)

I just get a black screen when I run terminal and goes back to springboard.

My goal is to

1. flash BB to downgrade BB
2. repair IMEI (not sure how exactly yet)