i have a question: how could i read a text showed in a web page in my browser(iexplorer) from my program? what i mean is let's say i access www.yahoo.com and i want to search the text displayed on that page for a ward let's say "registration" or anything else. any suggestions?a snippet or source code would be MUCH APPRECIATED.thanks.
Posted on 2006-09-21 11:05:12 by kiddo
For what reason would you want to crawl webpages in such a manner?
Posted on 2006-09-21 12:10:27 by SpooK
To view web pages you can use

- the Web browser custom control. (WBDll.dll)

It uses the iexplorer components used in windows.
Its DIRECTLY Included with radasm and the full source is available
Check it out at
http://www.radasm.com

If you just want a web page to appear to the user use the ShellExecute api


.data
strOpen db "open",0
strWebpage db "http://www.radasm.com",0
.code
invoke ShellExecute,0,addr strOpen,addr strWebpage,0,0,SW_SHOWDEFAULT
Posted on 2006-09-21 12:29:46 by Nice Eddie
Hm, crawling webpages and searching for "registration" sounds like a dubious thing to do.

You'll want to read up on socket programming, the HTTP spec, and probably also regular expressions. It'd be a lot easier to do this in something like perl than assembly...
Posted on 2006-09-21 16:59:17 by f0dder
well i need this kind of 'crawl' just to not let my little brother access porn pages.
so will you give me a working snippet?or even a program, i don't mind.but i would prefer a snipet just to attach it to my code because i would have more control over the program.thanks again.
oh, by the way: i need it in asm,not perl or anything else.
Posted on 2006-09-22 00:45:33 by kiddo
Why not invest in more proven web filter/blocker programs?
Posted on 2006-09-22 01:14:31 by SpooK
Sorry if I'm suspicious, but your claim sounds pretty bogus... especially that you don't want to invest any time in it yourself, and that you "need it in asm" sounds more like you want to add some mischievious feature to a trojan, than that you need to block access to pr0n.

Sorry, it's not like it's a particularly hard task to do this, but it's all about how you present yourself.

Posted on 2006-09-22 02:16:11 by f0dder
here's the situation: i want to make a program that stays invisible to my brother. and when he access p*rn sites, i want my program to display a picture of me with a baseball bat in my hand and a message(messagebox or dialog) in which I tell him that if this happens again, i'll beat the guts out of him.
i'm not interested in trojans or anything, i just want to show my brother that i can have more control over the pc even when i'm not home, and i could know what sites he accesses.that's all.
if you think i ask too much, forget it.
Posted on 2006-09-22 06:44:47 by kiddo
"You don't need to do what you want to do to do that" :)

If you want to do it for "any pr0n site", that's pretty difficult to do reliably.

If you want to block specific sites, editing your hosts file might be enough, or you could set up a proxy blocking those sites.

Alternate methods could include hooking winsock, hooking the browser, or perhaps simply writing a browser plugin.

Crawling webpages by itself isn't bad, it'se useful for site mirroring or datamining (which by itself isn't bad, although some people misuse it). The thing is that your original request sounded pretty suspicious, and that you need some quite different techniques if you want to do what you claim you want to do.
Posted on 2006-09-22 06:50:43 by f0dder
Well, you ask too much! As a human, he has the right to decide what he see... even if those are porn sites.
Maybe you will be successfull if you tell him that those womans may be foced to make movies or photos. And, maybe, if you treat him as an adult, he will act as an adult.
But hey, who the hell am I to tell you what to do with your own family. Punch them with your baseball bat if they don't listen to what you're saing. Is an clever solution.
Posted on 2006-09-22 07:37:13 by TNick

i want to search the text displayed on that page for a ward let's say "registration"


so will you give me a working snippet?


i want to make a program that stays invisible to my brother. and when he access p*rn sites, i want my program to


Uh for god's sake someone already lock this topic  8)
Posted on 2006-09-22 07:50:05 by arafel

Uh for god's sake someone already lock this topic  8)


So let it be written, so let it be done.
Posted on 2006-09-22 07:52:35 by f0dder