Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Facebook Login

Discussion on Facebook Login within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Sep 2012
Posts: 1,438
Received Thanks: 933
Facebook Login

Ich will nen Session ID Grabber machen für ein Spiel in Facebook, aber ich schaff nicht mal den Facebook login

Code:
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.8.1
 Author:         Requiable

 Script Function:
Grabbing UID and SID from Uridium Wars.

#ce ----------------------------------------------------------------------------

; Script Start



#include 
#include 
#include 
#include 
#include 
#include 
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("UID  SID Grabber for UW", 487, 196, 190, 121)
$Input1 = GUICtrlCreateInput("", 112, 24, 121, 21)
$Input2 = GUICtrlCreateInput("", 112, 80, 121, 21)
$Label1 = GUICtrlCreateLabel("E-Mail:", 16, 24, 62, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Password:", 16, 72, 91, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Group1 = GUICtrlCreateGroup("Info", 240, 0, 241, 105)
$Label3 = GUICtrlCreateLabel("Your SID and UID will be saved in a Textfile", 256, 24, 211, 17)
$Label4 = GUICtrlCreateLabel("where you saved the Grabber.", 256, 40, 147, 17)
$Label5 = GUICtrlCreateLabel("(c) by Requiable", 256, 80, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Get UID and SID", 24, 120, 435, 65)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$hsession = _WinHttpOpen("Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1")
$hConnect = _WinHttpConnect($hsession, "www.facebook.com")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_FbLogin()
EndSwitch
WEnd

Func _FBLogin()

    $email = StringReplace($Input1, '@', '%40')
    $sHTML = _WinHttpSimpleRequest($hConnect, "GET", "")

    $sPost = "lsd=AVrV5E1V&email=" & $Input1 & "&pass=" & $Input2 & "&persistent=1&default_persistent=1&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84"
    $sHTML = _WinHttpSimpleRequest($hConnect, "POST", "login.php?login_attempt=1", "https://www.facebook.com/", $sPost)


    _WinHttpCloseHandle($hConnect)

$hConnect = _WinhttpConnect($hSession, "www.facebook.com")
    $sHTml = _WinHttpSimpleRequest($hConnect, "GET", "home.php")

  ;  FileDelete("site.html") war für mich zum überprüfen 
  ;  FileWrite("site.html", $sHTML) das auch xD
EndFunc
Was muss ich ändern, dass es geht. Könnt ja selber mal testen und schauen was bei euch kommt.

MfG Requiable
Requiable is offline  
Old 11/01/2012, 02:43   #2
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
Code:
#cs ----------------------------------------------------------------------------
	
	AutoIt Version: 3.3.8.1
	Author:         Requiable
	
	Script Function:
	Grabbing UID and SID from Uridium Wars.
	
#ce ----------------------------------------------------------------------------

; Script Start



#include
#include
#include
#include
#include
#include
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("UID  SID Grabber for UW", 487, 196, 190, 121)
$Input1 = GUICtrlCreateInput("", 112, 24, 121, 21)
$Input2 = GUICtrlCreateInput("", 112, 80, 121, 21)
$Label1 = GUICtrlCreateLabel("E-Mail:", 16, 24, 62, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Password:", 16, 72, 91, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$Group1 = GUICtrlCreateGroup("Info", 240, 0, 241, 105)
$Label3 = GUICtrlCreateLabel("Your SID and UID will be saved in a Textfile", 256, 24, 211, 17)
$Label4 = GUICtrlCreateLabel("where you saved the Grabber.", 256, 40, 147, 17)
$Label5 = GUICtrlCreateLabel("(c) by Requiable", 256, 80, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Get UID and SID", 24, 120, 435, 65)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			_FbLogin()
	EndSwitch
WEnd

Func _FBLogin()
	$hsession = _WinHttpOpen("Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1")
	$hConnect = _WinHttpConnect($hsession, "www.facebook.com")
	$email = StringReplace(GUICtrlRead($Input1), '@', '%40')
	$sHTML = _WinHttpSimpleRequest($hConnect, "GET", "")
	$sPost = "lsd=AVrV5E1V&email=" & GUICtrlRead($Input1) & "&pass=" & GUICtrlRead($Input2) & "&persistent=1&default_persistent=1&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84"
	$sHTML = _WinHttpSimpleRequest($hConnect, "POST", "login.php?login_attempt=1", "https://www.facebook.com/", $sPost)
	$sHTML = _WinHttpSimpleRequest($hConnect, "GET", "home.php")

	;  FileDelete("site.html") war für mich zum überprüfen
	;  FileWrite("site.html", $sHTML) das auch xD
	_Winhttpclosehandle($hConnect)
	_Winhttpclosehandle($hsession)
EndFunc   ;==>_FBLogin
MfG
Achat is offline  
Thanks
1 User
Old 11/01/2012, 11:51   #3
 
elite*gold: 10
Join Date: Sep 2012
Posts: 1,438
Received Thanks: 933
Genau den gleichen Fehler hab ich 5 Minuten zuvor bei nem anderen Login gemacht

Wieso hab ich das gleich wieder vergessen?

Aber Danke

Lawliet pls closen
Requiable is offline  
Old 11/02/2012, 16:44   #4


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
#closed (on request)
Lawliet is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[S] Hilfe bei Facebook App Login [B] e*gold
10/30/2012 - Coders Trading - 0 Replies
Hey :) Also wie der Titel schon sagt suche ich Hilfe beim Facebook app login :) Der normale Login in Facebook ging perfekt ;) Danach wollte ich mich in die app einloggen und da stoße ich an meine Grenzen :) In Skype könnt ihr mich über mein Profil adden. Mfg Dr.Toni
[VB 2010] Facebook Login Bot
11/15/2011 - .NET Languages - 4 Replies
Hallo liebe Elitepvpers Community, habe mich in letzter Zeit ein bischen mit Facebook und VB-Konsolenanwendungen befasst. Vorher arbeite ich immer mit dem webbrowser Tool, welches viele Vorgänge ziehmlich vereinfachte. Kurz und knapp : Würde gerne eine Konsolenanwendung entwickeln, welche folgende Funktionen bietet: Facebook Login - http://pastebin.com/PaH2mQfE Habe ich soweit eigentlich gemeistert. Die HttpResopnse wird in dem obigen Login als html Dateil geschrieben.
New restore pg NS by fake login facebook
07/19/2011 - Facebook - 2 Replies
:mofo: 1)Press link 2)wait 5 second 3)log in ninja saga pg banned 4)your account is sblocled ;) 5) Press tnx! Ninja Saga on Facebook | Facebook



All times are GMT +1. The time now is 07:36.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.