ScriptGen: an automated script generation tool for honeyd