Using the trans-neut module of the BOUT++ code, we study how the fueling penetration depth of supersonic molecular beam injection (SMBI) is affected by plasma density and temperature profiles. The plasma densities and temperatures in L-mode are initialized to be a set of linear profiles with different core plasma densities and temperatures. The plasma profiles are relaxed to a set of steady states with different core plasma densities or temperatures. For a fixed gradient, the steady profiles are characterized by the core plasma density and temperature. The SMBI is investigated based on the final steady profiles with different core plasma densities or temperatures. The simulated results suggest that the SMB injection will be blocked by dense core plasma and high-temperature plasma. Once the core plasma density is set to be () it produces a deeper penetration depth. When is increased from 1.4 to 3.9 at intervals of 0.8, keeping a constant core temperature of = 725 eV at the radial position of , the penetration depth gradually decreases. Meanwhile, when the density is fixed at and the core plasma temperature is set to 365 eV, the penetration depth increases. The penetration depth decreases as is increased from 365 eV to 2759 eV. Sufficiently large or causes most of the injected molecules to stay in the scrape-off-layer (SOL) region, lowering the fueling efficiency.