473,416 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Text in ASP Scripts Hidden From Windows Search

Not sure where to post this...

Found some interesting behavior in Windows Search (Start =Search =All
files and folders =search for "A word or phrase in the file:"). This
applies to XP and maybe other Windows flavors.

Procedure:
1. Create a simple text file named test.txt.
2. Open the text file in a text editor and add a simple test word such as
"blah" (not quotes).
3. Save the text file.
4. Using Windows search, attempt to locate this new text file by searching
for files containing the word "blah" (no quotes). Recommend limiting search
to folder that contains the new text file and deselect search subfolders
option.
5. The file should be found.
6. Change the file extension of the text file from .txt to .asp.
7. Redo the search.
8. The file should be found.
9. Reopen the text file (now named test.asp) in a text editor.
10. Change the string "blah" to "<% blah %>" (without quotes). [The brackets
delineate script in asp files.]
11. Save the changes.
12 Redo the search.
13. The file is NOT found.

Interesting. There must be some security concern related to .asp files with
embedded scripts relative to Windows Search. I wonder if there is a KB
article or something about to this. I have not been able to find anything.

Can anyone shed any light on this behavior?

Does anyone know of a good tool to find files containing a specific
string/pattern? Cygwin and some of the Unix tools works, but a GUI tool like
Windows Search would be preferrable.

Thanks.
Jun 27 '08 #1
3 3534
Perrinwolf wrote:
Not sure where to post this...

Found some interesting behavior in Windows Search (Start =Search =>
All files and folders =search for "A word or phrase in the file:").
This applies to XP and maybe other Windows flavors.
Interesting problem but in the likely case that nobody here can answer your
question, you might try posting it in an XP newsgroup.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jun 27 '08 #2
Perrinwolf wrote:
Found some interesting behavior in Windows Search (Start =Search =>
All files and folders =search for "A word or phrase in the file:").
This applies to XP and maybe other Windows flavors...

...Interesting. There must be some security concern related to .asp
files with embedded scripts relative to Windows Search. I wonder if
there is a KB article or something about to this. I have not been
able to find anything.
Does this help?
http://support.microsoft.com/default...b;en-us;309173

Specifically, I would try Method 2.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Jun 27 '08 #3
Bob,

Thank you for the reply. I will follow your suggestion and post this in one
of the XP groups. I had thought someone here in the asp.general group might
know something because it appears to only be a problem with .asp files - but
my testing hasn't been that extensive so I could be wrong. If I receive an
answer I will update this thread.

Thanks.

"Bob Barrows [MVP]" wrote:
Perrinwolf wrote:
Not sure where to post this...

Found some interesting behavior in Windows Search (Start =Search =>
All files and folders =search for "A word or phrase in the file:").
This applies to XP and maybe other Windows flavors.
Interesting problem but in the likely case that nobody here can answer your
question, you might try posting it in an XP newsgroup.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tmb | last post by:
I need to search a folder & sub-folders for key words in ASP files... I can open the files with Notepad and see the text string there... But when I try to navigate to the folder with Windows...
3
by: Ivan | last post by:
Hi, how to filter out non-digit chars when user writes text to System.Windows.Forms.TextBox? Thanks, Iavmn
2
by: clintonG | last post by:
I only ask this here because it so happens that Windows Search requires filters to enable it to be used to find text in file types such as .aspx, ..cs and so on and is supposed to support doing so...
0
by: shinichi81 | last post by:
1. I create a background Windows Explorer (by using CreateProcess() function with szCmdline = "explorer.exe /select,C:\" and hidden option). After that, from Desktop, right click "My Computer"...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
1
by: mthuywin | last post by:
Hi guys I would like to develop an application that tracks all the text input in windows (including those in MS Office apps and in IM clients) and translates them into another language. I plan...
1
by: pramodkh | last post by:
Dear All, I am writting a PERL script in windows to test some test cases. The test result is captured both in command prompt and in the log file. But when the result is displayed on a windows...
0
by: samvb | last post by:
I have just finished doing this window which searches for images and builds thumbnails. It searchs good and displays thumbnails just fine. I have vscroll and it scrolls ok. The images are displayed...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.