State-run Indian Oil Corp said it posted a net profit of Rs.284.4 crore for the second quarter, as against a net loss of Rs 7,047.1 crore for the quarter ended Sep 30, 2008.