|
You last visited: Today at 00:03
Advertisement
Login source
Discussion on Login source within the DarkOrbit forum part of the Browsergames category.
09/26/2013, 21:40
|
#1
|
elite*gold: 0
Join Date: Aug 2013
Posts: 250
Received Thanks: 37
|
Login source
Anyone have login source of darkorbit for autoIT?
|
|
|
09/26/2013, 21:50
|
#2
|
elite*gold: 3570
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
|
Code:
#include <Winhttp.au3>
$sUName = "xdhd"
$sPassw = "test123"
$hw_open = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0")
$hw_connect = _WinHttpConnect($hw_open, "www.darkorbit.com")
$sHTml = _WinHttpSimpleRequest($hw_connect, "GET", "")
$aURL = StringRegExp($sHTml,"<form name=""bgcdw_login_form"" method=""post"" class=""bgcdw_login_form"" action=""(\S+)""", 3)
;_ArrayDisplay($aURL)
MsgBox(0,"", $aURL[0])
$sURL = StringReplace(StringRight($aURL[0], StringLen($aURL[0]) -26), "&","&")
MsgBox(0,"",$sURL)
$hw_connect = _WinHttpConnect($hw_open, "auth3.bpsecure.com", $INTERNET_DEFAULT_HTTPS_PORT)
$h_openRequest = _WinHttpOpenRequest($hw_connect, "POST", $sURL, Default, "http://www.darkorbit.com", Default, $WINHTTP_FLAG_SECURE)
$post = "username=xdhd&password=test123"
_WinHttpSetOption($h_openRequest, $WINHTTP_OPTION_SECURITY_FLAGS, BitOR($WINHTTP_FLAG_SECURE, $WINHTTP_FLAG_ESCAPE_DISABLE))
_WinHttpSendRequest($h_openRequest, "Content-Type: application/x-www-form-urlencoded", $post)
_WinHttpReceiveResponse($h_openRequest)
If _WinHttpQueryDataAvailable($h_openRequest) Then
$header = _WinHttpQueryHeaders($h_openRequest)
$body = _WinHttpReadData($h_openRequest)
FileDelete("index.html")
FileWrite("index.html", $header&$body)
MsgBox(0,"",$header)
EndIf
$aURL = StringRegExp($header, "Location: http://www.darkorbit.com(\S+)", 3)
$sUrl = $aURL[0]
ConsoleWrite("index.html")
_WinHttpCloseHandle($h_openRequest)
_WinHttpCloseHandle($hw_connect)
$hw_connect = _WinHttpConnect($hw_open, "www.darkorbit.com")
$h_openRequest = _WinHttpOpenRequest($hw_connect, "GET", $sUrl, Default, "http://www.darkorbit.com")
_WinHttpSendRequest($h_openRequest)
_WinHttpReceiveResponse($h_openRequest)
If _WinHttpQueryDataAvailable($h_openRequest) Then
$header = _WinHttpQueryHeaders($h_openRequest)
$body = _WinHttpReadData($h_openRequest)
FileDelete("index2.html")
FileWrite("index2.html", $header&$body)
MsgBox(0,"",$header)
EndIf
ConsoleWrite("index.html")
_WinHttpCloseHandle($h_openRequest)
_WinHttpCloseHandle($hw_connect)
$hw_connect = _WinhttpConnect( $hw_open, "de2.darkorbit.bigpoint.com")
$sHTml = _WinHttpSimpleRequest($hw_connect, "GET", "/indexInternal.es?action=internalStart")
FileDelete("index3.html")
FileWrite("index3.html", $sHTml)
ShellExecute("index3.html")
_WinHttpCloseHandle($hw_open)
Func _InetReadWinHttp($sType, $sServerName, $sPath = Default, $sReferrer = Default, $sData = Default, $sHeader = Default, $fGetHeaders = Default, $iMode = Default)
Local $sUserAgent = 'Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0'
Local $hSession = _WinHttpOpen($sUserAgent)
Local $hConnect = _WinHttpConnect($hSession, $sServerName)
Local $vReturn = _WinHttpSimpleRequest($hConnect, $sType, $sPath, $sReferrer, $sData, $sHeader, $fGetHeaders, $iMode)
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
Return $vReturn
EndFunc ;==>_InetReadWinHttp
Not finished. But if you want the source, you should be able to code in autoit.
|
|
|
09/27/2013, 07:06
|
#3
|
elite*gold: 0
Join Date: Aug 2013
Posts: 250
Received Thanks: 37
|
Quote:
Originally Posted by Requi
Code:
#include <Winhttp.au3>
$sUName = "xdhd"
$sPassw = "test123"
$hw_open = _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0")
$hw_connect = _WinHttpConnect($hw_open, "www.darkorbit.com")
$sHTml = _WinHttpSimpleRequest($hw_connect, "GET", "")
$aURL = StringRegExp($sHTml,"<form name=""bgcdw_login_form"" method=""post"" class=""bgcdw_login_form"" action=""(\S+)""", 3)
;_ArrayDisplay($aURL)
MsgBox(0,"", $aURL[0])
$sURL = StringReplace(StringRight($aURL[0], StringLen($aURL[0]) -26), "&","&")
MsgBox(0,"",$sURL)
$hw_connect = _WinHttpConnect($hw_open, "auth3.bpsecure.com", $INTERNET_DEFAULT_HTTPS_PORT)
$h_openRequest = _WinHttpOpenRequest($hw_connect, "POST", $sURL, Default, "http://www.darkorbit.com", Default, $WINHTTP_FLAG_SECURE)
$post = "username=xdhd&password=test123"
_WinHttpSetOption($h_openRequest, $WINHTTP_OPTION_SECURITY_FLAGS, BitOR($WINHTTP_FLAG_SECURE, $WINHTTP_FLAG_ESCAPE_DISABLE))
_WinHttpSendRequest($h_openRequest, "Content-Type: application/x-www-form-urlencoded", $post)
_WinHttpReceiveResponse($h_openRequest)
If _WinHttpQueryDataAvailable($h_openRequest) Then
$header = _WinHttpQueryHeaders($h_openRequest)
$body = _WinHttpReadData($h_openRequest)
FileDelete("index.html")
FileWrite("index.html", $header&$body)
MsgBox(0,"",$header)
EndIf
$aURL = StringRegExp($header, "Location: http://www.darkorbit.com(\S+)", 3)
$sUrl = $aURL[0]
ConsoleWrite("index.html")
_WinHttpCloseHandle($h_openRequest)
_WinHttpCloseHandle($hw_connect)
$hw_connect = _WinHttpConnect($hw_open, "www.darkorbit.com")
$h_openRequest = _WinHttpOpenRequest($hw_connect, "GET", $sUrl, Default, "http://www.darkorbit.com")
_WinHttpSendRequest($h_openRequest)
_WinHttpReceiveResponse($h_openRequest)
If _WinHttpQueryDataAvailable($h_openRequest) Then
$header = _WinHttpQueryHeaders($h_openRequest)
$body = _WinHttpReadData($h_openRequest)
FileDelete("index2.html")
FileWrite("index2.html", $header&$body)
MsgBox(0,"",$header)
EndIf
ConsoleWrite("index.html")
_WinHttpCloseHandle($h_openRequest)
_WinHttpCloseHandle($hw_connect)
$hw_connect = _WinhttpConnect( $hw_open, "de2.darkorbit.bigpoint.com")
$sHTml = _WinHttpSimpleRequest($hw_connect, "GET", "/indexInternal.es?action=internalStart")
FileDelete("index3.html")
FileWrite("index3.html", $sHTml)
ShellExecute("index3.html")
_WinHttpCloseHandle($hw_open)
Func _InetReadWinHttp($sType, $sServerName, $sPath = Default, $sReferrer = Default, $sData = Default, $sHeader = Default, $fGetHeaders = Default, $iMode = Default)
Local $sUserAgent = 'Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0'
Local $hSession = _WinHttpOpen($sUserAgent)
Local $hConnect = _WinHttpConnect($hSession, $sServerName)
Local $vReturn = _WinHttpSimpleRequest($hConnect, $sType, $sPath, $sReferrer, $sData, $sHeader, $fGetHeaders, $iMode)
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hSession)
Return $vReturn
EndFunc ;==>_InetReadWinHttp
Not finished. But if you want the source, you should be able to code in autoit.
|
Thank you Requi but dont work , when i copy this source in au3 have more errors dont work, im noob on autoit
|
|
|
09/27/2013, 18:36
|
#4
|
elite*gold: 190
Join Date: Nov 2009
Posts: 3,839
Received Thanks: 1,196
|
#closed
|
|
|
 |
