Author Topic: Arne: Proxomitron FAQ question...  (Read 2658 times)

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Arne: Proxomitron FAQ question...
« on: June 13, 2002, 11:19:15 PM »
In ID #45, you have written the following:
quote:
One can check for a specific byte values. Just enter the value within an URL style hex escape as in... "[%2a]" for a single char or "[%20-%41]" for a range of values.
Could you clarify?

Does this mean I could check for a range of ANY ascii character this way?

 
 

altosax

  • Sr. Member
  • ****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Arne: Proxomitron FAQ question...
« Reply #1 on: June 13, 2002, 11:52:00 PM »
hi my friend,
let me answer you even i'm not arne ;)

you can check this way for any ascii character wrote in hex form. so %70 will not match p but will match %70 that is the hex form of p. this could be useful to match obscured url. read this page for more information:

http://www.pc-help.org/obscure.htm

hope this helps,
altosax.

 
 

Scott Lemmon

  • Full Member
  • ***
  • Posts: 103
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://proxomitron.cjb.net/
    • Email
Arne: Proxomitron FAQ question...
« Reply #2 on: June 14, 2002, 12:53:12 AM »
Actually it does match "p"

For example, "[%00-%ff]" could be a slow way to do "?". It can be used to check for non-displayable characters. You can check for the string "%70" by just using "%70".  

Regards,

Scott



Edited by - Scott Lemmon on 14 Jun 2002  01:55:28
 

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Arne: Proxomitron FAQ question...
« Reply #3 on: June 14, 2002, 02:08:32 AM »
So [%00-%ff]+{2,7}  will check for any 2 to 7 ASCII characters? Sweet

Had to painstakenly rewrite some filters because I couldn't combine [0-9] and [a-z] in one command... now I can use this

 
 

altosax

  • Sr. Member
  • ****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Arne: Proxomitron FAQ question...
« Reply #4 on: June 14, 2002, 03:11:56 PM »
hi scott,
thanks for your clear explanation, as usual.
so the use of the hex format for char is more powerful of what i thinked.
well, another little bit of "proxo" knowledge.

i have this new question: can it be used only to match URLs?

regards,
altosax.



Edited by - altosax on 14 Jun 2002  16:16:41
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Arne: Proxomitron FAQ question...
« Reply #5 on: June 20, 2002, 01:23:48 AM »
It works in normal matches as well, but unfortunately it's not case sensitive. So

<[%43][%45][%4e][%54][%45][%52]>

matches

<CENTER> and <center>

(was looking for an ezboard filter match)

sidki


 
 

Scott Lemmon

  • Full Member
  • ***
  • Posts: 103
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://proxomitron.cjb.net/
    • Email
Arne: Proxomitron FAQ question...
« Reply #6 on: June 20, 2002, 02:03:15 AM »
Unfortunately there's not an easy way around the case insensitivity. Case is converted before it gets to the command.  I didn't want to add any "exception" code since every extra check in that part of the process has a major speed impact.

Jor: Proxomitron's brackets work just like standard regexp ones so [A-Z0-9]+ would match a run of any combination of a-z or 0-9.



 
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Arne: Proxomitron FAQ question...
« Reply #7 on: June 20, 2002, 02:26:42 AM »
Didn't think about that. Thanks for the clarification