add nidattack code.