Now, the Afine Saiful is limited to only a few thousand geese, which means we can easily perform a
brute force attack against it.
So in this session, we will learn how to write a program that can break a fine Saiful and encrypted
messages.
Also in this session, we will be covering the exponent operator.
That is the double asterisk or double multiplication and the continuous statement now coming to writing
a score for the Afie insightful Hackle program.
Now, first thing is, we would go to file new and write down the code in this editorial.
We would save it.
My particular name now say, for example, now in this we would be using it to decrypt it.
So instead of writing the encrypted text, we would run out to find cipher program.
The encrypted text would be copied from the command to their after executing the program and that would
be pasted over here.
So first thing we would do is let us open a file which is fighting for demo, a fine cipher, and we
would first run this module.
This is the encrypted text.
So now let us simply copy it down this.
And we can't lose this, a fine sight for now.
And over here we would need it.
So first thing is will have to import the paperclip, then we will have to import over a fine Saiful
demo.
And we also have the Czech English.
So if we just go to our intermediate level, this is a fine site.
Furthermore, this is checking list or so we'll use that also and also our crypto Matawan.
So all these imports are necessary, which also means that you are supposed to save this file with your
having all these files there into your particular folder.
Also with this, you should also have a file which we're using it in digital English.
So all these files should be in the same folder where you are saving the current file.
So after the importing of the statement is done, the next thing we will do is create a silent underscore
mode and we will give the value as follows.
We will define mean in this now, as we have suggested, we will create my.
Message steer is equal to and we are simply hoping down the ex that we have already posted it as we
have already copied it.
OK, now the next thing we will do is say hacked.
Meseta staff, and that is equal to we would be creating this function below Harkov Finistere and passing
this.
My message is now here we check if you're hacked.
Message all is not equal to none.
Then what are you supposed to do?
We are giving European Command Post C copy.
The hard message to clipboard, then we say print again, give your heart message, estie our letters
to be printed afterwards.
Then we give you your C paper clip.
Don't use the copy and for this hat message and stick to it.
Now, if this is not true, we go to the URL spot and just print your statement saying failed to hack
the encryption lock, which means it is not being hacked.
That is what we are defining in the mean.
The next thing we have to define here is the hack, a fine SDR that we are already calling it in which
we are passing.
The messages are variable and here we are forced printing C hacking after this like we had given for
a normal brute force in the earlier sessions we are giving here.
Operate the C C press Querelle.
And C or.
Kjartan and the two quit at any time, lose it then for the brute force looping through every possible
key.
So now here we are supposed to run off for saying the guy is still in the range of your New Zealand
function and quality.
A fine site for Demel Dot Symbolistic.
OK, that will be multiplied.
Now here we are using this double multiplication operator.
We would understand more about this later.
Then we have Siggie A1, which is equal to we take a fine Saiful them will not get the.
Now let us just open our fine site for demo and notepad and we are having your get keyboardists.
OK, so let us take down the same thing.
Get Keyport Aschiana and he will reportedly etr index zero.
Then we check if our Cryptome item on the where we pass A1 and the length of a fine Saiful Demel Dot
Symbolistic.
If that's not equal to one then we say continue.
Otherwise we are going for C decrypted fixed SDR.
That's equal to a fine site for Demo Dot.
We call this decrypt messages.
And here again we pass Gasteyer and messages dear.
OK then we check that.
If not.
Silent underscore more than we are giving up in command, saying tried, he wasn't as put into your
as and the value of key guama the decrypted text S.T. are only the first 40.
Now, after this, we see if.
Now, all this is coming in the same for Lupino.
OK, so here you are, checking if our check English got the function that we have in English, if we
open up with a notepad.
Now, that material that we have in is English.
So we will check here, your English dot is English check, so they give you is English check in Blackett.
We give the decrypted text SDR as the parameter and if it is in English, we check with the user that
if the decrypted text has been found.
So before sprint a blank line, then we print, see possible encryption hack and we give the next print
that the C key coolen print percent s and the value of.
Feistier, then you're also the scarcity of after giving this, we give another friend come on and we
say here.
Decrypted message, plus the print, the value of decrypted text SDL and he will also print.
Two hundred characters.
We give up and come on, give another parent, we give into don't default done or just.
Press enter to continue hiking after this, we check in the same thing that if you see it now after
popping this, we are supposed to take a response variable, which will be equal to we are taking the
input from the user.
OK, we're in we're taking this prompt.
Then we check if your response thought we use the strip.
Dot, dot say starts with if it is starting with me, then we are returning the value of decrypted text
stia.
Otherwise we are saying return not after this written statement.
Then we check if name underscore is equal to.
I mean, then you're calling the main function now we will have to save this program, so let us save
it by giving it a proper name.
Let us give your CI a..
Fine cipher hack.
Nemo not be.
And let's say we did the same Fulda.
And once we have completed saving those, let us run this module and check the output, the message,
you're getting it.
OK, so when we run this now, currently you're not getting any value.
Suppose you just press and there it will continue.
And now the key that was used was one five five seven.
So at that particular key, you were getting the values decrypted.
So now if we proceeded, it would stop.
So over here it'll ask you because our particular votes are found, it would stop there.
But if we want to continue, then you can just press and continue hacking it.