Mommy's Profile User Rating: -----

Reputation: 7 Worker
Group:
Members w/DIC++
Active Posts:
137 (0.08 per day)
Joined:
04-August 08
Profile Views:
4,667
Last Active:
User is offline Jun 14 2012 10:50 AM
Currently:
Offline

Previous Fields

Country:
DK
OS Preference:
Windows
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   Mommy has not set their status

Posts I've Made

  1. In Topic: HttpComponents post request with .aspx doesn't produce session coo

    Posted 9 Apr 2012

    View Postg00se, on 08 April 2012 - 09:58 AM, said:

    In particular, you need to eliminate factors surrounding scripting (always a good way of making things harder for bots)

    e.g. a script could add to the parameters - something that wouldn't happen naturally in your code

    You will probably discover the difference if you run your own code through a logging proxy. For best results, choose a proxy that can be used by both your browser and your Java code


    This seems like a brilliant idea. I'm guessing this logging proxy is somewhat the same as the results, which I had gotten with Chrome, that I posted earlier.

    I don't seem to be able to find anything of the sort that I could use with my code though.. Do you know of any?
  2. In Topic: HttpComponents post request with .aspx doesn't produce session coo

    Posted 8 Apr 2012

    View Postg00se, on 08 April 2012 - 04:36 AM, said:

    Are you sure that's the only page involved with the browser? Make a careful investigation into whether any additional requests are made


    These are the only requests and form data sent upon login. In essence, everything needed to successfully log in is here, I just need to find out which parts are crucial and how to replicate them code-wise.

    Also: I've tried with other asp.net (.aspx) sites and the same situation occurs.. I'm guessing this, to some extent, is a general issue / obstacle with aspx
  3. In Topic: HttpComponents post request with .aspx doesn't produce session coo

    Posted 7 Apr 2012

    It was a good idea with the user agent, but I'm sad to say it didn't work.. There must be some other request headers that needs to be sent. Using Chrome, I captured the headers that were sent while successfully logging in:

    POST /lectio/22/login.aspx HTTP/1.1
    
    Host: www.lectio.dk
    
    Connection: keep-alive
    
    Content-Length: 784
    
    Cache-Control: max-age=0
    
    Origin: https://www.lectio.dk
    
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19
    
    Content-Type: application/x-www-form-urlencoded
    
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    
    Referer: https://www.lectio.dk/lectio/22/login.aspx
    
    Accept-Encoding: gzip,deflate,sdch
    
    Accept-Language: en-US,en;q=0.8,da;q=0.6
    
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    
    Cookie: lectiogsc=610cc657-76ea-44d7-f63c-7072966701b7; lecmobile=0; LastLoginUserName=blabla; BaseSchoolUrl=%2Flectio%2F22; LastAuthenticatedPageLoad=Sun%20Apr%2008%202012%2000%3A10%3A13%20GMT%2B0200%20(Romance%20Daylight%20Time); ASP.NET_SessionId=vz4qj2m0y5243cc1zyvlnnlw; isloggedin3=N
    


    (removed the username)

    Also, the form data sent was:
    time:0
    __EVENTTARGET:m$Content$submitbtn2
    __EVENTARGUMENT:
    __VIEWSTATEX:2QAAAGlpZQoxMjYzNzU5MjIxaWwCawBnAWwCaGlkbARoaWRsAmcLaWwCawFmZGcCaWwCawJlA29mZmwCZw1pZGwCZwFpZGwCZwVpZGwCZwNpZGwEaGlkbAJnA2lkbAZnAWlsAmsDZRBPcmRydXAgR3ltbmFzaXVtZGcFaWRsAmcBaWRsAmhpbAJrBGUCNTBkZwdpbAJrBXBsAmcBaWRsAmhpamlsAmsGcGRkZGRnAWlkbAJnA2lpbAJrB2cyZGRyAWURbSRDb250ZW50JExvZ2luTVZpaWRoZAgAAAAJTG9naW5WaWV3BFRleHQMYXV0b2NvbXBsZXRlCWlubmVyaHRtbAltYXhsZW5ndGgHVmlzaWJsZQdDaGVja2VkCU1heExlbmd0aAD0oRTeUjAw/rXgxgMQQ/5EXCTgHw==
    __VIEWSTATE:
    __EVENTVALIDATION:/wEWDgL+raDpAgKRvc+2CAL99/NMAr7gpI0BAtXZjtYNAtXZmvMEAtXZpqgLAtXZssUDAtXZnqwFAtXZqskNAr7gmNAKAtDeh4QOAv3it5IPApOesvoKXJpqVlf9iSicA8/wz5lCzo9lVYzt/ErgSzUayOhT7uU=
    m$Content$username2:blabla
    m$Content$password2:blabla
    


    (removed username and pass)

    This data doesn't make much sense to me.. Do you have an idea which steps I could take from here?
  4. In Topic: HttpComponents post request with .aspx doesn't produce session coo

    Posted 7 Apr 2012

    View Postg00se, on 07 April 2012 - 09:04 AM, said:

    It's actually normal to hit the main page first before logging in. That alone might do it


    I will try with the use agent , but I'm not sure what you mean by this.
  5. In Topic: HttpComponents post request with .aspx doesn't produce session coo

    Posted 7 Apr 2012

    View Postg00se, on 07 April 2012 - 06:20 AM, said:

    Did it log you in or not?


    It didn't - sorry if that wasn't clear in my description.

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Interests:
Growing a beard.
Years Programming:
1
Programming Languages:
Learning: VB.NET, PHP, CSS
Already known: HTML

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Mommy hasn't added any friends yet.

Comments

Mommy has no profile comments yet. Why not say hello?