Im not sure what is causing this but i can sometimes get it to run for 10 seconds before it kills itself. it usually kills itself right after it turns on so it doesnt run at all only when pressing the gas i can sometimes keep it running longer. I just changed the throttle position sensor and i also got a new mass air flow but nether of these changes solved the issue. Even when i take the maf out the car still dies it does not idle a solid 1 - 1.5k like its suppose to. I tried a different key and still it shuts off.
It is a 2002 subaru wrx the cel is on tomorrow im going to try to use my friends scanner to see what it says. before it was throwing a maf code but changing that solved nothing