Jump to content

_INetGetSource and secured site


peal
 Share

Recommended Posts

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
Link to comment
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- #
Link to comment
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...

Link to comment
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- #
Link to comment
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)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
Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...