WEBVTT - This file was automatically generated by VIMEO

0
00:00:13.200 --> 00:00:13.900
Hello, everyone.

1
00:00:14.800 --> 00:00:19.100
In this video we are going to see various techniques

2
00:00:17.100 --> 00:00:20.200
 to bypass the

3
00:00:20.200 --> 00:00:23.200
 firewall and ideas using nmap.

4
00:00:24.100 --> 00:00:26.500
So what is a firewall and IDs?

5
00:00:27.400 --> 00:00:30.300
IDs stands for intrusion detection system

6
00:00:30.300 --> 00:00:33.600
 which is one of the preventive measures software

7
00:00:33.600 --> 00:00:36.900
 which is installed onto any server which

8
00:00:36.900 --> 00:00:39.700
 detects if there is any malicious or

9
00:00:39.700 --> 00:00:42.700
 harmful attack or a pattern which

10
00:00:42.700 --> 00:00:46.000
 is not a regular pattern if happening.

11
00:00:46.800 --> 00:00:49.400
in case there is a attack or someone is

12
00:00:49.400 --> 00:00:51.700
 trying to scan the ports or

13
00:00:52.900 --> 00:00:56.000
any particular set of ips then IDs

14
00:00:55.100 --> 00:00:58.600
 and firewall May tend to block those

15
00:00:58.600 --> 00:01:00.900
 particular users based on some rules.

16
00:01:02.100 --> 00:01:05.200
They may block the IP address as well as the MAC address.

17
00:01:06.100 --> 00:01:10.100
But in this video we are going to see how you can bypass both

18
00:01:09.100 --> 00:01:12.800
 firewall and IDs on to end

19
00:01:12.800 --> 00:01:14.100
 any web server.

20
00:01:16.300 --> 00:01:20.000
So the first scan that we are going to see is unmap

21
00:01:19.100 --> 00:01:23.000
 Cloak scan with decoys. This

22
00:01:22.100 --> 00:01:25.600
 is one of the amazing scan that I

23
00:01:25.600 --> 00:01:25.900
 really like.

24
00:01:26.700 --> 00:01:29.600
Wherein you can spoof your IP address

25
00:01:29.600 --> 00:01:32.600
 and trick the victim to think if

26
00:01:32.600 --> 00:01:34.600
 the scan is coming from somewhere else.

27
00:01:35.400 --> 00:01:38.700
The syntax is very simple. You just have to type nmap

28
00:01:38.700 --> 00:01:39.700
 Target IP.

29
00:01:40.500 --> 00:01:43.100
Followed by hyphen D which is which is the

30
00:01:43.100 --> 00:01:46.300
 decoy IP that you want to show the victim from where

31
00:01:46.300 --> 00:01:50.200
 the request is coming from. So decoys can

32
00:01:50.200 --> 00:01:53.600
 will make you Anonymous and use some other IP

33
00:01:53.600 --> 00:01:56.400
 address to SCAN the target Network in the practical.

34
00:01:57.600 --> 00:02:00.400
For example, we are going to use Google's IP

35
00:02:00.400 --> 00:02:01.900
 address to SCAN the victim.

36
00:02:02.900 --> 00:02:05.100
The victim will think that the request is

37
00:02:05.100 --> 00:02:08.400
 coming from Google server, but instead we will

38
00:02:08.400 --> 00:02:09.600
 be scanning the target.

39
00:02:10.400 --> 00:02:13.500
Generally, the IP address of these types of search engines

40
00:02:13.500 --> 00:02:16.400
 are not blocked in any of the firewall or

41
00:02:16.400 --> 00:02:19.200
 servers and we can utilize this type of

42
00:02:19.200 --> 00:02:22.300
 cloak scan with decoys to

43
00:02:22.300 --> 00:02:24.700
 bypass the firewalls and ideas.

44
00:02:26.900 --> 00:02:29.200
So it is the Practical time and let's see

45
00:02:29.200 --> 00:02:32.800
 how you can use this particular decoy scan

46
00:02:32.800 --> 00:02:34.500
 to bypass the firewall.

47
00:02:37.100 --> 00:02:38.500
So as you can see here.

48
00:02:39.600 --> 00:02:42.600
First we are going to write a IP tables

49
00:02:42.600 --> 00:02:43.400
 firewall rule.

50
00:02:44.400 --> 00:02:47.500
In which we are going to write that for any request

51
00:02:47.500 --> 00:02:50.600
 log the prefix that is attacker and

52
00:02:50.600 --> 00:02:53.300
 map this means basically if we

53
00:02:53.300 --> 00:02:56.800
 get any particular request a TCP

54
00:02:56.800 --> 00:03:00.200
 request on to our Target server,

55
00:02:59.200 --> 00:03:03.200
 then there should be a log created

56
00:03:02.200 --> 00:03:05.300
 in the syslog file

57
00:03:05.300 --> 00:03:08.600
 with a prefix called as attacker and

58
00:03:08.600 --> 00:03:11.600
 map very simple. We are just doing this to

