We're going to start by looking at some tips on installation
to make sure we can get LaZagne running.
The GitHub repository has an installation guide for this,
which involves installing Python and the required dependencies.
That's here.
Next, we'll look at creating the Windows executable file.
You could install Python on a Windows machine that you're targeting,
but an executable file makes things much simpler.
You can get a copy of the executable from the GitHub repository here; however,
the releases aren't up to date, and the current one I see is over a year old,
which means it's missing a lot of the recent code changes.
The solution to this is to build it ourselves.
It is possible to take the Python code and create an executable file from it.
There is a guide for that on GitHub too,
but it didn't quite work for me, so I've got some additional guidance.
To start the installation,
we need to get the latest version of Python from python.org.
If you're using Windows, make sure you don't get it from the Microsoft Store,
as it's currently got some permissions problems.
Now, we need to clone the repository from GitHub.
Git can be used for any of the operating systems we might use for this,
and the syntax is typically very similar.
To clone, we use git clone and the URL of the repository.
Now we move into the directory and take a look.
Here we can see a file named requirements.txt which contains a list
of the dependencies required for LaZagne to work.
We're going to use pip to install those requirements,
which works by giving pip the file.
The use of pip and Python are a little outside the scope of this course,
but that should give you enough to get running.
Now, we want to go to the Windows directory in the repository.
A quick call to python and we can see it's working,
showing that we're using version 2.4.4 of LaZagne.
At this point, we could collect passwords from this Windows machine.
For Windows,
installing Python is additional work and complexity
compared to using an executable.
It is, however, less likely to be picked up by antivirus.
To create an executable, we need to start with a couple more pip installs.
The first is pyinstaller.
We've already got a text file called lazagne.spec.
I'll make my version of that available in the course files.
This differs from the GitHub repository, which includes some Windows DLLs here.
They cause compile failures for me.
I remove them.
Finally, still in the Windows directory, we create the executable.
Then if we go to the dist directory, we'll see our new executable file.
We can then run it to see that it works.
We'll save running it properly for the next demo.
We can now use this on Windows machines without having to install Python.
This file will get picked up by antivirus unless you have
disabled it or used evasion techniques.