Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 


72 posts

Master Geek


  Reply # 661225 24-Jul-2012 19:40 Send private message

If anyone is interested here is the code that I have written so far https://docs.google.com/folder/d/0B5ghoqfnILgZd01HdlY3ZE1MVW8/edit .

It seems to trip up at the point where a request is made to the URL within the javascript returned after submitting the login form.

6757 posts

Uber Geek
+1 received by user: 443

Trusted
Subscriber

  Reply # 661236 24-Jul-2012 20:01 Send private message

I don't understand how javascript would be involved when you're doing server side scripting.




Asus eee pad transformer
iPod 2G
Windows 7 PC
Lots and lots of Nikon camera gear



72 posts

Master Geek


  Reply # 661242 24-Jul-2012 20:04 Send private message

timmmay: I don't understand how javascript would be involved when you're doing server side scripting.


Yes I think I am confused. Here is an example of what is returned after submitting the login form:

<html>
<head>
    <script type="text/javascript">
        function redirect()
        {
            window.location.replace("http://www.trademe.co.nz/Members/Login.aspx?url=%2fMyTradeMe%2fDefault.aspx&secure=&login_attempts=1&quick_register=&firstname=Liam&email=my_email%40gmail.com&auto_login=&captcha=&err=0&login_success=True&dbs_id=39A6D8A3-130E-4FFC-B725-08C23883208C&region_id=2&session=%7BE3135B5C-570F-4399-B264-10118DE1FE30%7D&shareOfVoice=1&api_confirm=&bid=4,1,3&adParams=g%3dM%26bd%3d627615648000000000%26sb%3d13");
        }
    </script>
</head>
<body onload="javascript:redirect();">
</body>
</html>

6757 posts

Uber Geek
+1 received by user: 443

Trusted
Subscriber

  Reply # 661261 24-Jul-2012 20:20 Send private message

Javascript is usually UI stuff, unless they're doing something tricky. A login should be a simple form post, it'll return a cookie, capture that and send it in with any future requests you make so it knows you who you are.

Do you have much web development experience?




Asus eee pad transformer
iPod 2G
Windows 7 PC
Lots and lots of Nikon camera gear



72 posts

Master Geek


  Reply # 661265 24-Jul-2012 20:23 Send private message

timmmay: Javascript is usually UI stuff, unless they're doing something tricky. A login should be a simple form post, it'll return a cookie, capture that and send it in with any future requests you make so it knows you who you are.

Do you have much web development experience?


Yes I do have web dev experience. I dunno I can't see that html doing anything other than redirecting...

6757 posts

Uber Geek
+1 received by user: 443

Trusted
Subscriber

  Reply # 661309 24-Jul-2012 20:56 Send private message

Is that's what's returned after you submit the login form manually, or with your software?

It looks like a simple redirect to me, telling your browser to open another URL.




Asus eee pad transformer
iPod 2G
Windows 7 PC
Lots and lots of Nikon camera gear



72 posts

Master Geek


  Reply # 661324 24-Jul-2012 21:19 Send private message

timmmay: Is that's what's returned after you submit the login form manually, or with your software?

It looks like a simple redirect to me, telling your browser to open another URL.


It is returned in both cases. However when using the browser after requesting the URL in that script I am redirected to the "My Trademe" page. In the code I just get redirected back to the login page.

6757 posts

Uber Geek
+1 received by user: 443

Trusted
Subscriber

  Reply # 661325 24-Jul-2012 21:23 Send private message

Did you use the firefox plugin I suggested to see if a cookie's being returned at the same time? I would bet it is, but I don't want to make it too easy for you ;) If you open that URL with your code you'll need to send the cookie as well.

This all guesswork, but I think it'll lead you in the right direction.




Asus eee pad transformer
iPod 2G
Windows 7 PC
Lots and lots of Nikon camera gear

1764 posts

Uber Geek
+1 received by user: 45

Trusted

  Reply # 662502 26-Jul-2012 16:59 Send private message

Would a browser App to post be considered svcraping , like JavaScript greasemonky script application.

1764 posts

Uber Geek
+1 received by user: 45

Trusted

  Reply # 662694 26-Jul-2012 23:18 Send private message

"http://www.trademe.co.nz/Members/Login.aspx?url=%2fMyTradeMe%2fDefault.aspx&secure=&login_attempts=1&quick_register=&firstname=Liam&email=my_email%40gmail.com&auto_login=&captcha=&err=0&login_success=True&dbs_id=39A6D8A3-130E-4FFC-B725-08C23883208C?ion_id=2&session=%7BE3135B5C-570F-4399-B264-10118DE1FE30%7D&shareOfVoice=1&api_confirm=&bid=4,1,3&adParams=g%3dM%26bd%3d627615648000000000%26sb%3d13")


The JavaScript is attracted to clicking of login form, The redirection could be done through standard html client requests.
Workng on some php to display session cookies of the login process.

1 | 2 
View this topic in a long page with up to 500 replies per page Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Moment of Truth?
Created by BarTender, last reply by gzt on 17-Sep-2014 00:34 (247 replies)
Pages... 15 16 17


Mr. Key to extradite Kim Dotcom?
Created by TimA, last reply by dcole13 on 16-Sep-2014 12:38 (110 replies)
Pages... 6 7 8


Spark DNS Issues - Amazing - Broadband Service Alert
Created by PeteS, last reply by Demeter on 15-Sep-2014 14:13 (307 replies)
Pages... 19 20 21


hp bios update
Created by foxy38, last reply by foxy38 on 14-Sep-2014 19:08 (26 replies)
Pages... 2


Linksys EA6700 $98 at Harvey Horman
Created by macuser, last reply by macuser on 16-Sep-2014 15:18 (18 replies)
Pages... 2


Important changes to your Orcon email service ??
Created by old3eyes, last reply by Jarno on 16-Sep-2014 21:18 (17 replies)
Pages... 2


2014 Holden SS (V8) or Ford XR6-T (in-line 6 turbo)
Created by joker97, last reply by ilovemusic on 16-Sep-2014 14:34 (71 replies)
Pages... 3 4 5


Have $10,000, now what?
Created by Unregistered, last reply by loceff13 on 16-Sep-2014 19:31 (47 replies)
Pages... 2 3 4



Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.