1 00:00:00,270 --> 00:00:02,430 ‫Instructor: Hi, within this lecture, 2 00:00:02,430 --> 00:00:06,780 ‫we're going to install JADX and Apktool into our Kali Linux. 3 00:00:06,780 --> 00:00:10,560 ‫So it's a different a procedure for Kali Linux and MAC OS. 4 00:00:10,560 --> 00:00:14,160 ‫So we're going to have separate lectures for both of those. 5 00:00:14,160 --> 00:00:17,220 ‫So if you're running Mac OS, you can skip this lecture, 6 00:00:17,220 --> 00:00:19,209 ‫and go to the following one. 7 00:00:19,209 --> 00:00:23,867 ‫And if you are on Windows, you can just watch this. 8 00:00:23,867 --> 00:00:25,350 ‫And if you're on Linux as well, 9 00:00:25,350 --> 00:00:29,574 ‫you can just watch this to install Apktool, 10 00:00:29,574 --> 00:00:32,400 ‫and JADX on your Kali Linux. 11 00:00:32,400 --> 00:00:35,430 ‫So make sure you open your GitHub pages 12 00:00:35,430 --> 00:00:38,340 ‫for Apktool and JADX. 13 00:00:38,340 --> 00:00:39,330 ‫And over here, 14 00:00:39,330 --> 00:00:43,770 ‫you will see the install instructions of Apktool. 15 00:00:43,770 --> 00:00:45,907 ‫Of course, I'm going to show you how 16 00:00:45,907 --> 00:00:48,600 ‫to do all of this stuff, 17 00:00:48,600 --> 00:00:51,690 ‫but you're going to see exactly what you need 18 00:00:51,690 --> 00:00:54,698 ‫to do in this instructions as well. 19 00:00:54,698 --> 00:00:58,740 ‫For example, over here it says that you have to download 20 00:00:58,740 --> 00:01:02,790 ‫a script and a tool and then make sure they're connected 21 00:01:02,790 --> 00:01:04,503 ‫to each other and just run them. 22 00:01:05,370 --> 00:01:09,060 ‫But in fact, there is also another easier way 23 00:01:09,060 --> 00:01:10,500 ‫to install this tool as well. 24 00:01:10,500 --> 00:01:13,410 ‫So let me copy this and let me open my terminal, 25 00:01:13,410 --> 00:01:14,880 ‫and show it to you. 26 00:01:14,880 --> 00:01:19,230 ‫So first of all, I'm going to change my keyboard settings, 27 00:01:19,230 --> 00:01:20,940 ‫since I have a Turkish keyboard. 28 00:01:20,940 --> 00:01:22,620 ‫Of course, you don't have to do that. 29 00:01:22,620 --> 00:01:23,730 ‫Okay? 30 00:01:23,730 --> 00:01:25,440 ‫So after that, 31 00:01:25,440 --> 00:01:29,250 ‫remember how we install tools on our Kali Linux? 32 00:01:29,250 --> 00:01:31,740 ‫We use apt-get install. 33 00:01:31,740 --> 00:01:36,150 ‫So what is concealed on that web page 34 00:01:36,150 --> 00:01:40,800 ‫is that actually Apktool has a repository on Kali as well. 35 00:01:40,800 --> 00:01:45,630 ‫So if you can just run apt-get install apktool like this, 36 00:01:45,630 --> 00:01:48,130 ‫it will ask you if you really wanna use this. 37 00:01:48,130 --> 00:01:49,710 ‫And I will say, "Yes." 38 00:01:49,710 --> 00:01:51,330 ‫And that's it actually. 39 00:01:51,330 --> 00:01:56,330 ‫You can install Apktool just like this. 40 00:01:56,460 --> 00:02:00,810 ‫And of course, there are other methods. 41 00:02:00,810 --> 00:02:03,810 ‫There are other instructions on the web page, 42 00:02:03,810 --> 00:02:07,650 ‫and you can try that as well if it doesn't work out for you. 43 00:02:07,650 --> 00:02:09,120 ‫But most of the time it will. 44 00:02:09,120 --> 00:02:13,470 ‫You can just download the Apktool from Kali repositories, 45 00:02:13,470 --> 00:02:16,110 ‫and just start using them. 46 00:02:16,110 --> 00:02:17,130 ‫Okay? 47 00:02:17,130 --> 00:02:20,550 ‫So if you cannot install it on your own, 48 00:02:20,550 --> 00:02:23,430 ‫and if apt-get install doesn't work, 49 00:02:23,430 --> 00:02:26,790 ‫if you can't understand what to do over here, 50 00:02:26,790 --> 00:02:29,970 ‫just make sure you watch the next lecture 51 00:02:29,970 --> 00:02:34,110 ‫where we will install Apktool on our Mac OS. 52 00:02:34,110 --> 00:02:37,950 ‫And it's the same procedure that is described over here. 53 00:02:37,950 --> 00:02:38,783 ‫Okay? 54 00:02:38,783 --> 00:02:40,980 ‫But rather than doing that on Mac OS, 55 00:02:40,980 --> 00:02:44,280 ‫you can do the same thing on Kali Linux as well. 56 00:02:44,280 --> 00:02:47,550 ‫But on Kali Linux, it's pretty easy. 57 00:02:47,550 --> 00:02:51,540 ‫So make sure you run the apt-get install apktool first, 58 00:02:51,540 --> 00:02:55,830 ‫and only if it fails, then go back to the website, 59 00:02:55,830 --> 00:02:59,730 ‫and try to just follow the instructions over there. 60 00:02:59,730 --> 00:03:03,630 ‫Once I do that, if I run Apktool like this, 61 00:03:03,630 --> 00:03:08,630 ‫I can see the help documentation as you can see. 62 00:03:08,880 --> 00:03:13,880 ‫The parameters, the commands that we can use with Apktool. 63 00:03:14,820 --> 00:03:16,080 ‫So it's cool. 64 00:03:16,080 --> 00:03:19,140 ‫Now, we are done with Apktool, okay? 65 00:03:19,140 --> 00:03:22,110 ‫And the next tool is, you know, 66 00:03:22,110 --> 00:03:24,810 ‫it's the JADX that we are going to have 67 00:03:24,810 --> 00:03:26,520 ‫to install this as well. 68 00:03:26,520 --> 00:03:29,130 ‫And this is the reason why we are installing, 69 00:03:29,130 --> 00:03:32,340 ‫why we are using Kali Linux in the first place, 70 00:03:32,340 --> 00:03:35,730 ‫because it doesn't work with Windows right now. 71 00:03:35,730 --> 00:03:37,770 ‫So we're gonna have to install this 72 00:03:37,770 --> 00:03:39,960 ‫on our Kali Linux as well. 73 00:03:39,960 --> 00:03:43,383 ‫So I'm going to try apt-get install jadx, 74 00:03:44,370 --> 00:03:46,245 ‫just like in Apktool. 75 00:03:46,245 --> 00:03:47,760 ‫Okay? 76 00:03:47,760 --> 00:03:50,550 ‫It doesn't say in the documentation, 77 00:03:50,550 --> 00:03:52,950 ‫but if you try apt-get install jadx, 78 00:03:52,950 --> 00:03:55,590 ‫you will see it's already embedded 79 00:03:55,590 --> 00:03:56,940 ‫in your repositories as well. 80 00:03:56,940 --> 00:04:01,110 ‫So it's pretty easy to install JADX in Kali Linux, 81 00:04:01,110 --> 00:04:02,658 ‫as you can see. 82 00:04:02,658 --> 00:04:06,990 ‫And after that, of course, if it doesn't work out for you, 83 00:04:06,990 --> 00:04:09,330 ‫you can just go back to documentation, 84 00:04:09,330 --> 00:04:12,780 ‫and try to install JADX in a way 85 00:04:12,780 --> 00:04:16,080 ‫that is instructed in the GitHub page. 86 00:04:16,080 --> 00:04:18,270 ‫But again, this works. 87 00:04:18,270 --> 00:04:22,590 ‫You can get the JADX from repositories like this. 88 00:04:22,590 --> 00:04:23,430 ‫And that's it. 89 00:04:23,430 --> 00:04:26,550 ‫After I'm done, after this is done, 90 00:04:26,550 --> 00:04:29,340 ‫you can try to run JADX. 91 00:04:29,340 --> 00:04:30,330 ‫Okay? 92 00:04:30,330 --> 00:04:32,010 ‫Like this. 93 00:04:32,010 --> 00:04:36,570 ‫And see for yourself that it works. 94 00:04:36,570 --> 00:04:39,420 ‫It says that, "Please specify input file." 95 00:04:39,420 --> 00:04:42,120 ‫So we don't have an input file yet, 96 00:04:42,120 --> 00:04:47,120 ‫so let me try to run jadx --help to see the documentation. 97 00:04:47,250 --> 00:04:49,170 ‫And as you can see, 98 00:04:49,170 --> 00:04:52,470 ‫JADX is now recognized as a command, 99 00:04:52,470 --> 00:04:54,720 ‫and it means that it's working. 100 00:04:54,720 --> 00:04:57,780 ‫So we have the Apktool, we have the JADX, 101 00:04:57,780 --> 00:05:02,160 ‫we have all what we need for Android reverse engineering 102 00:05:02,160 --> 00:05:04,050 ‫in Kali Linux. 103 00:05:04,050 --> 00:05:08,100 ‫Now, as you can see, it says that JDK 8, 104 00:05:08,100 --> 00:05:11,100 ‫or higher must be installed. 105 00:05:11,100 --> 00:05:15,810 ‫So luckily, JDK also comes pre-installed with Kali Linux. 106 00:05:15,810 --> 00:05:17,190 ‫And as you can see, 107 00:05:17,190 --> 00:05:20,700 ‫if you want to manually install this on Kali Linux, 108 00:05:20,700 --> 00:05:23,340 ‫all you have to do is just run this three commands, 109 00:05:23,340 --> 00:05:27,780 ‫but it's already embedded in repository. 110 00:05:27,780 --> 00:05:32,010 ‫So why not install with apt-get install jadx? 111 00:05:32,010 --> 00:05:34,650 ‫Okay, so that's it. 112 00:05:34,650 --> 00:05:39,650 ‫That's how you install JADX and Apktool on your Kali Linux. 113 00:05:41,310 --> 00:05:45,780 ‫Now, it's time to go to the Mac OS installation, 114 00:05:45,780 --> 00:05:47,580 ‫and if you're not using Mac OS, 115 00:05:47,580 --> 00:05:50,610 ‫you can just skip the following lecture. 116 00:05:50,610 --> 00:05:54,900 ‫Because right after that, we are going to start looking 117 00:05:54,900 --> 00:05:58,560 ‫for our first reverse engineering experience, 118 00:05:58,560 --> 00:06:01,410 ‫and create our first app. 119 00:06:01,410 --> 00:06:02,640 ‫So let's stop here, 120 00:06:02,640 --> 00:06:04,383 ‫and continue within the next one.