Automatic handling of protocol dependencies and reaction to 0-day attacks with ScriptGen based honeypots