Python keylogger bypasses Windows 11 Defender // Convert WIFI py to EXE

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
now before we get started i need to warn you that what i'm going to show you how to compile in this video is code such as this python keylogger and the script that extracts a wi-fi password stored on a windows device very important warning do not just download software from the internet and run it because it could be code such as this i'm hoping that this video is a warning that you can use for yourself but also for your parents and grandparents perhaps to show them that they should never just download files from the internet especially executable files or code that's not signed by a trusted developer you don't just want to download code from the internet because you don't know what that code is going to do in this video i'm showing you a very simple python keylogger windows will block this code on a computer if you try and run it directly as a python script so the antivirus on windows windows 10 windows 11 as an example will block this code but once i've compiled it windows doesn't recognize the problem and it allows me to run this code without any problems that's in my tests hopefully microsoft will update the antivirus to block software such as this but for the moment in my tests i was able to run this compiled code on a windows 11 computer that was fully up to date and had antivirus enabled another warning this video is for educational purposes only don't use this code for malicious purposes don't go out there and break the law and get into trouble this is to show you the risks of code that's been compiled because malicious code could easily be compiled as an executable again my simple python scripts are going to be compiled to run on a windows 11 computer and they run without a problem in my tests now if you enjoy these types of ethical hacking videos please consider subscribing to my youtube channel please like this video and click on the bell to get notifications that really does help me with the youtube robots and also means that you don't miss any of the content that i upload this windows laptop does not have python installed i'm remotely controlling this windows 11 computer from my mac but what i'm demonstrating now is happening on the windows 11 a laptop so if i open up a command prompt and type python what you'll notice is we've taken to the windows store and we asked to get python python is not installed on this windows computer what i also want you to see is that anti-virus is enabled on this computer so i haven't disabled a real-time protection i haven't disabled any of the anti-virus settings on this windows computer so that's fully enabled i've also got this computer fully updated so if i check for updates on the windows computer you'll see that it's fully up to date so updated at 3 36 according to this time and the version of windows that i'm running is windows 11 version 21 h2 so latest release at the time of this recording now with all of that being said notice what happens when i run my key logging application this is the compiled version of my python code in this directory python exe i only have two files but when i double click on that file a command prompt window displays this is a very basic key logger but i could print something out to the screen to tell the person for instance that windows is updating please continue with your normal tasks and leave this window open or do something for example to hide the window so that it doesn't appear but what i want you to see here is a key logs file has been created so if i go to a website let's say facebook.com or another website whatever i type in here test.test.com and let's set the password to password whatever i type there is stored in that key logging file so notice facebook and i made a typo so backspacebackspace.com i pressed enter made some more mistakes so backspace backspace here's my username test at test.com press tab made a few more mistakes and then i put in my password which is password in this example so whatever i type and let me open up notepad for this demonstration whatever i type here is stored in that key logging application so my secure password for example so scrolling down through that log you can see that i opened up notepad and then i put in my password and my very secure password is my secure password that is an example of why you should never just download software and run it on your computer again this windows computer is up to date antivirus is enabled i haven't disabled any antivirus options within windows the software still runs and i'm able to log all the keystrokes on this computer that's because the python script has been compiled and is running as compiled code on this computer what i'll do now is open up a cmd prompt and let's run the second application windows 11 wi-fi press enter and that shows me all the wi-fi passwords stored on this windows computer now both of these scripts are very simple this is a very basic python key logger the wi-fi extract application is actually quite short this looks long because it has a whole bunch of comments in to try and help you understand what's happening but basically all it's doing is extracting stored wi-fi passwords on this windows computer so there's a reason why when you try and download files from the internet that windows tries and stops you doing that there's a very good reason why you shouldn't just download stuff off the internet in this case i manually copied the file to the windows computer using a flash drive or thumb drive such as this and i was able to run it without any problems browsers such as chrome or edge will try and stop you downloading files such as these from the internet now in this example i'm using nitka to do the compiling of the python code forgive my bad pronunciation but what i've done to try and make this easier for you is i've created a pdf document which i've linked below which shows you all the steps to install the software so firstly we have to go to nutca net as an example we need to download the software but to show you the full process of this i'm running windows 11 within a virtual machine on my mac here it's a brand new installation of windows 11 the only thing i've installed is brave because i don't want to use edges my browser i haven't installed anything else on this windows computer again this is running as a virtual machine on my mac brand new installation now before you install nitka you need a specific version of python nutca only supports python up to 3.9 at the time of this recording so on the downloads page on the neutco website we can download an msi file for python 3.9 so i'll download that software but before i can actually run that software i need python installed this is a brand new version of windows so python is not installed so if i go to the python.org website and go to downloads i can select the version of python that i want in my example i'm going to download 3.9.9 so i'll scroll down to the end of this page and i'll get the installer for windows 64-bit in this example once again i'm using windows 11 within a virtual machine i downloaded the iso from microsoft's website and set up the virtual machine so i'll install python now if you've got python installed already go to this timestamp to look at the nutca installation directly rather than python but i'll install python here and it's very simple installation and then i'll install the netcat software okay so i'll disable path length limit in python and click close and now i can run the nutca installation software now notice we get this warning in windows as i was saying earlier you don't just want to install any software on your computer so if you install anything like this you install it at your own risk so windows has protected your pc we told because this is an unrecognized app i'm going to click more info and i'm going to run the installation anyway and then i'm going to install it for all users click next say yes to allow the software to be installed okay software is installed so i can click finish and there we go we've got the software installed now again in the link pdf i give you all of those instructions so i've shown you in the video now how to do this installation but if you prefer following the pdf you can download that once we've installed it we need to check the version so in powershell i'm going to type nutcare version and we can see the version is 399 and the next step now is to get code to compile you use all the code on my github at your own risk again do not use this for malicious purposes the code is for educational purposes only so don't use this for something malicious but as an example if i go to github.com forward slash david bomble and in this example i'll go to red python scripts and i'm going to download for instance this windows 10 wi-fi script i'll click raw and i'll click save as that's a python file so i'm going to click save to save it so in my downloads directory i have that python script i can open up powershell in this directory once again ls shows me my python script and what i can do now is type python-m nutca dash dash ming w64 name of script which is windows 10 wi-fi py we're going to make this a standalone and we're going to make it one file now again in the documentation i show you all those steps so standalone and one file makes it basically an executable file that's independent of the python installation so you don't need python to run the script this ming w64 allows you to download the c compiler and also download a c caching tool we're going to say yes to both of those options so when i press enter now the software will be compiled now it may take it a while you just need to wait for the prompts and say yes to both options so if i say yes that software is downloaded i'll just move this up a bit we've got to say yes once again and there you go if i type dor you can see the executable file has been created so there's the file 25 meg i'll open up a cmd prompt and type windows 10 wi-fi exe there are no wi-fi networks on this device because it's a virtual machine so what i'll do is copy the file from this computer to my windows 11 computer so i'll connect to the memory stick to my virtual machine i'll copy that and put it into this directory okay i'll eject the software so i can take it out of the mac and in this example i'll put it into my windows computer so back on my dell i'll go to my usb drive go to the relevant directory i'll copy that to my downloads directory open up a cmd prompt drr windows 10 wi-fi exe and there you go it's run the script so i've shown you now how to compile a python script on one windows computer and then move it to another one and test it so in this case i tested it on a physical windows computer now one thing to be aware of is that if you use this script the python key logger script you need to install additional software so make sure that you use pip install pine put before you compile your script so back on my virtual machine i need to type pip install pine put before i compile the key logging script so back on my github page under repositories i've got this python keylogger script i'll put the link below i'll copy that i'll save that as a python script notice the problem here windows security finds this as a threat so if you're going to compile this code and this is the problem with any type of hacking type code windows is going to try and block it but you saw that the compiled code wasn't blocked on the windows 11 laptop but under virus and threat protection you're going to need to disable real-time protection otherwise you won't be able to compile the script so drr under downloads my key logging software is there what i can do now is compile that key logging software i'll make this a bit bigger so python nubca logging software standalone one file and it compiles that software just make sure that you install any of the modules that are required to make the software run before you compile it okay so that was a really long video hopefully you enjoyed it hopefully i showed you number one the problem with downloading files from the internet you shouldn't just download any software from the internet because you don't know if it could be bad code or hacking code such as i demonstrated here you also should make sure that you enable your anti-virus if you have real-time protection on it blocks a lot of the malicious code in this case i was able to circumvent this hopefully microsoft will update the antivirus to block this type of thing when you try and download files from the internet your browser will also warn you about downloading software make sure that both you and your family for instance your parents or grandparents are aware about the issues of downloading software from the internet you don't just want to download anything because it could be malicious code could be hacking code but lastly notice that key logging software has been compiled and i could run that on my windows computer
Info
Channel: David Bombal
Views: 38,388
Rating: undefined out of 5
Keywords: python, windows, windows 11, windows defender, windows 10, best antivirus, windows 11 defender, windows 11 review, windows 11 features, windows defender vs antivirus, windows defender not working, windows defender security warning, windows defender vs virus, nuitka python, nuitka vs pyinstaller, nuitka tutorial, nuitka python to exe, nuitka example, python tutorial, python exe, python basics, python compiler, python compiler for windows 10, python command line
Id: qaZ-IbssPDI
Channel Id: undefined
Length: 17min 24sec (1044 seconds)
Published: Fri Dec 10 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.