Jump to content

myspace auto login


darkninja
 Share

Recommended Posts

ok... i was very bored and i am super new to this but i just felt like including this little code i typed in bout 2 min!

run ("C:\Program Files\Internet Explorer\IEXPLORE.EXE") 
sleep (5000) 
MouseClick ("left", 357, 91, 1, 1) 
send ("myspace.com") 
send ("{Enter}") 
sleep (3000)
MouseClick ("left", 733, 368, 1, 1)
send ("EmailAdressforLogin") 
sleep (1000)
send ("{Tab}")
send ("Password") 
send ("{Enter}")

lmao if u like it or think its totally retarded feel free to tell me >.> i just thought it was easty to check for messages then log off quickly lol! P.S you might have to change where the mouse clicks depending on screen size!

I.E.

MouseClick ("left", 357, 91, 1, 1)
Link to comment
Share on other sites

  • Moderators

This is a little more fail safe.

#include <IE.au3>

$sEmail = "your@email.com"
$sPassword = "yourpassword"

$sURL = "http://www.myspace.com/"
$oIE = _IECreate($sURL)
$oForm = _IEFormGetObjByName($oIE, "theForm")
$oEmail = _IEFormElementGetObjByName($oForm, "email")
$oPassword = _IEFormElementGetObjByName($oForm, "password")
$oButton = _IEGetObjByName($oForm, "ctl00_Main_SplashDisplay_login_loginbutton")
_IEFormElementSetValue($oEmail, $sEmail)
_IEFormElementSetValue($oPassword, $sPassword)
_IEAction($oButton, "click")
Link to comment
Share on other sites

  • 8 months later...

This is a little more fail safe.

#include <IE.au3>

$sEmail = "your@email.com"
$sPassword = "yourpassword"

$sURL = "http://www.myspace.com/"
$oIE = _IECreate($sURL)
$oForm = _IEFormGetObjByName($oIE, "theForm")
$oEmail = _IEFormElementGetObjByName($oForm, "email")
$oPassword = _IEFormElementGetObjByName($oForm, "password")
$oButton = _IEGetObjByName($oForm, "ctl00_Main_SplashDisplay_login_loginbutton")
_IEFormElementSetValue($oEmail, $sEmail)
_IEFormElementSetValue($oPassword, $sPassword)
_IEAction($oButton, "click")
Big Daddy, when I try this, MySpace fires up, populates with my username and password, but the 'login' button does not get clicked. Have you any idea why this might be? Also, if I try to execute _IEFrameGetCollection against the myspace login page (www.myspace.com) I get the error "line 2952 (File "C:\Program Files\AutoIt3\Include\IE.au3") return $o_object.location.href() return $object.location.href()^ERROR Error: The requested object action with this object has failed.
Link to comment
Share on other sites

Big Daddy, when I try this, MySpace fires up, populates with my username and password, but the 'login' button does not get clicked. Have you any idea why this might be? Also, if I try to execute _IEFrameGetCollection against the myspace login page (www.myspace.com) I get the error "line 2952 (File "C:\Program Files\AutoIt3\Include\IE.au3") return $o_object.location.href() return $object.location.href()^ERROR Error: The requested object action with this object has failed.

Aha! It's ctl00_Main_SplashDisplay_ctl01_loginbutton not ctl00_Main_SplashDisplay_ctl01_login_loginbutton - I've just discovered the 'show source' command.

Many thanks for your help, this would be impossible without you guys!

Link to comment
Share on other sites

  • Moderators

can some do this for www.nexopia.com

#include <IE.au3>

$sURL = "www.nexopia.com"
$sUserName = "Username"
$sPassword = "Password"

_IEErrorHandlerRegister()
$oIE = _IECreate($sURL)
$oFrame = _IEFrameGetCollection($oIE, 1)
_IELoadWait($oFrame)
$oForm = _IEFormGetObjByName($oFrame, "login")
$oUserName = _IEFormElementGetObjByName($oForm, "username")
$oPassword = _IEFormElementGetObjByName($oForm, "password")

_IEFormElementSetValue($oUserName, $sUserName)
_IEFormElementSetValue($oPassword, $sPassword)
_IEFormSubmit($oForm)
Link to comment
Share on other sites

  • 1 year later...

I know this topic is dead but would want to make a safer coded form that reacts to what could be change on this script

