Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.80.147
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libregexp-assemble-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
hostmatch
[ DIR ]
drwxr-xr-x
assemble.gz
2.17
KB
-rw-r--r--
debugging
2.82
KB
-rwxr-xr-x
failure.01.pl
1.56
KB
-rw-r--r--
fee
286
B
-rwxr-xr-x
file.1
20
B
-rw-r--r--
file.2
21
B
-rw-r--r--
file.3
16
B
-rw-r--r--
file.4
19
B
-rw-r--r--
ircwatcher
1.15
KB
-rwxr-xr-x
naive
1.43
KB
-rwxr-xr-x
roman
612
B
-rwxr-xr-x
stress-test.pl
2.74
KB
-rwxr-xr-x
tld
610
B
-rwxr-xr-x
track-5.10
310
B
-rwxr-xr-x
unquotemeta
394
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ircwatcher
#!/usr/bin/perl -w # # ircwatcher - watch an IRC stream and do things when # interesting things occur # # This script demonstrates the use of dispatch table. One # regular expression matching everthing, and then handing # off the captured submatches to a callback. # # Try changing the read of STDIN to DATA for a quick demo. # # Acknowledgements to David "Sniper" Rigaudi�re for the # idea. # # Copyright (C) David Landgren 2005 use strict; use Regexp::Assemble; my %dispatch = ( '^\*\*\* (\S+) joined channel (\S+)$' => \&joined, '^\*\*\* (\S+) left channel (\S+) reason (.*)$' => \&left, '^q$' => sub { exit }, ); my $re = Regexp::Assemble->new ->track(1) ->add(keys %dispatch); sub joined { my ($who, $channel) = @_; print "$who joined $channel\n"; } sub left { my ($who, $channel, $reason) = @_; print "$who left $channel saying $reason\n"; } while( <STDIN> ) { chomp; if ($re->match($_)) { $dispatch{$re->matched}->($re->capture); } else { print "ignored <$_>\n"; } } __DATA__ *** david joined channel foo hello *** david left channel bar reason that's all folks q
Close