1 00:00:00,960 --> 00:00:07,170 ‫So the channel represents a logical data pipe that exists between the client and the server, in some 2 00:00:07,170 --> 00:00:11,010 ‫cases, the shell command in the interpreter session does not work. 3 00:00:11,580 --> 00:00:15,540 ‫In such cases, the channel command can be used to obtain the command lines. 4 00:00:17,400 --> 00:00:24,630 ‫So we are in a maternity session in Cali, if we type channel with no parameter, we get the help about 5 00:00:24,630 --> 00:00:25,770 ‫the usage of the command. 6 00:00:27,620 --> 00:00:33,650 ‫The parameter is to list the active channels same as a yellow parameter of the session's command, not 7 00:00:33,650 --> 00:00:35,090 ‫any active channel at the moment. 8 00:00:36,410 --> 00:00:42,590 ‫So the execute command runs a command on the target, if you run a command with no parameter again, 9 00:00:42,590 --> 00:00:45,140 ‫you will see the help manual of the command. 10 00:00:46,070 --> 00:00:48,710 ‫The usage of the execute command is here. 11 00:00:49,550 --> 00:00:54,320 ‫Name the file with f parameter and then the options come. 12 00:00:55,300 --> 00:01:04,660 ‫So f, to give the file name which will be run, I do interact with the process immediately uppercase 13 00:01:04,660 --> 00:01:08,260 ‫h to create the process hidden from view. 14 00:01:08,470 --> 00:01:10,750 ‫So the victim won't see anything. 15 00:01:12,730 --> 00:01:14,020 ‫Now, this is also important. 16 00:01:14,950 --> 00:01:16,810 ‫See, to create a channel. 17 00:01:17,680 --> 00:01:21,460 ‫So let's create a channel using the execute command. 18 00:01:23,260 --> 00:01:28,810 ‫Commander XY is the process we want, which is, as you know, the command line executable of Windows 19 00:01:28,810 --> 00:01:29,440 ‫systems. 20 00:01:30,660 --> 00:01:38,640 ‫S. To create a channel as a result of this execution abrogates each to create a hidden process. 21 00:01:39,240 --> 00:01:44,940 ‫Now, if we use the I parameter here, we directly interact with the channel created for this command. 22 00:01:45,210 --> 00:01:47,310 ‫Don't use the parameter right now. 23 00:01:47,850 --> 00:01:50,970 ‫OK, so hit enter to run the command. 24 00:01:52,290 --> 00:01:58,650 ‫A command not ICSI process has been created on the vector machine, and the Channel four is created 25 00:01:58,650 --> 00:02:02,880 ‫between the victim and us, so let's list the channels. 26 00:02:03,940 --> 00:02:05,320 ‫Here we have Channel four. 27 00:02:06,460 --> 00:02:07,600 ‫Do interact with the channel. 28 00:02:07,630 --> 00:02:09,250 ‫Use the parameter. 29 00:02:11,530 --> 00:02:14,520 ‫Here we have a command shell on the victim, dir. 30 00:02:15,010 --> 00:02:18,130 ‫To list the files and folders inside the current folder. 31 00:02:19,490 --> 00:02:26,900 ‫Once again, we can use control, seeks to terminate the channel or control Z keys to send the channel 32 00:02:26,900 --> 00:02:27,590 ‫to the background. 33 00:02:29,310 --> 00:02:36,120 ‫Now, another way to terminate a channel is using the channel command with the C parameter in a maturity 34 00:02:36,120 --> 00:02:36,600 ‫session. 35 00:02:37,230 --> 00:02:40,440 ‫Give the ID number with C and that's it. 36 00:02:41,040 --> 00:02:42,300 ‫We terminated the channel.