Aug-16-2019, 11:02 PM
(Aug-16-2019, 09:19 PM)jefsummers Wrote: Besides being the wrong type, intruder_log is empty. You won't find anything.
yes it seems I got ahead of myself. I have removed the directory.
I am supposed to creat a slice
I have got this much done of step 3
text_file = open("auth.log.1") with open("auth.log.1") as text_file: for line in text_file: if "Failed password" in line: start = line.find("user") end = line.find(" from") name = line[start:end] print("{}".format(name))my output is the column of user names but it has user infront of it and I can not figure out why
my output
user root
user root
user root
user root
user root
user root
user root
user root
user root
user root
user root
user root
user root
user root
user root