2 hours 25 minutes
and last few videos, I showed you how to set up no pat plus plus and how to use the USB rubber ducky
in the next few videos. I'll be showing you ducky script. I'll be showing you how it works and all the different commands you could use. A Ducky script.
Ducky script is a scripting language that does anything a keyboard can do.
It's a fairly straightforward language that really you can get the hang of very quickly. It just takes a little bit of practice.
Now is he may notice. All the commands are capitalized, and this is required in the scripting language. But what? I always will find it helpful to differentiate command from the rest of the line. So first, let's talk about the default delay R D fell. Underscore DeLay
Now in Ducky script Delays Air Very important because you can't have commands on top of the other, just running one right at the other because sometimes you'll need ah, pause and the script in order for things to happen, maybe for like, a window to pop up.
So these delays air very important. That script.
Now, in the beginning of the script, you can define what the default delayed to be throughout the script. And so, for instance, if you say ah, default delay of 500 that it doesn't milliseconds. So I'll actually be half a second
If you do, Ah, default delay 1000. That will be a full second.
And then throughout the script, if you just say delay without anything after it, it'll do that default delay You set up at the beginning of the script. So let's just take a look real quick and see how we type that out
so way have to do all capitalizations. So will do
default. You could do underscore
And if you said 1000 that will be a full second.
You can also do,
Uh oh, and one
And actually, I typed it out Wrong. As you could see, I wanted to show you here. If you type it out wrong and you have, ah, the language
pack enabled and you're no pad plus Plus, it will not show up correctly. So as you could see, since I typed it out wrong here,
it's, uh, it's not showing up as it should, So if we spell it correctly. Bam! There it is. And that's that's one reason I like using no pet plus plus. So you can also write this out as default DeLay 1000. That's the same thing as the one above it.
Okay, now we have the regular delay.
Um, Now, if, for instance, you don't have the default delay on you, put delay within your code, you will need to do find how many milliseconds after that. But if you have the default delay,
you can just put delay within the code.
If, however, you want to override the default delay, you could just put DeLay and then whatever milliseconds you want after that
now, a lot of times I see people that don't use the default delay because a lot of times the code really has different delays throughout it. So just putting ah, delay with the specific milliseconds I find myself is a lot is a lot easier.
so let's switch back over here, and this one is just simple again. Just
delay and then we'll say 500. And that will be for half a second. And as you could see some red so we interdict correctly.
So let's head back over.
Okay, now we have R E m.
And this This doesn't actually, uh, isn't actually processed by the script. Ah, what this does it allows for commenting, and that could be helpful. Say, if you write a script and you don't really have any information in it, you could put it within the script itself. So you know exactly what the script is.
Um, so let's take a look at that. So if we say r e m
and that'll that'll highlight a different color from the other commands. It's, like, sort of, ah, green. And once you say r e m, you could take whatever you want,
Does this, and the
when it processes, it just won't won't run it. So you don't have to worry about anything happening there.
Okay. Next we have the string command.
Now this command is used. When you need, you need to enter some sort of texts afterwards. This is probably one of the most used commands. That and with throughout the code.
And it's very simple. You'll just simply enter string and say you're in a command, prompt our command window. You know you need to enter some sort of command. And once you get there, you're gonna want to use this and say you want to open the power shows. Maybe you do something like this you need actually enter the word power. Shel don t x c
and so you will use the string command for that.
Next we have the GeoEye or Windows Key.
Now this is the key on your keyboard that has the Windows emblem,
another's number. Reasons You want to hit this key cause there's a number of short cuts you want to use.
I find myself using this to open a lot of things like command windows or power shell. So it's very useful, uh, button to use. And, uh,
it's very simple again. It could be either gear. I turn blue or windows, and that is the same command.
Next we have the APP or menu command. This command imitates the context Menu key. If you're not familiar with that key, it looks like this.
If you don't know what it does, let's go over no pad plus plus Take a look
farmer to push that key. It's gonna bring up this menu
and you can get this menu up in other ways by right clicking,
but we don't have the option to right click. So if you need to bring up a menu like this, you will need to use that key or that command.
Now, these these ah menus differ depending on what programmer using. But they could be a very useful when using ducky script because they can cut down a lot of time if you need to do something that would be specifically in this menu.
Next we have the shift key. And as you know, the shift key can do a lot. It could be actually used in conjunction with other commands so you could save shift leader, shift home or shift page up or page down. There's a number of commands that can used in conjunction with this.
So, for example, if I say
shift will say shift tab and that could be used in a single command.
Okay, Now we have some very straightforward commands for Ducky script.
We have, ah, the delete command, which will imitate the leaky, and that's very useful because ah, you know, Windows machines need to use control. Delete went unlocking the computer
then we have the home key, which are, Excuse me, the Home Command, which will imitate the home key. And that's also important because it saves your type, not some texts, and you hit that key. It'll take you beginning the text or, if you're like on a Web page, will take it to the top of the page.
Then we have the answer. Command will to do the M Tates, the insert key on the page up command, which will,
uh, to the page up key page down. Commander says the page down
now, the arrow keys. You can either do, for example, a pair. We do a barrel or up work, works in the same both ways and imitates that barrel that we have down, arrow down, left our left and then right over right
Then we have the tab key type he I find is very important. If you say open a window
within a ducky script and you need to get to certain check box or something within that window, find Tab is very useful for that
Kali Linux Fundamentals
If you’re interested in penetration testing and ethical hacking, then this Kali Linux course is ...
1 CEU/CPE Hours Available
Certificate of Completion Offered
Attacks and Persistence for Incident Handlers
Hone your incident handling skills by joining Ken Underhill in this Attacks and Persistence for ...
1 CEU/CPE Hours Available
Certificate of Completion Offered