Its clearly oil, no idea what it is,, clean it and put it back....
It may be a part for the EGR (yes, on petrol). It should connect to the intake. If that is dirty, the intake could be the same. I encountered a case where the intake (plastic) was melted because of this...
Search Nissan 300ZX Questions
Nissan 300ZX Experts