version reply empty ?
version reply empty ?
-> [nick] VERSION
[nick VERSION reply]
version reply is empty ? what is regex
[nick VERSION reply]
version reply is empty ? what is regex
Please take a look at http://forums.unrealircd.com/viewtopic.php?t=3203
It isn't possible using a spamfilter!
It isn't possible using a spamfilter!
In this case - it is possible.
There is a difference between no version reply and an empty version reply. Notice that a version string IS in fact being sent back - it simply appears to contain nothing.
(I say appears to because it could very easily consist of whitespace. Or it could use color codes to make the version text the same color as your bg color. The regex considers only the spaces-only situation. Colors can't be checked for in regexes since they get stripped.)
-or-
/spamfilter + n gline - Empty_version_string. ^\x01VERSION \s*\x01$
There is a difference between no version reply and an empty version reply. Notice that a version string IS in fact being sent back - it simply appears to contain nothing.
(I say appears to because it could very easily consist of whitespace. Or it could use color codes to make the version text the same color as your bg color. The regex considers only the spaces-only situation. Colors can't be checked for in regexes since they get stripped.)
Code: Select all
spamfilter {
regex "^\\x01VERSION \\s*\\x01$";
target private-notice; // CTCP replies are sent via NOTICE.
action kline;
reason "Empty version string.";
};
/spamfilter + n gline - Empty_version_string. ^\x01VERSION \s*\x01$
= noaquanight wrote:In this case - it is possible.
There is a difference between no version reply and an empty version reply. Notice that a version string IS in fact being sent back - it simply appears to contain nothing.
(I say appears to because it could very easily consist of whitespace. Or it could use color codes to make the version text the same color as your bg color. The regex considers only the spaces-only situation. Colors can't be checked for in regexes since they get stripped.)
-or-Code: Select all
spamfilter { regex "^\\x01VERSION \\s*\\x01$"; target private-notice; // CTCP replies are sent via NOTICE. action kline; reason "Empty version string."; };
/spamfilter + n gline - Empty_version_string. ^\x01VERSION \s*\x01$
what is regex?
-
- Posts: 17
- Joined: Fri Apr 01, 2005 1:31 am
- Contact:
Anonymous wrote:what is regex?
--from http://en.wikipedia.org/wiki/RegexWikipedia wrote:A regular expression (abbreviated as regexp or regex, with plural forms regexps, regexes, or regexen) is a string that describes or matches a set of strings, according to certain syntax rules.
Regex is like a way more powerful version of wildcards. It allows you to do text matching with a good deal of accuracy and selection. Pretty awesome.
-
- Posts: 17
- Joined: Fri Apr 01, 2005 1:31 am
- Contact:
in server send /ctcp nick version
good pozitive
but!!!!
nick connect server negative? why?
help me pleas?
Code: Select all
spamfilter {
regex "\x1VERSION";
target private-notice;
action kill;
reason "exit.";
};
but!!!!
Code: Select all
* Connecting to irc.xxxx.com (6666)
-
-irc.xxxx.com- *** Couldn't resolve your hostname; using your IP address instead
-
[IRC VERSION]
-
Welcome to the xxxx IRC Network
help me pleas?
ircd edit pozitiv
spamfilter negativ
WHY?
Code: Select all
code removed
WHY?
Code: Select all
in server send /ctcp nick version
Code:
spamfilter {
regex "\x1VERSION";
target private-notice;
action kill;
reason "exit.";
};
good pozitive
but!!!!
Code:
* Connecting to irc.xxxx.com (6666)
-
-irc.xxxx.com- *** Couldn't resolve your hostname; using your IP address instead
-
[IRC VERSION]
-
Welcome to the xxxx IRC Network
nick connect server negative? why?
akin, we don't support modifying the source code.
http://www.vulnscan.org/UnrealIrcd/faq/#40
Topic locked.
http://www.vulnscan.org/UnrealIrcd/faq/#40
Topic locked.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
- Coleman Hawkins