59
00:03:11.600 --> 00:03:12.500
 see the logs.

60
00:03:13.300 --> 00:03:13.600
Okay.

61
00:03:16.400 --> 00:03:19.300
So let me just type this over here

62
00:03:19.300 --> 00:03:22.900
 and we have created a firewall rule which will

63
00:03:22.900 --> 00:03:25.500
 show for any TCP request the locks

64
00:03:25.500 --> 00:03:27.400
 with a prefix attacker and map.

65
00:03:30.100 --> 00:03:31.700
This is the command that we are going to use.

66
00:03:32.600 --> 00:03:35.700
Remember, this is our Target IP address and

67
00:03:35.700 --> 00:03:38.100
 this is the IP address that we are going to

68
00:03:38.100 --> 00:03:42.000
 use to scan the target. This IP address

69
00:03:41.300 --> 00:03:44.200
 is Google servers IP address.

70
00:03:46.400 --> 00:03:49.900
So I will keep this ready over here. And this

71
00:03:49.900 --> 00:03:52.600
 is the path where you can see the locks

72
00:03:52.600 --> 00:03:56.000
 into a Linux machine, which is what log

73
00:03:55.900 --> 00:03:58.700
 syslog. I'm going to use the tail

74
00:03:58.700 --> 00:04:01.400
 command to see the logs of that particular

75
00:04:01.400 --> 00:04:02.300
 file.

76
00:04:03.900 --> 00:04:06.600
I will just copy this into a new terminal and

77
00:04:06.600 --> 00:04:08.400
 I'm going to grab.

78
00:04:11.500 --> 00:04:14.700
This particular IP. So I will just grab this which

79
00:04:14.700 --> 00:04:17.500
 means if any request comes to

80
00:04:17.500 --> 00:04:20.600
 this particular Target server into the system log

81
00:04:20.600 --> 00:04:23.500
 with this particular specific IP. I

82
00:04:23.500 --> 00:04:26.500
 will filter that IP from the all the system

83
00:04:26.500 --> 00:04:27.500
 logs request.

84
00:04:29.600 --> 00:04:29.700
so

85
00:04:30.700 --> 00:04:33.300
we are going to run this and you can see I have

86
00:04:33.300 --> 00:04:35.100
 run this particular scan.

87
00:04:35.800 --> 00:04:38.200
Let's see over here. So I did not

88
00:04:38.200 --> 00:04:41.900
 hit enter. Now. I'm going to hit enter to grep

89
00:04:41.900 --> 00:04:44.400
 this particular IP from the system

90
00:04:44.400 --> 00:04:47.000
 log files. So I'm going to run this can again.

91
00:04:49.200 --> 00:04:52.500
I will run this and you can see in the logs. We

92
00:04:52.500 --> 00:04:55.400
 are able to successfully see. Okay, we are

93
00:04:55.400 --> 00:04:56.500
 able to see that.

94
00:04:57.300 --> 00:04:59.000
attacker and map IP

95
00:04:59.900 --> 00:05:02.600
1 particular request came

96
00:05:02.600 --> 00:05:05.300
 with a source address. What is the source address?

97
00:05:05.300 --> 00:05:08.600
 The source address is the Google IPS address,

98
00:05:08.600 --> 00:05:11.300
 which we used as a decoy. What is

99
00:05:11.300 --> 00:05:14.100
 the destination address destination address is the

100
00:05:14.100 --> 00:05:17.100
 server's own IP address, which we are scanning. What is

101
00:05:17.100 --> 00:05:20.100
 the protocol the protocol is TCP as you can

102
00:05:20.100 --> 00:05:21.200
 see over here.

103
00:05:23.300 --> 00:05:24.600
All right, so we are able to

104
00:05:25.700 --> 00:05:29.000
Perform a scan staying Anonymous by

105
00:05:28.800 --> 00:05:31.600
 telling the particular server that

106
00:05:31.600 --> 00:05:35.500
 the request is being generated from Google's

107
00:05:34.500 --> 00:05:37.700
 servers IP this

108
00:05:37.700 --> 00:05:41.200
 way. You can scan any particular Target staying

109
00:05:40.200 --> 00:05:43.900
 Anonymous and without even revealing your

110
00:05:43.900 --> 00:05:44.900
 IP address.

111
00:05:46.200 --> 00:05:49.500
I hope you guys understood how you can perform this particular scan.

112
00:05:50.300 --> 00:05:53.500
By using any decoy IP that

113
00:05:53.500 --> 00:05:56.900
 you want in this case. I have used Google's IP.

114
00:05:56.900 --> 00:05:59.600
 You can also use any other IP into

115
00:05:59.600 --> 00:06:02.700
 your same network to trick the victim in thinking

116
00:06:02.700 --> 00:06:05.900
 that another person is scanning that

117
00:06:05.900 --> 00:06:07.600
 particular victim from your network.

118
00:06:09.200 --> 00:06:10.900
I hope you guys understood this. Thank you.
