Penetration Testing mailing list archives

http://www.governmentsecurity.org/


From: Sat Jagat Singh <flyingdervish () yahoo com>
Date: Fri, 4 Aug 2006 09:17:58 -0700 (PDT)

You don't need to insert a "netstat -a" into a table. 
Just issue "exec master..xp_cmdshell 'netstat
-a'--'';" in Query Analyzer and watch the output.

----------------------------
Have you been able to validate that the NC.exe proc is
listening? You
could insert a "netstat -a" into a table via the
xp_cmd or maybe the
results of "wmic PROCESS list" (you may have to run
wmic once to enable
the WMI CLI)

-Brad

Mike Klingler wrote:
Guys,
     I am working on a pen test and have had a lot
of success wothing
with sql injection to get to the database.  I
moved on to try to
obtain shell access.  I have been able to upload
netcat.exe via tftp.
However I haven't been able to get the system to
connect to my landing
point with netcat either outbound reverse or
inbound standard.  Even
when using UPD port 69 (The same port that the
tftp transaction
occurs)  I was able to get a connection from the
test system with the
same parameters. I can execute command line
paramteres via the
master..xp_cmdshell sql command and get feed back
from the execution
of the command via bulk inserts into create
tables, but I haven't been
able to get the remote shell.  The user account
appears to be limited
since I don't have access to the windows folders. 
Does anyone have
any advice for me that would allow me to obtain
remote shell?  I would
love to use this system as a launching pad for
others on the LAN.
Thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

------------------------------------------------------------------------------
This List Sponsored by: Cenzic

Concerned about Web Application Security? 
Why not go with the #1 solution - Cenzic, the only one to win the Analyst's 
Choice Award from eWeek. As attacks through web applications continue to rise, 
you need to proactively protect your applications from hackers. Cenzic has the 
most comprehensive solutions to meet your application security penetration 
testing and vulnerability management needs. You have an option to go with a 
managed service (Cenzic ClickToSecure) or an enterprise software 
(Cenzic Hailstorm). Download FREE whitepaper on how a managed service can 
help you: http://www.cenzic.com/news_events/wpappsec.php 
And, now for a limited time we can do a FREE audit for you to confirm your 
results from other product. Contact us at request () cenzic com for details.
------------------------------------------------------------------------------


Current thread: