Code restructure and menu for NetAttacks