The MASM Forum

Miscellaneous => Miscellaneous Projects => Windows Projects => Topic started by: TouEnMasm on August 14, 2014, 06:16:26 PM

Title: Fast and secure search on internet with google or other searcher
Post by: TouEnMasm on August 14, 2014, 06:16:26 PM
This one is to made a safe and fast search on internet.
He give you only the url he had extracted from the google search.
You can configure the search as you want and made further searchs.
To help,see http://stenevang.wordpress.com/2013/02/22/google-search-url-request-parameters/ (http://stenevang.wordpress.com/2013/02/22/google-search-url-request-parameters/)

in the text search Arguments,only the first is used,can be empty
For download the most useful word is href=
For images imgurl=http:
The user agent for images can be :
"/search?q=rammstein sehnsucht album cover&tbm=isch&tbs=isz:ex,iszw:512,iszh:512"

For User Agent see http://www.viewmyuseragent.com (http://www.viewmyuseragent.com)

A little practice is needed to use it well.
The given file size tell you if your search is good or not.
The goal of this is to win time and avoid many troubles.

Here Last version tested with XP SP3,Windows 8 and 8.1,use the IMalloc
If you find it useful,help me made it better,put your need here

The advanced web search filter the suggestions of the search engine
Google in this sample.
He delet also the link softonic (a pack of multiple Installations).

He allow you to test the URL in a MiniBrower.
It is not a powerfull browser.
He can take time and failed to execute script.
You can quit it easily (he is in a thread).
This allow you to browse further links faster.
He create a file with the content of the page (fichier.htm)
Let the two programs in the same directory


Title: Re: Fast and secure seach on internet with google or other searcher
Post by: TouEnMasm on August 15, 2014, 06:00:01 PM
 :icon_mrgreen:
corrected a bug.
Give it a better look,added a filter,the founds links open now the defaut explorer
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: x64Core on August 15, 2014, 06:27:33 PM
crashes if not executed with privileges, tested on Win 8 x64

Image base 000F0000:
.text:000F3FC9 call    free ; msvcr100_free

call stack:
7744E726 ntdll.dll:ntdll_RtlpNtEnumerateSubKey+1AF9   
7744F654 ntdll.dll:ntdll_RtlpNtEnumerateSubKey+2A27   
7744F734 ntdll.dll:ntdll_RtlpNtEnumerateSubKey+2B07   
773FE040 ntdll.dll:ntdll_RtlUlonglongByteSwap+BA0     
769C14A7 kernel32.dll:kernel32_HeapFree+E             
67DA0164 msvcr100.dll:msvcr100_free+16                 
000F3FC9 fnInternetCallback+0xCBA                     
000F2BC9 StartAddress+0x1E4                           
000F29F2 StartAddress+0xD       
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: Siekmanski on August 15, 2014, 07:51:13 PM
Works on win 8.1 x64 (i had to shut down my virus killer first)
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: TouEnMasm on August 15, 2014, 10:37:06 PM
For Windows 8 , I suspect a bad link for the malloc function.
In my system (XP SP3)the change with CoTaskMemAlloc don't work.
The CoTaskMemAlloc is said by microsoft working the same way as malloc.
So i have made a version who made a dynamic link with the msvcrt to have malloc.
Perhaps he could solve the problem.
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: TouEnMasm on August 15, 2014, 11:39:36 PM

This one use the IMalloc interface and there is no nt.dll or msvcrt.dll loaded.
It's the one who must have the less problems.
IMalloc is granted to be thread safe by Microsoft.

Title: Re: Fast and secure seach on internet with google or other searcher
Post by: x64Core on August 16, 2014, 04:02:09 AM
dyna_search_http.zip and Immalloc_search_http.zip working on my Windows.
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: TouEnMasm on August 16, 2014, 06:44:43 AM
Thanks for reports.
In the first post,I have put the IMalloc version and added the source code
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: TouEnMasm on August 16, 2014, 04:31:03 PM

I have added a secure in case of the cogetmalloc failed :

.if ppvIMalloc != 0
       IMalloc Release
.endif

It is possible that it never failed,it is just in case of
Title: Re: Fast and secure seach on internet with google or other searcher
Post by: TouEnMasm on August 17, 2014, 03:34:11 PM
Added the "IMalloc HeapMinimize" function.This one unfragment the memory.
           It is needed after a certain number of  new search (3 Unknown error inside the dll).
The   background of the links change when they are used.
Title: Re: Fast and secure search on internet with google or other searcher
Post by: TouEnMasm on August 21, 2014, 03:12:37 AM
added an advanced search in the first post

The advanced web search filter the suggestions of the search engine
Google in this sample.
He delet also the link softonic (a pack of multiple Installations).

He allow you to test the URL in a MiniBrower.
It is not a powerfull browser.
He can take time and failed to execute script.
You can quit it easily (he is in a thread).
This allow you to browse further links faster.
He create a file with the content of the page (fichier.htm)
Let the two programs in the same directory
Title: Re: Fast and secure search on internet with google or other searcher
Post by: TouEnMasm on August 24, 2014, 05:57:56 PM

Changed the browser in the advanced search.
This one seems enough fast and not enought powerfull to view advertise and publicity.
Tested in XP SP3
Title: Re: Fast and secure search on internet with google or other searcher
Post by: TouEnMasm on August 26, 2014, 04:44:28 PM

Added the IOleCommandTarget to the minibrowser.
The Messagebox "failed to execute a script" are not shown.
This work if you allow the debugging of scripts in the Internet properties (advanced)
Title: Re: Fast and secure search on internet with google or other searcher
Post by: TouEnMasm on October 24, 2015, 07:27:49 PM

made an update of advanced_search_http.zip
Added a list (exclude.txt) who allow exclusion of url.