Similar Threads
|
[Source]Auto Login
08/27/2021 - Kal Hacks, Bots, Cheats & Exploits - 40 Replies
Hmmm...boring yeah i leaved kal normal but im bored... here u have a source for Auto_Login its ugly coded cuz i dont have want to make anything new used source from here.....
u need to add @system.ini
ID=
PW=
2PW=
AUTO_LOGIN_KalOnline.rar ... at uploaded.to - Free File Hosting, Free Image Hosting, Free Music Hosting, Free Video Hosting, ...
|
login source
02/15/2012 - Rappelz Private Server - 0 Replies
so few days ago i found source to the login server dont know if its been released here but the source needs work b4 u can compile it so gonna post it here 4 any1 that wants to look at it altho kinda useless as arcadia dev crew and friends r making an emu
Get auth_bin_and_source.rar on Wupload.com
virus total scan
Antivirus Result Update
AhnLab-V3 - 20120215
AntiVir - 20120215
|
[VB] PHP Simple Login Source
06/20/2011 - Coding Releases - 2 Replies
Was ihr dazu braucht :
Visual Basic
WebServer (FTP zum hochladen)
http://anime-stream.eu/log1n.JPG
VB Source Download (mit PHP Files) :
MEGAUPLOAD - The leading online storage and file delivery service
|
someone help me to fix login bug in eruoconquer source
05/10/2011 - CO2 Private Server - 0 Replies
hi guys
i have eruoconquer source.
but there is problem at login.
when i try to login with any account
client say's Disconnect with Gameserver
|
need help with login in CoEmu v2 source :D
06/27/2009 - CO2 Private Server - 14 Replies
hey all i used the CoEmu v2 source (thx andy :D) and every thing is great except iam the only one that can login :( when any one else tries to login he either gets a login freeze and i think i fixed that but now he gets failed to connect to the server and that is what i get in the login server and the game server http://img188.imageshack.us/img188/3281/erorw.png so can any one help me fix it plz :D (note: if u have nothing nice to say dont say any thing pls)
|
All times are GMT +1. The time now is 00:03.
|
|