|
|||||||
| Pentesting Specific topics related to legal penetration testing |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
Probably best to set the sudo timestamp timeout to 0 on systems where you think your sudo-authorised user accounts may be compromised. You would also have to wonder if even a sudo install configured like that would be subject to a race condition...
__________________
Nancy Astor: If I were your wife I would put poison in your coffee! Winston Churchill: Madam, if I were your husband I would drink it. |
|
||||
|
Quote:
Lupin has it right - same user, but different hosts/sessions/etc. My first thought for this after I identified it was actually a way to keep my Nematodes bouncing up to root as soon as possible without giving them the passwords - from there the implication for pentesting or other purposes was obvious. The obvious thought is, if you have this sort of access, just write your own sudo and re-write the path variables, but I was looking for something a little less intrusive.
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
|
||||
|
Actually I tried this just then in Ubuntu jaunty and sudo commands issued in two different consoles for the same user account each prompted for a password when run within 30 seconds of each other. Subsequent sudo commands in each console ran without prompting. I was quite sure I had experienced the same symptoms you described though. Maybe its a version/configuration thing... (version is 1.6.9p17, configuration is the Ubuntu default)
__________________
Nancy Astor: If I were your wife I would put poison in your coffee! Winston Churchill: Madam, if I were your husband I would drink it. |
|
||||
|
This follows my experience as well. I notice it most when I'm working in a terminal window and launch screen. Even if I've just finished doing some sudo actions at the terminal when I launch screen and try to sudo something I'm prompted again for my password.
__________________
I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change. I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it. |
|
||||
|
Quote:
Just to clarify a little further: It's possible for the "root password" to be different to the "sudo password for a particular user". If you want to get a root shell, then the following command will ask you for the "root password": Code:
su Code:
sudo sh
__________________
Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests". Last edited by Virchanza; 11-02-2009 at 03:49 PM. |
|
||||
|
Quote:
su prompts for the password of the user who you are trying to become in the login session. If you are trying to become root (which is the default for su), you get prompted for the root password. If you are trying to become user lupin, you get prompted for lupins password.
__________________
Nancy Astor: If I were your wife I would put poison in your coffee! Winston Churchill: Madam, if I were your husband I would drink it. |
|
||||
|
Quote:
|
|
||||
|
Quote:
Either way it's a "feature" that I have used to good effect now at least 5 or 6 times, and not just on Linux systems, also on BSD's and OS X. At least it's been configured out or patched or whatever on Ubuntu.
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans. |
![]() |
| Bookmarks |
| Tags |
| root, sudo |
| Thread Tools | |
| Display Modes | |
|
|