PDA

View Full Version : Neomail



ritzwin
09-04-2013, 12:29 AM
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.

j03
09-04-2013, 09:29 AM
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.

ritzwin
09-04-2013, 10:22 AM
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?

j03
09-04-2013, 12:32 PM
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?

ritzwin
09-04-2013, 12:40 PM
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.

j03
09-04-2013, 12:51 PM
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 :P) but you never know. :)

ritzwin
09-04-2013, 01:00 PM
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

j03
09-04-2013, 01:04 PM
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. :P

ritzwin
09-04-2013, 01:37 PM
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.

DarkByte
10-01-2013, 03:23 AM
Works fine here ..


Based on the tamper data:
[Only registered and activated users can see links]

I made this script:


from classes.NeoAccount import NeoAccount

neouser = "" #Neopets Username
neopass = "" #Neopets Password

acc = NeoAccount(neouser,neopass)

acc.login()
postdata = {"recipient" : "England" , "neofreinds" : "" , "subject" : "Test" , "message_type" : "notitle" , "message_body" : "this is a test message"}
html = acc.post("[Only registered and activated users can see links]",postdata , "[Only registered and activated users can see links]")

print html


Notice this line?
html = acc.post("[Only registered and activated users can see links]",postdata , "[Only registered and activated users can see links]")

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

[Only registered and activated users can see links]

Here is the received neomail....

[Only registered and activated users can see links]


I use neoaccount class ([Only registered and activated users can see links]) by ikakk

aspie
01-10-2014, 07:30 PM
Automating the Neomail system is against TNT rules :) I think breaking TNT rules is against this forums rules also. You might want to check that !

DarkByte
01-10-2014, 08:18 PM
Automating the Neomail system is against TNT rules :) I think breaking TNT rules is against this forums rules also. You might want to check that !

I think u might be confused.

aspie
01-10-2014, 08:20 PM
I probbibly was, apparently I signed up to a neopets cheat forum instead of a neopets help forum.

j03
01-13-2014, 01:40 PM
I probbibly was, apparently I signed up to a neopets cheat forum instead of a neopets help forum.

How the fuck did you do that? o_o

Maths
01-13-2014, 01:42 PM
I probbibly was, apparently I signed up to a neopets cheat forum instead of a neopets help forum.

THIS IS THE BEST

Mrfugix
01-18-2014, 02:35 AM
How the fuck did you do that? o_o

I'm tempted to say it might be because aspie has Asperger's Syndrome.

Banannie
01-18-2014, 01:18 PM
I'm tempted to say it might be because aspie has Asperger's Syndrome.

Finally someone said it, I was waiting for that. C,:

Mrfugix
01-18-2014, 01:31 PM
Finally someone said it, I was waiting for that. C,:

He's probably just like the cute kid in Parenthood. :')

seimi
01-25-2014, 09:41 PM
I probbibly was, apparently I signed up to a neopets cheat forum instead of a neopets help forum.

Holy heck this is hilarious.

Josh
01-28-2014, 02:18 AM
I probbibly was, apparently I signed up to a neopets cheat forum instead of a neopets help forum.
Smartest person on the forum, hands down.

[Only registered and activated users can see links]

Good job.