Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Neomail

  1. #1
    ritzwin's Avatar
    Join Date
    Mar 2013
    Gender
    Location
    Canada
    Posts
    328
    Thanks
    35
    Thanked 57 Times in 30 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    23 Post(s)
    Time Online
    13 d 10 h 8 m
    Avg. Time Online
    11 m
    Rep Power
    5

    Neomail

    Has anyone successfully automated sending neomail messages recently?

    TNT really fucked with the code on that page, and even nearly 100% imitating a real message (using charles to verify) doesn't do the trick.

    Using python:
    The only thing in the request I haven't gotten the same is the "Connection: keep-alive", since mechanize doesn't support it. I almost have gotten to the point of using a different module that will support it (even though it seems odd that this would cause the problem - or is it not odd?)

    I should mention I'm not building any sort of spambot bs. I'm looking for easier ways to reply to messages using my own format is all.

  2. #2
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,757
    Thanks
    2,780
    Thanked 16,245 Times in 4,239 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2986 Post(s)
    Time Online
    293 d 23 h 25 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Quote Originally Posted by ritzwin View Post
    Has anyone successfully automated sending neomail messages recently?

    TNT really fucked with the code on that page, and even nearly 100% imitating a real message (using charles to verify) doesn't do the trick.

    Using python:
    The only thing in the request I haven't gotten the same is the "Connection: keep-alive", since mechanize doesn't support it. I almost have gotten to the point of using a different module that will support it (even though it seems odd that this would cause the problem - or is it not odd?)

    I should mention I'm not building any sort of spambot bs. I'm looking for easier ways to reply to messages using my own format is all.
    Are you using a wrapper? It looks normal to me. There is a redirect after sending the mail.

  3. #3
    ritzwin's Avatar
    Join Date
    Mar 2013
    Gender
    Location
    Canada
    Posts
    328
    Thanks
    35
    Thanked 57 Times in 30 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    23 Post(s)
    Time Online
    13 d 10 h 8 m
    Avg. Time Online
    11 m
    Rep Power
    5
    I hadn't noticed the redirect- maybe I should take a look into that. I have no experience with keep-alive connections, so I was wondering if that was the issue. Last I checked I didn't see any other parts of the site that used this. All headers are the same as a legit request (except connection), however not in the same order lol...

    I'm sending requests the same way I send almost all requests to neopets (which work for various parts of the site)- I'm not sure if thats what your wrapper comment is getting at?

  4. #4
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,757
    Thanks
    2,780
    Thanked 16,245 Times in 4,239 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2986 Post(s)
    Time Online
    293 d 23 h 25 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Quote Originally Posted by ritzwin View Post
    I hadn't noticed the redirect- maybe I should take a look into that. I have no experience with keep-alive connections, so I was wondering if that was the issue. Last I checked I didn't see any other parts of the site that used this. All headers are the same as a legit request (except connection), however not in the same order lol...

    I'm sending requests the same way I send almost all requests to neopets (which work for various parts of the site)- I'm not sure if thats what your wrapper comment is getting at?
    Well you might still be sending the neomail, have you tested to see if you are? Or are you relying on the response you are getting from your code execution? If you are, you will just see the "Found" header because it is being redirected.

    My question in terms of using a wrapper - are you using the normal library functions of connecting to Neopets or are you using a class that handles all connections, cookies and such?

  5. #5
    ritzwin's Avatar
    Join Date
    Mar 2013
    Gender
    Location
    Canada
    Posts
    328
    Thanks
    35
    Thanked 57 Times in 30 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    23 Post(s)
    Time Online
    13 d 10 h 8 m
    Avg. Time Online
    11 m
    Rep Power
    5
    I know I'm not sending the neomail, I've check the recipient account, and the response is that angry red/white/black message saying "we don't know how you got here, check ur browser settings". So I'm sure it's what I'm sending.

    Well I've manually added everything to the header so that it matches a legit neomail (I normally don't use all headers, but I added them all for this troublesome request) , and I have a library that handles cookies just fine everywhere else on neopets.

  6. #6
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,757
    Thanks
    2,780
    Thanked 16,245 Times in 4,239 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2986 Post(s)
    Time Online
    293 d 23 h 25 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Quote Originally Posted by ritzwin View Post
    I know I'm not sending the neomail, I've check the recipient account, and the response is that angry red/white/black message saying "we don't know how you got here, check ur browser settings". So I'm sure it's what I'm sending.

    Well I've manually added everything to the header so that it matches a legit neomail (I normally don't use all headers, but I added them all for this troublesome request) , and I have a library that handles cookies just fine everywhere else on neopets.
    Well then I recommend simulating the redirect portion of the process just like how your browser does. Of course, this might not even be the issue because you can usually get by without having to do this (my login is this way ) but you never know.

  7. #7
    ritzwin's Avatar
    Join Date
    Mar 2013
    Gender
    Location
    Canada
    Posts
    328
    Thanks
    35
    Thanked 57 Times in 30 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    23 Post(s)
    Time Online
    13 d 10 h 8 m
    Avg. Time Online
    11 m
    Rep Power
    5
    Thanks for your help, you've given me a few ideas to go off of. My login's messed up hehe, but it works- hasn't caused an icing ever since I've been using it- over a year now

  8. #8
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,757
    Thanks
    2,780
    Thanked 16,245 Times in 4,239 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2986 Post(s)
    Time Online
    293 d 23 h 25 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Quote Originally Posted by ritzwin View Post
    Thanks for your help, you've given me a few ideas to go off of. My login's messed up hehe, but it works- hasn't caused an icing ever since I've been using it- over a year now
    Same here.

    Sometimes for my projects, if it gets the job done then I am satisfied.. but in a professional perspective, such as at your job, I know that not finishing that login simulation and relying on the "found" header response would get you in trouble.

  9. #9
    ritzwin's Avatar
    Join Date
    Mar 2013
    Gender
    Location
    Canada
    Posts
    328
    Thanks
    35
    Thanked 57 Times in 30 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    23 Post(s)
    Time Online
    13 d 10 h 8 m
    Avg. Time Online
    11 m
    Rep Power
    5
    hehe agreed, some of the code I wrote a year ago I cringe at, but it works... so as long as I don't need to touch it I'm revealed.

  10. #10
    Banned
    Join Date
    Jun 2012
    Gender
    Location
    90 90
    Age
    31
    Posts
    1,714
    Thanks
    876
    Thanked 2,877 Times in 1,139 Posts


    Downloads
    44
    Uploads
    1
    Mentioned
    562 Post(s)
    Time Online
    118 d 6 h 45 m
    Avg. Time Online
    1 h 30 m
    Rep Power
    0
    Gamer IDs

    Gamertag: DarkByt3 PSN ID: raredaredevil
    Works fine here ..


    Based on the tamper data:


    I made this script:


    Notice this line?
    html = acc.post("http://www.neopets.com/process_neomessages.phtml",postdata , "http://www.neopets.com/neomessages.phtml?type=send")

    The last parameter is the refferal url (ie the page the browser was sent from) , without it we get this message:



    Here is the received neomail....




    I use neoaccount class by @ikakk
    Last edited by DarkByte; 10-01-2013 at 04:45 AM.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •