This is a small python script that will enumerate through a list of targets and test their user agent for the shellshock vulnerability.
You can download it from the following link: https://packetstormsecurity.com/files/download/133856/shellshock-autoexploit.txt
Source: https://packetstormsecurity.com/files/133856/Shell-Shock-Auto-Exploitation-Script.html