Sign in to follow this  
Followers 0
Nova

HTML login

11 posts in this topic

#1 ·  Posted (edited)

Ok so ive written a script to check if your ip address has changed and if it has to send the new ip as a text msg to my mobile phone.

I have most of the script written......All I need to do now is figure out how to send the txt msg.

Plz go here....

https://www.mymeteor.ie/mymeteor/login.cfm?...FTOKEN=50925681

Ok in order to send a web txt to my phone I have to log in here first with my mobile number and my pin number.

I have tryed using window spy but cant see anyway that I can use control send or any other of those sort of commands.

I dont want to use click (x,y) because Id like this to happen invisibly.

Anyone have any ideas as to how I can do a html login that wont involve click(x,y) send username click (x,y) send pin [enter]?

Edited by nova

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

I'm not sure about that program.. what does it do? (I couldnt find what it does...) I have a login to a site I just Send('{TAB}') a whole bunch of them so it would loook like this Send('{TAB}{TAB}{TAB}{TAB}'). Tab to the control then Send('Your username here') then a Send('{TAB}') to get to password then Send('Yourpwordhere{ENTER}') (it sends your password then presses enter).

I hope this helps you off into the right direction again.

Edit: As a matter of fact it is only 2 tabs to get to username...

WinWaitActive('My Meteor Manage Your Account - Microsoft Internet Explorer')
Send('{TAB}{TAB}')
Send('YourU/NHere')
Send('{TAB}')
Send('YourP/WHere{ENTER}')
;At this point you will need another WinWaitActive() Or use the StatusBarGetText()
;Then you will basically repeat the tabs to get you into the proper boxes or what ever to send the message

I hope the above helps you...

JS

Edited by JSThePatriot

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Tnx for the idea JS ..........but I hate sending keys,like tab ,alt,enter or forcing a mouse to move and click because its very messy and accident prone !

I only ever use these commands when all else fails !

Share this post


Link to post
Share on other sites

Ok how do I use wget ? Theres no help file and

I ran it in command line like so

wget /?
and didnt get any help !

Share this post


Link to post
Share on other sites

Yea I understand not wanting to send stuff.. :-/ Let me know how the WGet works for you. I didnt feel like spending the time to figure it out though I might should since I have a similar need (I think). I just need to click a bunch of links up to a certain point on a page and make sure each one prints... :-P

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

I normally just use the find (a word right before or after the field) and then tab in, fill it out, and tab out.

I fill in about 20 forms a day with autoit on the web, and mouse locations are bad due to folks' afinity for changing graphics and such on thier web pages. Image maps don't work well however for all keyboard use.

The more realiable way if to download the form, and make your own from the HTML data. Make sure to change the "POST" section to refer to the right page on the server you want.

Many pages can be copied and done this way. You can even fix the HTML page with defaults, or just make your HTML page with only two fields or whatever you like. This usually works for login, but rarely anything else.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Ok how do I use wget ? Theres no help file and

I ran it in command line like so

wget /?
and didnt get any help !

<{POST_SNAPBACK}>

To obtain help from command line:

wget --help

This zip, contain a helpfile included ("wget.hlp"), too.

'wget' have a lot options, if you need more help go to manual.

(Sorry for now, I can't explain you there everything... :))

From help:

GNU Wget is a free utility for non-interactive download of files from the Web.  It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

Some features:

· Wget is non-interactive, meaning that it can work in the background, while the user is not logged on.  This allows you to start a retrieval and disconnect from the system, letting Wget finish the work.  By contrast, most of the Web browsers require constant user's presence, which can be a great hindrance when transferring a lot of data.

· Wget can follow links in HTML pages and create local versions of remote web sites, fully recreating the directory structure of the original site.  This is sometimes referred to as "recursive downloading."  While doing that, Wget respects the Robot Exclusion Standard (/robots.txt).  Wget can be instructed to convert the links in downloaded HTML files to the local files for offline viewing.

etc...

Good luck!

Share this post


Link to post
Share on other sites

Im a bit confussed as to what u mean scriptkitty

Are u saying that I should save the webpage and edit the html adding my username and password to the correct places in the html source code and then open the HTML file so as the username and password are sent to the site in teh correct places ?

If this is what u ment,I am crap at html and wouldnt know where to start !

Could u do me an example using the link I provided labling the code that I need to look for and edit ?

Share this post


Link to post
Share on other sites

Sure, here is autoitscritp.com login with value added.

I removed most of the non form code, but left some in to show how funky it might look. Dump it into an HTML editor and just add a value to the fields.

Note, these are the parts I changed, and no that is not my password. :)

