can someone make me this code

08/15/2013 20:34 sander2828#1
i need code that gets source code of .[Only registered and activated users can see links. Click Here To Register...]
using chrome useragen=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
08/15/2013 20:58 alpines#2
This maybe?
Code:
TCPStartup()

$hServer = TCPConnect(TCPNameToIp("us1.darkorbit.bigpoint.com"), 80)
If $hServer = -1 Then Exit

TCPSend($hServer, "GET /index.es?action=externalHome&loginError=99 HTTP/1.1" & @CRLF & "Host: us1.darkorbit.bigpoint.com" & @CRLF & "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36" & @CRLF & @CRLF)

Local $sReceived

Do
	$sReceived &= TCPRecv($hServer, 1024)
Until StringInStr($sReceived, "</html>")

TCPCloseSocket($hServer)
TCPShutdown()

If StringInStr($sReceived, "<!DOCTYPE") Then $sHTML = StringTrimLeft($sReceived, StringInStr($sReceived, "<!DOCTYPE") - 1)
FileWrite(".\\Website.html", $sHTML)
By the way: the website [Only registered and activated users can see links. Click Here To Register...] referrs to /index.es?action=externalHome&loginError=99.
08/15/2013 22:19 sander2828#3
Quote:
Originally Posted by alpines View Post
This maybe?
Code:
TCPStartup()

$hServer = TCPConnect(TCPNameToIp("us1.darkorbit.bigpoint.com"), 80)
If $hServer = -1 Then Exit

TCPSend($hServer, "GET /index.es?action=externalHome&loginError=99 HTTP/1.1" & @CRLF & "Host: us1.darkorbit.bigpoint.com" & @CRLF & "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36" & @CRLF & @CRLF)

Local $sReceived

Do
	$sReceived &= TCPRecv($hServer, 1024)
Until StringInStr($sReceived, "</html>")

TCPCloseSocket($hServer)
TCPShutdown()

If StringInStr($sReceived, "<!DOCTYPE") Then $sHTML = StringTrimLeft($sReceived, StringInStr($sReceived, "<!DOCTYPE") - 1)
FileWrite(".\\Website.html", $sHTML)
By the way: the website [Only registered and activated users can see links. Click Here To Register...] referrs to /index.es?action=externalHome&loginError=99.
ty i know it needs &dosid at the end

hmm it does not write me the file

Code:
TCPStartup()

$hServer = TCPConnect(TCPNameToIp("http://us1.darkorbit.bigpoint.com"), 80)
If $hServer = -1 Then Exit

TCPSend($hServer, "GET /indexInternal.es?action=internalStart&dosid=[dosidhere] HTTP/1.1" & @CRLF & "Host: us1.darkorbit.bigpoint.com" & @CRLF & "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36" & @CRLF & @CRLF)

Local $sReceived

Do
	$sReceived &= TCPRecv($hServer, 1024)
Until StringInStr($sReceived, "</html>")

TCPCloseSocket($hServer)
TCPShutdown()

If StringInStr($sReceived, "<!DOCTYPE") Then $sHTML = StringTrimLeft($sReceived, StringInStr($sReceived, "<!DOCTYPE") - 1)
FileWrite(@ScriptDir&"\Website.txt", $sHTML)
08/15/2013 22:44 alpines#4
Don't you dare touch my source-code! :D
Of course it won't run, I already told you why it won't.

Quote:
Originally Posted by alpines
By the way: the website [Only registered and activated users can see links. Click Here To Register...] referrs to /index.es?action=externalHome&loginError=99.
Did you try to login on the website (in your browser) and tried to access the link?
It may not work in the script because you aren't signed in.

The problem why it doesn't write is because the server only says 302 Found,
which means that it won't send you a html-file.

It referrs you to the website.
Unfortunetaly it won't work on TCP.

If you try to access it via WinHttp (which referrs) then the server will redirect you to the Error page but that's not what you want.
08/15/2013 23:09 sander2828#5
Quote:
Originally Posted by alpines View Post
Don't you dare touch my source-code! :D
Of course it won't run, I already told you why it won't.



Did you try to login on the website (in your browser) and tried to access the link?
It may not work in the script because you aren't signed in.

The problem why it doesn't write is because the server only says 302 Found,
which means that it won't send you a html-file.

It referrs you to the website.
Unfortunetaly it won't work on TCP.

If you try to access it via WinHttp (which referrs) then the server will redirect you to the Error page but that's not what you want.
if u make winhttp got to page:http:://us1.darkorbit.bigpoint.com/indexInternal.es?action=internalStart&acceptDailyL oginBonus=1&dosid=[dosidhere] it should go there
dosid you can get after loging in and looking it from page source
EDIT; jsut tested the link with shellexecute eaven if i am logged in in chrome it opened firefox and got me to right page