| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Mon Jul 16, 2007 3:51 pm Post subject: Listeners in an unprotected page |
|
|
Hi all,
I'm looking for a way to show the listeners of a mount point in an xml page without the need to authenticate.
I've got this need as I'm building an application in c# to list online and offline clients comparing their IP with a MS Access database, and using a syntax like XmlReader reader = XmlReader.Create("http://admin:pwd@url:8000/admin/listclients?mount=/mount", settings); won't work.
opening the xml saved from my server on my local pc works fine, so i've got no problem about the format of the file, but now i can't access to my data as Microsoft doesn't admit the auth via url.
i've tryed copying the listclients.xsl file in the /web folder, but it didn't work; i've tryed modifying the listclients.xsl file by removing the auth section, but didn't work; I also tryed playing with the
| Code: |
<admin-user></admin-user>
<admin-password></admin-password> |
section, but no way...
is there any chance to get it working?
Thanks for any help
(sorry for my english) |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jul 18, 2007 11:51 am Post subject: |
|
|
if there is an httpd with PHP support on your server, create a PHP-File and copy this code into it
| Code: |
<?php
echo @file_get_contents('http://admin:' . $_GET['pw'] . '@example.com:8000/admin/listclients?mount=' . $_GET['mount']);
?> |
and acces it via http://httpd.example.com/myscript.php?mount=/mount&pw=hackme
disod |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jul 18, 2007 3:26 pm Post subject: |
|
|
i don't know if it has php support, but i'll try it (even if i almost don't know what php is... )
thank you  |
|
| Back to top |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|