<input type="text" size="25" maxlength="64" name="UserName" class="forminput" />

<input type="password" size="25" name="PassWord" class="forminput" />

changed to:

<base href=http://www.autoitscript.com/forum/>

<input type="text" size="25" maxlength="64" name="UserName" value="scriptkitty" class="forminput" />

<input type="password" value="my password here" size="25" name="PassWord" class="forminput" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Log In</title>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<style type="text/css" media="all">

@import url(style_images/css_14.css);

</style>

</head>

<base href=http://www.autoitscript.com/forum/>

<body>

<script language='Javascript' type="text/javascript">

<!--

function ValidateForm() {

var Check = 0;

if (document.LOGIN.UserName.value == '') { Check = 1; }

if (document.LOGIN.PassWord.value == '') { Check = 1; }

if (Check == 1) {

  alert("Please enter your name and password before continuing");

  return false;

} else {

  document.LOGIN.submit.disabled = true;

  return true;

}

}

//-->

</script>

<form action="http://www.autoitscript.com/forum/index.php?act=Login&amp;CODE=01" method="post" name="LOGIN" onsubmit="return ValidateForm()">

<input type="hidden" name="referer" value="http://www.autoitscript.com/forum/index.php?showtopic=5193" />

<div class="borderwrap">

  <div class="maintitle"><img src='style_images/autoit/nav_m.gif' border='0'  alt='&gt;' width='8' height='8' />&nbsp;Log In</div>

  <div class="formsubtitle">Please enter your details below to log in</div>

  <div class="errorwrap">

  <h4>Attention!</h4>

  <p>You must already have registered for an account before you can log in.<br />If you do not have an account, you may register by clicking the 'register' link near the top of the screen</p>

  <p><b>I've forgotten my password! <a href="http://www.autoitscript.com/forum/index.php?act=Reg&amp;CODE=10">Click here!</a></b></p>

  </div>

  <table cellspacing="1">

  <tr>

    <td width="60%" valign="top">

    <fieldset>

      <legend><b>Log In</b></legend>

      <table cellspacing="1">

      <tr><td width="50%"><b>Enter your user name</b></td>

        <td width="50%"><input type="text" size="25" maxlength="64" name="UserName" value="scriptkitty" class="forminput" /></td>      </tr>

      <tr>

        <td width="50%"><b>Enter your password</b></td>

        <td width="50%"><input type="password" value="my password here"size="25" name="PassWord" class="forminput" /></td>

      </tr>

      </table>

    </fieldset>

    </td>

    <td width="40%" valign="top">

    <fieldset>

      <legend><b>Options</b></legend>

      <table cellspacing="1">

      <tr>

        <td width="10%"><input type="checkbox" name="CookieDate" value="1" checked="checked" /></td>

        <td width="90%"><b>Remember me?</b><br /><span class="desc">This is not recommended for shared computers</span></td>

      </tr>

      <tr>

        <td width="10%"><input type="checkbox" name="Privacy" value="1" /></td>

        <td width="90%"><b>Log in as invisible</b><br /><span class="desc">Don't add me to the active users list</span></td>

      </tr>

      </table>

    </fieldset>

    </td>

  </tr>

  <tr>

    <td class="formbuttonrow" colspan="2"><input class="button" type="submit" name="submit" value="Log me in" /></td>

  </tr>

  <tr>

    <td class="catend" colspan="2"><!-- no content --></td>

  </tr>

  </table>

</div>

</form>

</body>

</html>


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Are you making this just to see if you can do it or? Because if not you should think about signing up to dyndns.org or something and using a third party utility that will update your ip address with the site if it changes.

Share this post


Link to post
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
Sign in to follow this  
Followers 0