All of lore.kernel.org
 help / color / mirror / Atom feed
* string match -> new option
@ 2003-03-01  1:53 macadanet
  2003-03-01  6:39 ` Patrick Schaaf
  0 siblings, 1 reply; 5+ messages in thread
From: macadanet @ 2003-03-01  1:53 UTC (permalink / raw)
  To: lista de correo netfilter

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1333 bytes --]


Hi.

I'm sorry for my english

I modificated ipt_string.c and I created a new patch. This patch
acepts regular expresions.

For example:

iptables -A INPUT -m string --string '"GET"[0-9]"HTTP"' -j LOG

If some package includes the string: GET ???????8????????? HTTP
the system will write in log file.

It's a good idea, for firewalls between WAN network (Internet) and LAN
network where exists some IIS server (Internet Information Servers).
This server are great bugs when received bad requests like:

"http://www.servidor.com/msadc/..%c0%af../..%c0%af../..%c0%af../winnt/system32/cmd.exe?/c+dir+c:\"
attack with Unicodes


GET http://<ipaddress>/default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN%u9090%u6858%ucbd3%u7
801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%
u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a HTTP/1.0
Red Code Virus.

this solution can be apply to diferents kind servers.


What do people think? Is a good idea?


Thanks for read this (my) email.


___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito 
en http://moviles.yahoo.es

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-02 11:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-01  1:53 string match -> new option macadanet
2003-03-01  6:39 ` Patrick Schaaf
2003-03-01 15:47   ` Michael Rash
2003-03-02  9:59   ` Harald Welte
2003-03-02 11:36     ` Patrick Schaaf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.