· 6 years ago · Dec 30, 2019, 07:52 AM
1Day 3 :
2
3
4Basic of Networking :
5
6Types of Network
7
8Protocols
9
10IP Address
11
12-------
13
14What is Network.?
15
16Social Network : Facebook. Instagram. Twitter, Pinterest. Linkdein etc
17
18Connection between multiple people.
19
20Computer Network :
21
22Connection between various digital devices.
23
24Router
25
26Modem
27
28Switch
29
30End Devices : Mobile etc
31
32-----
33
34
35Internet :
36
37How Internet Works ; https://www.youtube.com/watch?v=i5oe63pOhLI
38
39-----
40
41ISP : Internet Service Provider
42
43Airtel | BSNL | Connect | FastWay | Jio etc
44
45ISP ---------> IN Devices ---> Out -> 4 Ports
46
47Switch <--- This is a devices which basicallu used for providing multiple ports by just utilizing single port of the Router.
48
49Router or Modem :
50================
51Its duty is to provide connection inbetween the ISP & Internet Network
52
53
54ISP (Analogue Signal)---> Router --> (Digital Signal 01)End Devices (Mobiles | Laptop etc)
55
56Modem bcz --> Its job is Modulation & DeModulation
57
58--------------
59
60Protocols :
61
62Rules :
63
64Indian Govt Protocol :
65
66Bike - DL , Helmet, Docs, Speed Limit, Left Lane etc
67
68US :
69
70Right Lane
71
72----
73
74Computer Network Protocol :
75
76HTTP : Hyper Text Transfer Protocol
77
78HTTPS : Hyper Text Transfer Protocol (Security)
79
80FTP : File Transfer Protocol
81
82--
83
84Port Numbers :
85==============
86
87Port are the ways via which our system can communicate with external devices. USB | Priner | Projector | Headphone | Server | Google | youtube etc
88
892 Types;
90
91i. Physical Ports :
92
93These are the Port to which we can feel. touch. see.
94
95USB port | HDMI | Charging | etc
96
97ii. Virtual Ports | Software Port
98
99Every digital devices contain these ports
100
1011 - 65535
102
103Mostly used Port :
104
10580 - HTTP
106
107443 - HTTPS
108
10920/21 - FTP
110
111--> torrentz.eu <-- 80
112
113-->
114-----------------------------------------------------------------
115
116malhotrarohit708@gmail.com // 12345 <-- Genuine
117
118malhotrarohit708 // 12345 <-- @gmail.com
119
120malhotra.rohit708@gmail.com // 12345
121
122malhotraROHIT708@gmail.com // 12345 <--- Email are NEVER CASE Sensitive
123
124MaLhOtRa <-- But password are CASE Sensitive
125
126malhotra.rohit.708@gmail.com // 12345
127
128m.al.h.o.t.r.a.r.o.h.i.t.708@gmail.com // 12345 <--- In Case of GMAIL
129
130before @ <-- Dots are having No Meaning
131
132
133malhotrarohit708@ymail.com // 12345
134
135------------------------------------
136
137These all are gmail security feature :
138
139
140Hacker's <---
141
142Amazon --> abc@gmail.com
143
144Gmail.com --> xyz@gmail.com
145
146Gmail --> rtyui@gmail.com
147
148-----
149
150abc@gmail.com
151
152a.bc@gmail.com
153
154ab.c@gmail.com
155
156a..bc@..
157
158-------------------------------------------
159
160Task :
161
162What is the Use of IP Address
163
164
165IP Address - IPv4 | IPv6
166
167Public | Private
168
169NAT
170
171DHCP
172
173Default Gateway
174
175--------------------------------------------
176
177https://pastebin.com/8bCbukZR
178
179
180Day 4 :
181
182
183
184IP Address - IPv4 | IPv6
185
186Public | Private
187
188NAT
189
190DHCP
191
192Default Gateway
193
194-----------------
195
196IP Address :
197
198
199In case digital devices, all devices are having their unique name, so called as IP Address
200
201Internet Protocol Address.
202--------------------------
203
204Who GIves us IP
205
206Looks alike
207
208Types
209-------------
210
211Total Length = 32 Bits
212
213Divided into 4 Equal Parts.. --> Octets
214
215Octet --> A , B, C , D
216
217A.B.C.D
218
219A/B/C/D --> 0 - 255
220
2212 Condition :
222
223i. 4 Octet (A/b/c/d)
224
225ii. Octet : .
226
227iii. 0-255
228
229possible Ip's
230
23112.34.67.89 <---
232
233
23434.56.78.99.65 <-- 5 Octet x
235
23634.56.788.98 <-- >255
237
2388.0.0.1 <--- Done
239
24078.-9.95.34 <-- <0
241
242---------------------------------
243
244
245
246
247Two Types of IP :
248
2491. Public IP
250
251This is the unique IP of us, which no one can have at same time in complete world.
252
253Google --> MY IP
254
255--> Every single Devices whcih is working in same WIFI, will have same Public IP
256
257--> Public IP is given by ISP
258
259--> If any illgela activity happem -> PM, --> This IP will be responsible
260
261--> Mobile --> Mobile Data --> Different IP
262
263
264
265Scenerio -->
266
267Mobile Data --> Crime --> MySelf
268
269WiFi --> 1.2.3.4 --> 10 People --> 1 Person Crime ---> 1.2.3.4
270
271We can check location of the Ip's
272
273www.ip2location.com
274
275ISP <---
276
277Location --> Never we ll be getting --> ISP Location
278
279
280
281
2822. Private IP
283
284In case WIFI, plus to Public IP, one more IP is allocated, Private IP
285
286WiFi --> Public + Private
287
288Mobile Data --> Public IP
289
290
291i. Private IP is given by the WIFI Router | Modem
292
293ii. It always get start : 3 ways :
294
295192.168.***.***
296
297172.16.**.**
298
29910.**.**.**
300
301
302How to check :
303
304Windows | Laptop | Computer
305
306Start --> cmd --->
307
308cmd --> shortcut --> windows + r --> cmd --> Enter
309
310Windows : cmd --> #ipconfig
311
312Linux | Mac | Ubuntu | Kali Linux--> Terminal #ifconfig
313
314IPv4 : Private IP = 192.168.2.71
315
316Subnet : 255.255.255.0
317
318Default Gateway :
319
320
321--------------------
322
323Subnet --> That wifi on which we are connected, how many more devices can be connected.
324
325255 - Last Octet Value
326
327255 - 0 = 255 Devices
328
329-----
330
331Example : 10 Employee
332
333255.255.255.245
334
335255 - 245 = 10
336
337In configuration has to be set in Router.
338
339------
340
341
342Default Gateway :
343
344This is the IP Addess of the router.
345
346SecuneusLabs ---> Aman, Rohit, Palvinder, Simran etc
347
348Faceboo, youtube, Insta, Tiktok etc
349
350These all devices will send a request to router (Default Gateway)
351
352
353How to check various Default Gateway :
354
355Trace Route Command
356
357#tracert www.facebook.com <-- Windows
358
359#traceroute www.facebook.com <-- Linux
360
361Facebook
362
363Secuneus
364
365college website
366
367-----------------------------------------
368
369Windows CMD :
370
3711. IP Checking : Private IP
372
373#ipconfig
374
3752. Coming back to last folder
376
377#cd ..
378
379This will bring us, one folder back.
380
3813. Creating new folder:
382
383#mkdir rohit
384
385MKDIR --> Make Directory
386
3874. List of Files Present :
388
389#dir
390
391
3925. Entering into the Folder
393
394#cd rohit
395
396CD - Change Directory
397
398
3995. Removing Directory/Folder
400
401rohit.txt <-- File
402
403rohit.jpg <-- File
404--
405
406#rmdir Palvinder
407
408#date
409
410#tree
411
412changing password using cmd
413
414#
415
416
417
418
419
420
421------------------------------------------
422Day 5 :
423
424Linux OS :
425
426My Computer --> C: D: E:
427
428My Computer ( / ) ---> /usr /share /root /var /etc ....
429
430
431Desktop --> Windows --> C:\Users\HP\Desktop
432
433/root/Desktop/ <-- Kali Linux
434
435Ububtu --> /home/rohit/Desktop
436
437
438Terminal :
439
440ipconfig ==== ifconfig
441
442
443Path (C:\xyz\..)
444
445#pwd
446
447
448All Directories :
449
450dir ==== ls
451
452
453change directory
454
455cd nmae === Same
456
457
458NewFolder :
459
460mkdir == Same
461
462
463#date
464
465#cal
466#cal january 2021
467#cal 1947
468#rename "oldname" "newnamw"
469
470
471Notepad File ---> Any random content :
472
473Save this File at Desktop
474
475Name ---> palvinder.txt
476
477
478--> Linux
479
480#cat
481
482www.tinyurl.com/linux-palvinder