New User? Need help? Click here to register for free! Registering removes the advertisements.

Computer Cops
image image image image image image image image
Donations
If you found this site helpful, please donate to help keep it online
Don't want to use PayPal? Try our physical address
image
Prime Choice
· Head Lines
· Advisories (All)
· Dnld of the Week!
· CCSP News Ltrs
· Find a Cure!

· Ian T's (AR 24)
· Marcia's (CO8)
· Bill G's (CO12)
· Paul's (AR 5)
· Robin's (AR 2)

· Ian T's Archive
· Marcia's Archive
· Bill G's Archive
· Paul's Archive
· Robin's Archive
image
Security Central
· Home
· Wireless
· Bookmarks
· CLSID
· Columbia
· Community
· Downloads
· Encyclopedia
· Feedback (send)
· Forums
· Gallery
· Giveaways
· HijackThis
· Journal
· Members List
· My Downloads
· PremChat
· Premium
· Private Messages
· Proxomitron
· Quizz
· RegChat
· Reviews
· Google Search
· Sections
· Software
· Statistics
· Stories Archive
· Submit News
· Surveys
· Top
· Topics
· Web Links
· Your Account
image
CCSP Toolkit
· Email Virus Scan
· UDP Port Scanner
· TCP Port Scanner
· Trojan TCP Scan
· Reveal Your IP
· Algorithms
· Whois
· nmap port scanner
· IPs Banned [?]
image
Survey
How much can you give to keep Computer Cops online?

$10 up to $25 per year?
$25 up to $50 per year?
$10 up to $25 per month?
$25 up to $50 per month?
More than $50 per year?
More than $50 per month?
One time only?
Other (please comment)



Results
Polls

Votes: 1180
Comments: 21
image
Translate
English German French
Italian Portuguese Spanish
Chinese Greek Russian
image
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin   Your Favorite ForumsFavForums 

Please help - Bounds not working
Goto page Previous  1, 2
 
Post new topic   Reply to topic       All -> FavForums -> Proxomitron General
View previous topic :: View next topic  
Author Message
z12

Sergeant
Sergeant



Joined: Jul 17, 2002
Posts: 135
Location: USA

PostPosted: Sat Mar 13, 2004 8:14 am    Post subject:
Reply with quote

For code Injection, let's say you want to inject some code before every TD tag:
Code:

Filter Name:TD Inject Test
Bounds Match:<td*>
Matching Expression:\0
Replacement Text:<MyCode>\0

would do the trick.

But now suppose you also have a filter that changes every TD tag that has a background color property.
Code:

Filter Name:Td color changer
Bounds Match:<td*>
Matching Expression:(*\sbgcolor=)\0(\w)\1\2
Replacement Text:\0"#4184BE"\2


If the filters are entered in the order shown, the "TD color changer" filter will never match. What's needed is multi match capability.

If "Allow for multiple matches" is checked on the "TD Inject Test", there's going to be trouble. Proxo will get caught in a endless matching loop.

If instead, "Allow for multiple matches" is checked on the "TD color changer", the "TD color changer" still won't match.

The solution would be to reverse the filter order and "check" the "Allow for multiple matches" for the "TD color changer".

This is just one example of code injection. Depending on what your trying to do, other solutions may be better.

Mike
Back to top
View users profile Send private message
SK12

Trooper
Trooper



Joined: Mar 08, 2004
Posts: 11
Location: USA

PostPosted: Mon Mar 15, 2004 6:49 am    Post subject:
Reply with quote

Thanks for advices, now I got some more learning and trying to do Smile
Back to top
View users profile Send private message
SK12

Trooper
Trooper



Joined: Mar 08, 2004
Posts: 11
Location: USA

PostPosted: Wed Mar 17, 2004 11:13 am    Post subject:
Reply with quote

I ran into new problems again. Now I am trying to prevent the filter from matching certain subpages and to match all the others. Like this:

Code:

URL Match: *.ess.fi*&(^(http://www.ess.fi/cgi-bin/uusinetlari/index.pl?osasto=74))&$TYPE(htm)

to not to match page with osasto=74 as its id.


But it won't work for some reason. Is there something missing in the syntax or does it have some errors?

EDIT: I got it working now. If anyone else is interested then, there was error in the syntax - it should have been like this:
Code:

*.ess.fi*&(^(www.ess.fi/cgi-bin/uusinetlari/index.pl?osasto=74))&$TYPE(htm)

without http://
Back to top
View users profile Send private message
SK12

Trooper
Trooper



Joined: Mar 08, 2004
Posts: 11
Location: USA

PostPosted: Fri Mar 19, 2004 9:57 am    Post subject:
Reply with quote

A new problem appeared. When I try to make the filter not to mach certain sub URL:s, it also doesnt match some others

Here is the URL match:
Code:

*.ess.fi*&(^(www.ess.fi/cgi-bin/uusinetlari/index.pl?(osasto=74|osasto=28|osasto=11)))&$TYPE(htm)


It should only rule out matching for the URL with osasto=11 (and 74 and 28 ), but it also doesn't match 111 and 110 any more. This seems very weird Confused Does it have something to do with the last asterisk in *.ess.fi* ?
Back to top
View users profile Send private message
z12

Sergeant
Sergeant



Joined: Jul 17, 2002
Posts: 135
Location: USA

PostPosted: Fri Mar 19, 2004 5:25 pm    Post subject:
Reply with quote

Hi Sven, the match issue your having with 110 and 111 is due to:

osato=11

since this will match any number begining with 11.

It would help to see an actual url that your having problems with, but try this:

osasto=(11|28|74)[^1-9]

Mike
Back to top
View users profile Send private message
SK12

Trooper
Trooper



Joined: Mar 08, 2004
Posts: 11
Location: USA

PostPosted: Sat Mar 20, 2004 2:38 am    Post subject:
Reply with quote

Mike, thanks! That was the problem - I put that one digit exclusion this way: [^0-9] to exclude 0,too. I am getting very close to getting the whole newspaper fixed Smile
Back to top
View users profile Send private message
Lepus

Trooper
Trooper



Joined: Mar 02, 2004
Posts: 15
Location: USA

PostPosted: Sat Mar 20, 2004 3:25 am    Post subject:
Reply with quote

You can also try a numeric match like so....

osasto=([#11]|[#28]|[#74])


since it parses the full number it won't consider "11" the same as "111"
Back to top
View users profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> Proxomitron General All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.8a © 2001 phpBB Group

Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Version 2.2 by Paul Laudanski © 2003-2004 Computer Cops