#Region --- Function _MyspaceLogin()
;   Function Name   : _MyspaceLogin()
;   Description     : Attempts to login to Myspace.com
;   Syntax          : _MyspaceLogin()
;   Parameter(s)    : None
;   Requirement(s)  : None
;   Return Value(s) : On Success - Returns a True 
;                       On Failure - Returns an False and sets @Error
;                       @Error = 1 $o is not a Object
;   Author        : Terarin Kerowyn
;   Modification:   : None
;   Note(s)         : If you are trying to enter more stuff you need to add another IsObj so it checked on the Login Check
;                       You can edit them with:
;                        Tagname, InnerHTML, InnerText, OuterHTML, OuterText, Title, Id
;   Link            : http://www.autoitscript.com/forum/index.php?showtopic=73922
Func _MyspaceLogon()
    $sEmail = "yourusername@domain.com" 
    $sPassword = "yourpassword"
    
    
    $oElements = _IETagNameAllGetCollection($oIE)
    For $oElement In $oElements
        If StringInStr($oElement.title, "Log In") Then
            $oLogin = $oElement
        ElseIf StringInStr($oElement.id, "Email_TextBox") Then
            $oEmail = $oElement
        ElseIf StringInStr($oElement.id, "Password_TextBox") Then
            $oPassword = $oElement
        EndIf
    Next    

    If IsObj($oEmail) And IsObj($oPassword) And IsObj($oLogin) Then 
        _IEFormElementSetValue($oEmail, $sEmail)
        _IEFormElementSetValue($oPassword, $sPassword)
        _IEAction($oLogin, "click")
        _IELoadWait($oIE)
        Return True
    Else
        MsgBox(0, "Not Found", "Login cannot be found")
        SetError(1)
        Return False
    EndIf
EndFunc
#EndRegion --- Function _MyspaceLogin()

Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah

Link to comment
Share on other sites

  • 4 weeks later...
  • 5 months later...

How can I use any of the above examples if the page requires requires me to click on a link "Continue to this website (not recommended)." Like when I use an untrusted "https" URL?

I viewed the page source and found "<h4 id="continueToSite">" but when I use "$Cert_OK = _IEGetObjById($oIE, "continueToSite")" followed by "_IEAction($Cert_OK,"click")" is doesnt click the Continue to site link.

Its basicly a Exchange 2003 Webmail logon I am trying to automate but the url is https and the cert is not trusted.

GoogleDude

Link to comment
Share on other sites

  • 2 weeks later...

You are trying to continue on something you can't click on.

$oElements = _IETagNameAllGetCollection($oIE)
For $oElement In $oElements
    If StringInStr($oElement.title, "CLICK ON THIS TO CONTINUE") Then
        $oContinue = $oElement
    EndIf
Next

You can still accomplish this regardless to if the site is https or has invalid certs.

Edited by TerarinK

0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Link to comment
Share on other sites

OK so I am trying to understand how to use AIT but my learning curve is slow.

I am trying to build a MySpace mass thread deleter to clean up spam that can be thousands of pages of posts.

I tried to utilize this script to be able to log in automatically but it is not working.

#include <IE.au3>

$sEmail = "your@email.com"

$sPassword = "yourpassword"

$sURL = "http://www.myspace.com/"

$oIE = _IECreate($sURL)

$oForm = _IEFormGetObjByName($oIE, "theForm")

$oEmail = _IEFormElementGetObjByName($oForm, "email")

$oPassword = _IEFormElementGetObjByName($oForm, "password")

$oButton = _IEGetObjByName($oForm, "ctl00_Main_SplashDisplay_login_loginbutton")

_IEFormElementSetValue($oEmail, $sEmail)

_IEFormElementSetValue($oPassword, $sPassword)

_IEAction($oButton, "click")

I can make it work like this though and manually log in:

#include <IE.au3>

#RequireAdmin

$oIE =_IECreate("http://myspace.com", 1)

sleep(30000) ;; gives you 30 seconds to log in before starting

_IENavigate($oIE, "http://forum.myspace.com/index.cfm?fuseaction=messageboard.viewcategory&groupID=107737288") ;; put the ID for a group you moderate in this URL

for $i=71677957 to 71677955 ;; these numbers are the first and last topic IDs to delete

_IENavigate($oIE,"java script:deleteTopic(" & $i &",true)")

next

It will log in and take me to the topic page but it does not open the topics and delete them.

Can you tell me how to fix it?

The goal is to end up with a mass thread deleter that will have a GUI for moderators to use to clean up spam from groups. Anyone be willing to help me get this thing functional?

I have it mostly planned with the needed functions listed in this mockup:

Posted Image

If anyone is interested and needs the log in for the test group and password let me know.

Link to comment
Share on other sites

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...