peal Posted November 12, 2008 Posted November 12, 2008 (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 November 12, 2008 by peal
usmiv4o Posted November 12, 2008 Posted November 12, 2008 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
AzKay Posted November 12, 2008 Posted November 12, 2008 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- #
peal Posted November 12, 2008 Author Posted November 12, 2008 can you open page?we could help if you give URL (web page link)if you can open page use you browser to view sourcei hope you know that you will not view its .php (for example) codeuntil you are admin of site or mediumYes, 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...
AzKay Posted November 12, 2008 Posted November 12, 2008 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- #
peal Posted November 12, 2008 Author Posted November 12, 2008 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?
SoulA Posted November 12, 2008 Posted November 12, 2008 (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 November 12, 2008 by SoulA
LoWang Posted November 13, 2008 Posted November 13, 2008 Hello, I am also interested in this. For this type of authentication it still returns <!END_PAGE>
AzKay Posted November 13, 2008 Posted November 13, 2008 Well, First off. Whats the site? # MY LOVE FOR YOU... IS LIKE A TRUCK- #
LoWang Posted November 25, 2008 Posted November 25, 2008 So, any news? I thought there are at least several people here on this forum who like to solve impossible things
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now