Linux (part 6) Copy Commands and crontab

Video Activity

This unit talks about using copy commands to transfer files between systems. Programmers can automate tasks via the crontab command to create daily, hourly and weekly tasks.

Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
14 hours 26 minutes
Difficulty
Advanced
CEU/CPE
15
Video Description

This unit talks about using copy commands to transfer files between systems. Programmers can automate tasks via the crontab command to create daily, hourly and weekly tasks.

Video Transcription
00:04
we kill it. We cat out
00:07
my file three,
00:10
This is a secret. Took the text from my file for and put it in my file three. So again in this case, and put on the same system all we've really done is done the copy command over the network
00:22
on a local system, but moving at between different systems, you see how this might be useful. It is one way of transferring files. We will see additional ones, but it's certainly worth knowing. So let's see how about one more thing and then we'll call it a day on Lennox and move on. So let's see.
00:42
How about
00:44
Kron Tab So automating tasks. Everybody likes to automate tasks, right? Particularly if Europe investor and you want access to stick around forever. What if I wanted to check periodically whether
00:58
there were any commands that needed to be run? Well, Lennox has a way of doing that. Windows does. Well, then Lennox uses something called Kron jobs. So if we go into the etc directory with CD,
01:11
we do it l s and pipe that into grab and ask for Krahn.
01:17
Well, show us Kron. So we look at Toronto
01:22
basically our list of jobs. You can add something here
01:26
that has default. Ones like you saw him here like
01:30
daily hourly, monthly weekly,
01:34
the things that are run on a regular basis.
01:38
But we can add something as well. We can either add something to one of these. If I did KRON up daily,
01:44
I could add something to be run here daily
01:49
or if I needed
01:51
be a bit more specific. I could add something here.
01:53
So it is minute, hour,
01:57
day of the months, months
02:00
on day of the week.
02:04
So
02:05
here's one that's hourly. So it says on the 17th minute of every hour of every day of the month of every month of every day of the week. That makes sense, right? Hourly. Every 17 minutes,
02:16
every hour it's going to run was ever in the hourly.
02:22
Likewise, here, the next one down, we have
02:27
daily,
02:31
So let's see runs
02:35
on the 25th minute of the sixth hour of every day. So, indeed, that's daily. What if I wanted to add my own here rather than added into one of the crawling Tubbs?
02:47
What if I wanted to make it run every minute?
02:50
Maybe That would be a little bit excessive.
02:53
But what if I did?
02:54
Then the user. I was a root and I want to run the command. That cat
03:00
L V p 1234 Every minute is gonna run that gut
03:07
good. Save that and should have do service pronto.
03:14
Nervous crawling, restart. We start the scheduler. Then if we d'oh might have the wait a minute.
03:21
The Apaches listening.
03:23
Give it a second match. Ron
03:28
Minute. Never seemed so.
03:30
So it didn't work.
04:00
I know you're there. It is.
04:04
I really was a long minute, OK? We must have been, like in the middle of minutes or something. There it is. So it's listening on 1234
04:14
So I really simple example there. In fact, let's get rid of it. Um,
04:18
just keep stepping on itself.
04:20
But that might be something we want to do for persistence. Maybe,
04:29
but we can add things again. You can Adam into, like, the crawl, not dailies are lease month. These weeklies as well, of course, who wouldn't see it happened quite quickly and not really appropriate for a video to have to wait for an hour?
04:42
No. And if we need more
04:45
ability to change the times. We can do
04:47
straight in schedule like that, like we just did against a kind of brief introduction to lay next. Um, certainly encouraged you to come more from your athletics and
04:59
then, hopefully will be a Grand Lennox expert. Probably more so than me, even. But in general, it's just certainly worth knowing for pen testing because they got a lot of Europe in testing tools. Are one gonna be built into Callie Lennox? And many of them may not even have a window there Mac version for you to use. So if you aren't familiar with this platform, you
05:18
I won't be able to get the most of your pin testing arsenal.
Up Next