advertisement
Forums

The Forum is sponsored by 
 

AAPL stock: Click Here

You are currently viewing the Tips and Deals forum
Any way to add your own scripting to someone else's site?
Posted by: mattkime
Date: November 15, 2006 09:13AM
I'm trying to extract information from a website which uses session cookies apparently for no other reason than to make it difficult to extract information programmatically. Is there a way to add my own bits-o-scripting to this page to make events happen automagically?

otherwise i'm picking my programming language and getting down and dirty with curl...



Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: papercup
Date: November 15, 2006 09:23AM
Maybe not the most elegant way, but in the past I have used Sitesucker & downloaded the whole site I was parsing, Then open & extract in Dreamweaver/GoLive/Whatever.
Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: TheTominator
Date: November 15, 2006 09:25AM
<oversimplification>
Adding your own bits of scripting to a site is usually referred to as "cross-site scripting". That would be posting your own code where other people visiting the site can activate it. It is usually associated with "script kiddies" who are doing something bad to the site and the site's visitors.

Usually a person would inject their own scripting into a site by posting information into a forum or blog and having that post contain embedded code (JavaScript usually). Because the forum or blog software doesn't want to be exploited in this way, there are usually safeguards against such misbehavior. Posting the script content is accomplished by exploiting a flaw in the software running on the website.
</oversimplification>



Edited 1 time(s). Last edit at 11/15/2006 09:27AM by TheTominator.
Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: mattkime
Date: November 15, 2006 09:33AM
yes, i'm well aware of the issues in cross site scripting. essentially, i'm posting this to cover my a$$ - I just wanted to make sure that this was a bad idea. curl plus php/perl/python definitely looks like the way to go. download a page, process it, request the next one.



Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: Seacrest
Date: November 15, 2006 09:50AM
[diveintogreasemonkey.org]





I am not Ryan Seacrest, and I do not approve this message.
Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: mattkime
Date: November 15, 2006 10:08AM
>>[diveintogreasemonkey.org]

ah, yes! it seemed like something like this had to exist!

unfortunately the client expects this to happen from within filemaker.

i need to start charging for talking him out of bad ideas.



Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: TheTominator
Date: November 15, 2006 10:19AM
Quote
mattkime
unfortunately the client expects this to happen from within filemaker.

FileMaker Pro 8.5 has a web browser built in.
You can script downloading pages and processing the content entirely within FileMaker Pro.
Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: mattkime
Date: November 15, 2006 10:27AM
>>You can script downloading pages and processing the content entirely within FileMaker Pro.

Yes, but I can't directly download the page I need. I need to go to an entry page which sets a session variable, fill out a PUT form on the next page and THEN i get the data I need.

Does it allow such scripting? I don't expect it to but maybe i'm wrong.



Options:  Reply • Quote
Re: Any way to add your own scripting to someone else's site?
Posted by: TheTominator
Date: November 15, 2006 10:50AM
Quote
mattkime
Yes, but I can't directly download the page I need. I need to go to an entry page which sets a session variable, fill out a PUT form on the next page and THEN i get the data I need.

Does it allow such scripting?

The PUT part looks to be a problem. I don't see any method of downloading content directly with FileMaker 8.5 non-interactively except using GET.
Options:  Reply • Quote
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 186 on February 20, 2020
Record Number of Guests: 5122 on October 03, 2020