Refactored big package attack code