Solved

hotmail javascript dhtml question

Posted on 2004-10-01
8
271 Views
Last Modified: 2010-04-17
Hi,
After being logged into hotmail, I'd like to know what variables would have to be submitted to what url in order to delete a message.  It would also be helpful to know if it's a get or a post that's required.  Thanks.
0
Comment
Question by:jodyglidden
  • 5
  • 3
8 Comments
 
LVL 4

Assisted Solution

by:itcnbwise
itcnbwise earned 500 total points
ID: 12205174
I don't think it's possible.  I think the hotmail server checks to see what IP the referer comes from, and if it's not a Hotmail IP, it won't activate the delete function, it just shows the message.  For example, this is the link to delete a Hotmail email:

http://by8fd.bay8.hotmail.msn.com/cgi-bin/getmsg?msg=MSG1096625328.50&start=704766&len=6757&msgread=1&imgsafe=n&curmbox=F000000001&a=4f3a5a6fb805d676ffaf28f7778993ac#

First of all, note you must know the message ID (in this case it's MSG1096625328.50).  But if I try to activate this URL, it will not delete the email.  But if I follow this link from within hotmail (i.e. on their IP) it deletes it.
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205290
Would it not be working because you are missing some form variables that get set during the button click?  I noticed that there is a

subm(

function that takes 4 parameters.... "delete",0,1,event.  I'm not sure what the value of event is or what the subm function might be doing.  I know the subm function is in a .js file which I went to but the subm function seems pretty complicated and I'm having a hard time to follow it.

Thanks for your help so far
0
 
LVL 4

Accepted Solution

by:
itcnbwise earned 500 total points
ID: 12205313
I looked at that JS file too, then realized there must be a simpler way than by trying to reverse engineer all that javascript on the checkboxes.  So I just click on one email, then copied the shortcut for the delete button.  Now, that button may have a few hidden parameters, I don't know, I really didn't look into that much detail.  But that's what you should investigate - it seems easier than trying to decipher that js code on the email listing page.
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205792
When I right click on that link and copy it, paste it into the above url and hit enter it doesn't do anything.  Also it has a # sign at the end.  I believe by looking at the code in that page that this is actually masked with javascript as well.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:itcnbwise
ID: 12205800
Look at my first post - the link doesn't do anything because you are not being refered by a hotmail IP
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12205823
Then how would you explain the complicated subm function and everything?  I would agree with you if you had a full account of what's being done in that javascript function.  Plus, in my experience, all of the other hotmail pages can be gotten to directly.. you just have to submit the right variables.  I'm quite sure we're just missing variables.  

As an alternative, if nobody happens to be able to tell what the javascript is doing, a method to programmatically click the delete button using the microsoft webbrowser control would be just as good.

0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12207028
Also, you'll notice on the email message that all buttons, delete, forward, etc seem to have the same link.  This tells us it must be a fake link.

0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12207149
Nevermind, I figured it out myself.  I'll give out some points for trying...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 81
word0 challenge 4 66
How to get boolean result of md5sum from two files in powershell 8 72
iSeries email authority 4 26
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now