background it's code for a backdoor for an empire stager and sends a connection here to my kali machine so right now i can interact with this agent and i have remote control over that computer and i can do anything i want on this windows computer this one right here so i can access its webcam it's file system download and upload and do anything that the normal user can do and as you can see we did this using a normal file that looks like a normal image and like i said earlier you can do this with any file type like a pdf or word document or anything else now the idea of hacking computers using trojans is not new it existed for very long and there are so many ways to do it i covered it in my ethical hacking course i covered more ways in my social engineering course and i even covered how to manually code everything in my python and hacking course so check them out if you want to learn more about this and learn it in details but i'm going to teach you a quick way of doing that using powershell in this video so all you'll need to do this is one powershell command or function that allows us to download a file from a specified url and save it on desk as the name that you specify in here now we're going to run this command twice one time to download the actual image that we want the user to see like the matrix image in here or the pdf or anything you want and the second time we're gonna be downloading the evil file which could be a back door or a key logger or anything else you want to run in the background very very easy let's do it step by step just to make sure that everything is going to work the way we want it so let's test this functionality first of all so i'm going to go to my browser and find an image or a pdf that i want to display to the user and you want to make sure that the link that you use is a direct url so you can access that resource directly it won't view the resource inside the html page so right here i have a direct link to that matrix image so i'm simply going to copy it and i'm going to go back to my notepad and we're just gonna paste it in here as the url and finally we're gonna store this the out file as and let's call it URL_TOKEN so we're downloading a file from this url and we're storing it on disk with the following file name so if we just copy this and open up a powershell prompt so we're just going to type powershell and right now we are in this specific path so i'm actually just going to navigate to the desktop so i'm going to do cd desktop to navigate to the desktop you can see we are on the desktop now and i'm just going to paste the command that i copied so i'm just going to right click in here and i'm going to hit enter to execute it as you can see it's downloading the file we can already see it in here and here we go now we have the image downloaded on our desktop so now we know that this function actually works as expected and we can use it to download a file from the specified url and stay and save it in the current working directory so that's very very good so i'm gonna
START_SELFPROMO_TOKEN covered it in my ethical hacking course i covered more ways in my social engineering course and i even covered how to manually code everything in my python and hacking course so check them out if you want to learn more about this and learn it in details but END_SELFPROMO_TOKEN