WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.500
Hello everyone. So in this video we are

1
00:00:07.500 --> 00:00:11.000
 going to see how you can save your XML output

2
00:00:10.600 --> 00:00:14.300
 to CSV for Recon.

3
00:00:13.300 --> 00:00:16.700
 Remember this feature is

4
00:00:16.700 --> 00:00:20.400
 not been added to nmap. But we

5
00:00:19.400 --> 00:00:22.800
 are going to use a third party python

6
00:00:22.800 --> 00:00:25.200
 tool to perform this type of

7
00:00:25.200 --> 00:00:28.700
 output scan wherein we will

8
00:00:28.700 --> 00:00:32.300
 save the XML output to CSV output.

9
00:00:33.400 --> 00:00:36.600
So the syntax of doing this is nmap the

10
00:00:36.600 --> 00:00:40.200
 target IP address hyphen o x and file.txt

11
00:00:39.200 --> 00:00:43.000
 which will generate a XML

12
00:00:42.500 --> 00:00:45.700
 file then we are going to take this XML

13
00:00:45.700 --> 00:00:48.900
 file and then we are going to run our parser which

14
00:00:48.900 --> 00:00:51.500
 will convert the XML file to a

15
00:00:51.500 --> 00:00:53.800
 CSV comma separated file.

16
00:00:57.100 --> 00:01:00.100
So, let's see the Practical that how we can

17
00:01:00.100 --> 00:01:01.100
 do this.

18
00:01:07.400 --> 00:01:10.400
So as you can see on my terminal first, I'm going

19
00:01:10.400 --> 00:01:13.400
 to scan this particular Target and I'm

20
00:01:13.400 --> 00:01:16.500
 going to save the output in XML format first.

21
00:01:18.100 --> 00:01:21.700
As you can see the scanning has been successfully started and

22
00:01:21.700 --> 00:01:24.400
 I'm going to save my XML output in the

23
00:01:24.400 --> 00:01:28.000
 file name and map XML output dot

24
00:01:27.000 --> 00:01:28.700
 XML.

25
00:01:30.300 --> 00:01:31.700
I will just skip the scanning part.

26
00:01:33.700 --> 00:01:36.700
So as you can see the scan has been completed successfully.

27
00:01:38.700 --> 00:01:40.100
And a file has been created.

28
00:01:46.900 --> 00:01:47.300
over here

29
00:01:51.900 --> 00:01:54.400
Now what I'm going to do is I'm going

30
00:01:54.400 --> 00:01:56.400
 to take this XML.

31
00:01:57.200 --> 00:02:00.500
Input and I'm going to give it to the

32
00:02:00.500 --> 00:02:01.800
 parser of the Python.

33
00:02:03.300 --> 00:02:05.300
So the format of doing this is python.

34
00:02:06.200 --> 00:02:09.700
The script name which is nmap XML to CSV dot

35
00:02:09.700 --> 00:02:11.400
 pi and the input file.

36
00:02:12.900 --> 00:02:15.300
And the output should be saved in

37
00:02:15.300 --> 00:02:18.800
 this file name. That is Rohit CSV dot

38
00:02:18.800 --> 00:02:19.200
 CSV.

39
00:02:21.300 --> 00:02:24.200
After I will hit enter you can see a CSV file

40
00:02:24.200 --> 00:02:26.500
 has been created. Let me open up for you.

41
00:02:27.300 --> 00:02:30.300
As you can see over here a comma separated value file

42
00:02:30.300 --> 00:02:30.900
 has been created.

43
00:02:31.900 --> 00:02:35.000
And I can identify the status of

44
00:02:34.300 --> 00:02:37.400
 the ports of the target IP

45
00:02:37.400 --> 00:02:37.800
 address.

46
00:02:38.700 --> 00:02:40.900
this this is useful for

47
00:02:42.200 --> 00:02:46.100
Keeping a record of your target for better Recon. For

48
00:02:45.100 --> 00:02:48.200
 example, if after certain amount of

49
00:02:48.200 --> 00:02:51.400
 time if there is any exploit for any

50
00:02:51.400 --> 00:02:54.500
 particular server or service version, you

51
00:02:54.500 --> 00:02:57.800
 can just come back to the CSV file and check with

52
00:02:57.800 --> 00:03:00.200
 servers are vulnerable and you can exploit them.

53
00:03:01.400 --> 00:03:03.100
I hope you guys understood. Thank you.
