print "-> Target: $site\n";
print "-> Site source code: $code\n";
how i make this script get the target automatic from file.txt
Inorder to do what you want, you're going to populate a file with the URL's (preferably one per line). Then, read in the file and process each URL in turn. Thethings you're going to research on how to use are things like the open function and also how to read a file into an array (or just how to read each line from a file in turn. hint: foreach would work).