Quote:
Originally Posted by
sub terra
I have the username.
Wouldn't it have been nice to mention that in your introductory post? Plus the tool / command you use to connect to the server.
Quote:
I am not sure if I follow.
Nor do I.
Quote:
If your saying the code I posted will work then I am doing something wrong.
I'm sorry, I never said that. I didn't comment at all on your code as it was posted after me posting. Looking at it now, the second will print sort of a word list, but with duplicates and punctuation characters. Not sure what you want to do with it.
Let's start over. Please rephrase your request not in prose but in a concise, detailed, data supported, IT related specification. Like (let me try to paraphrase what I understood from your post #1):
- Need to connect to a server using the (ssh / telnet / rlogin / ...) tool / protocol and a known username.
- The password is hidden in a text file.
- Create a deduplicated word list from that file and use this for repeated login attempts.
- The server has these ... password restrictions (to eliminate improbable candidates)
- The server will pause logins after ... failed login attempts.
- On successful login, retrieve an e-mail address form ... file.
- Logout
- Mail success message to retrieved address before date / time
Correct, adapt, and complete to suit your needs, and post again. The we can discuss.
Quote:
Let me ask you what you put in. What is that?
If you're asking about the proposal I made in post #2 for getting a word list from a text file: The input to
tr (
man tr !) is redirected (
< ,
man bash or other shell) from a file "textfile".
As any other info on how to continue was missing in your post #1, that is where I had to stop.