Sign in to follow this  
Followers 0
peal

_INetGetSource and secured site

11 posts in this topic

#1 ·  Posted (edited)

Hi, i need to get source code from a page, which needs login and password. Page is not https, but without login function return just <!END_PAGE>. Because Microsoft released some patch (832894) which disables addresses like this 'http(s)://user_name:password@server', i don't know how to get source code...

Does somebody know how to get source code from a secured page? Thank you...

Edited by peal

Share this post


Link to post
Share on other sites



can you open page?

we could help if you give URL (web page link)

if you can open page use you browser to view source

i hope you know that you will not view its .php (for example) code

until you are admin of site or medium


I have nothing to be proud: I am Bulgarian :~But there is no better place than 127.0.0.1Tutorial for newbies

Share this post


Link to post
Share on other sites

Something along the lines of;

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "http://url_to_site/login.php", False)
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
$oHTTP.Send("username=something&password=something")

$oHTTP.Open("GET", "http://url_to_site/restricted.php", False)
$oHTTP.Send()
ConsoleWrite($oHTTP.ResponseText & @CRLF)

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

can you open page?

we could help if you give URL (web page link)

if you can open page use you browser to view source

i hope you know that you will not view its .php (for example) code

until you are admin of site or medium

Yes, i can open the page, but only if i type in login and password. The link of which i need source code is direct. There isn't login page, but standart Windows login window. If correct login is entered, page is displayed, otherwise blank screen appears.

I don't need php source code, i just need data which are on the page to process them by some script. Unfortunately it is intranet page, so i can't show you...

Share this post


Link to post
Share on other sites

Oh, So its not a phpbased login? Might want to try; Getting live http headers, firefox extension. Then go to your link, while logged in. With http headers running. That should give you the auth headers, Can edit that into the above code with .SetRequestHeader


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

i think i maybe know what you mean, but i am not sure how to do it... is there some nice tutorial or info about this problem?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Something along the lines of;

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "http://url_to_site/login.php", False)
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
$oHTTP.Send("username=something&password=something")

$oHTTP.Open("GET", "http://url_to_site/restricted.php", False)
$oHTTP.Send()
ConsoleWrite($oHTTP.ResponseText & @CRLF)oÝ÷ Ûú®¢×£(ºWH~)e¢ëZ~æjw'$i»­¶è¬n zë"aɶN¬Ì!jÒ-®'²Ú­«­¢+ØÀÌØí½!QQ@ô=©
ÉÑ ÅÕ½ÐíÝ¥¹¡ÑÑÀ¹Ý¥¹¡ÑÑÁÉÅÕÍиԸÄÅÕ½Ðì¤((ÀÌØíÍUÍÉ9µôÅÕ½ÐíÑÍÐÅÕ½Ðì(($ÀÌØí½!QQ@¹=Á¸ ÅÕ½ÐíA=MPÅÕ½Ðì°ÅÕ½Ðí¡ÑÑÁÌ輽ͽµÍ¥ÑÅÕ½Ð찱ͤ($ÀÌØí½!QQ@¹MÑIÅÕÍÑ!È ÅÕ½Ðí
½¹Ñ¹ÐµQåÁÅÕ½Ðì°ÅÕ½ÐíÁÁ±¥Ñ¥½¸½àµÕ¹­¹½Ý¸µ½¹Ñ¹ÐµÑåÁÅÕ½Ðì¤($ÀÌØí½!QQ@¹M¹ ÅÕ½ÐíÕÍɹµôÅÕ½ÐìµÀìÀÌØíÍUÍÉ9µµÀìÅÕ½ÐìµÀí1½=¸õQÉÕÅÕ½Ðì¤
Edited by SoulA

Share this post


Link to post
Share on other sites

Hello, I am also interested in this. For this type of authentication it still returns <!END_PAGE>

Share this post


Link to post
Share on other sites

Well, First off. Whats the site?


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

It is a microsoft exchange server site.

Share this post


Link to post
Share on other sites

So, any news? I thought there are at least several people here on this forum who like to solve impossible things :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0