On Tue, Jan 10, 2012 at 06:28:07PM -0800, Mark wrote:
> I'm not a search expert and I would be grateful for any help this list
> can offer.
> 
> I have a website that is infected with malware that was injected into
> javascript files. I'm trying to use BBedit to find and remove the
> offending code. The code contains some hexadecimal characters which
> can be found by searching a single page, but cannot be found doing a
> multi-file search. The multi-file search seems to bog down when the
> first hexadecimal character is fully used in the search. The offending
> code is 2204 characters on  one line, but for I think only the first
> few characters are needed to help me:
> Offending code: var _0x4470=["\x39\x3D\x31\x2E\x64\x28\x27
> Search that finds all instances: var _0x4470=["\x3
> Search that finds no instances: var _0x4470=["\x39

In the same way that the \x39 in the JavaScript is a representation of the
character 9, the \x39 in the search pattern matches the character 9.  To
match the literal sequence \x39, you need to escape the backslash in the
search: var _0x4470=["\\x39

Ronald

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to