1 00:00:00,210 --> 00:00:03,610 ‫Here is an other example source of an end map script. 2 00:00:03,810 --> 00:00:09,210 ‫In addition to the code part, which is to execute the job of the script, it includes some additional 3 00:00:09,210 --> 00:00:14,730 ‫sections such as description categories, usage, author, license type, etc.. 4 00:00:15,690 --> 00:00:21,260 ‫Instead of probing the script code to understand the details of an end map script, you can use script 5 00:00:21,270 --> 00:00:23,550 ‫that help parameter of in map command. 6 00:00:24,490 --> 00:00:30,010 ‫You will see the name, the categories, the link to deep search and the description sections as the 7 00:00:30,010 --> 00:00:31,630 ‫result of the script. 8 00:00:31,810 --> 00:00:32,860 ‫Dash helped query. 9 00:00:33,160 --> 00:00:39,550 ‫So you've heard me say before, but I really need to emphasize the importance of the service and version 10 00:00:39,550 --> 00:00:42,940 ‫detection once again in this and map scripting lecture. 11 00:00:43,330 --> 00:00:49,930 ‫As you know, if you don't run the version, detection and maps supposes that the default service is 12 00:00:49,930 --> 00:00:51,070 ‫running on that port. 13 00:00:52,240 --> 00:00:57,910 ‫In a script, scan and Maps opposes the default services running on the port, so it runs the scripts 14 00:00:57,970 --> 00:00:59,980 ‫as if they are suitable for that service. 15 00:01:00,130 --> 00:01:02,290 ‫It's easy to see it in an end map query. 16 00:01:02,950 --> 00:01:05,260 ‫OK, open a terminal screen and collie. 17 00:01:05,770 --> 00:01:13,450 ‫I use netstat command to see the listening ports as you see state services running, but it's not running 18 00:01:13,450 --> 00:01:14,520 ‫on Port 22. 19 00:01:14,530 --> 00:01:21,540 ‫Instead, it's running on Port 443 and as you know, four four three is the default port of the HTTPS 20 00:01:21,610 --> 00:01:22,090 ‫service. 21 00:01:22,990 --> 00:01:28,390 ‫So if I run a port scan for my colleagues Port 443 without adding the version detection option. 22 00:01:32,660 --> 00:01:35,850 ‫And Maps signs the port is running in service. 23 00:01:36,440 --> 00:01:41,720 ‫Now, if I had the same scripts in this query using script ss h asterisk. 24 00:01:42,860 --> 00:01:48,070 ‫Without diversion detection, not any of the scripts run because and Matt thinks that the service is 25 00:01:48,080 --> 00:01:52,460 ‫aged itbs, not as age and is not run the same age scripts. 26 00:01:53,520 --> 00:01:59,910 ‫So I call the latest map query and add version detection using the uppercase V this time. 27 00:02:00,970 --> 00:02:06,970 ‫Like that, associate scripts are started with a version detection option, and Map finds that the service 28 00:02:06,970 --> 00:02:10,230 ‫is sage and not HTTPS. 29 00:02:10,900 --> 00:02:11,680 ‫Very important. 30 00:02:12,070 --> 00:02:16,570 ‫OK, so sage root script takes a long time to run. 31 00:02:17,110 --> 00:02:20,710 ‫We already got the point, so no need to wait for the results of the scripts.