generate and search pattern string for exploit development