From 798559fd2fe16a936f6f7b404bb24c07eff3a330 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Aug 2011 21:34:14 +0200 Subject: initial commit --- filebitch/disconnect_narf.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 filebitch/disconnect_narf.pl (limited to 'filebitch/disconnect_narf.pl') diff --git a/filebitch/disconnect_narf.pl b/filebitch/disconnect_narf.pl new file mode 100755 index 00000000..20fc3e50 --- /dev/null +++ b/filebitch/disconnect_narf.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl +#Please add the following to your proftpd config file +#ExtendedLog /var/log/proftpd/ftp_auth.log AUTH auth +#and +# +# ExecEngine on +# ExecOnConnect "/krebs/filebitch/connect_narf.pl" +# + +#$ip = system("tail -n 1 /var/log/proftpd/ftp_auth.log"); +#I'm very sorry for this regex, but i only wanted it to get _real_ IPv4 Adresses of the log file, not any kind of timestamp bullshit +#$ip =~ s/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b//g; +#getting some guys sitting next to the Server pissed :) +my $ip = "USER"; +system("beep -l 100 -f 1000 -n -r 3 -d 10 -l 50 -f 3000"); -- cgit v1.2.3 From e3551b11b5f135f89cb7535df95ba2a6e190e24c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Aug 2011 21:35:42 +0200 Subject: fixed some shit --- filebitch/disconnect_narf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filebitch/disconnect_narf.pl') diff --git a/filebitch/disconnect_narf.pl b/filebitch/disconnect_narf.pl index 20fc3e50..fdda6bac 100755 --- a/filebitch/disconnect_narf.pl +++ b/filebitch/disconnect_narf.pl @@ -4,7 +4,7 @@ #and # # ExecEngine on -# ExecOnConnect "/krebs/filebitch/connect_narf.pl" +# ExecOnExit "/krebs/filebitch/disconnect_narf.pl" # #$ip = system("tail -n 1 /var/log/proftpd/ftp_auth.log"); -- cgit v1.2.3 From 42e679dc0441b5dfc777444d00fb231d8741bcb3 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 10 Aug 2011 21:38:57 +0200 Subject: filebitch/disconnect_narf: 2000, 1000 is the sad sound --- filebitch/disconnect_narf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filebitch/disconnect_narf.pl') diff --git a/filebitch/disconnect_narf.pl b/filebitch/disconnect_narf.pl index 20fc3e50..0a1deabb 100755 --- a/filebitch/disconnect_narf.pl +++ b/filebitch/disconnect_narf.pl @@ -12,4 +12,4 @@ #$ip =~ s/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b//g; #getting some guys sitting next to the Server pissed :) my $ip = "USER"; -system("beep -l 100 -f 1000 -n -r 3 -d 10 -l 50 -f 3000"); +system("beep -l 42 -f 2000 -D 42 -n -l 42 -f 1000"); -- cgit v1.2.3 From ff4808b6b9a7ab1dc6711c01e3c385eda78a241d Mon Sep 17 00:00:00 2001 From: Momo Date: Thu, 18 Aug 2011 04:17:17 +0200 Subject: Fixed the READMES and disconnect_narf.pl --- filebitch/disconnect_narf.pl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'filebitch/disconnect_narf.pl') diff --git a/filebitch/disconnect_narf.pl b/filebitch/disconnect_narf.pl index af7bea6c..77fbf743 100755 --- a/filebitch/disconnect_narf.pl +++ b/filebitch/disconnect_narf.pl @@ -1,15 +1,16 @@ #!/usr/bin/perl #Please add the following to your proftpd config file -#ExtendedLog /var/log/proftpd/ftp_auth.log AUTH auth -#and # # ExecEngine on -# ExecOnExit "/krebs/filebitch/disconnect_narf.pl" +# ExecOnExit "/krebs/filebitch/connect_narf.pli %a" # -#$ip = system("tail -n 1 /var/log/proftpd/ftp_auth.log"); +$ip = $ARGV[0]; #I'm very sorry for this regex, but i only wanted it to get _real_ IPv4 Adresses of the log file, not any kind of timestamp bullshit -#$ip =~ s/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b//g; +$ip =~ s/\b(25[0-5]|2[0-4][0-9]|[1]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[1]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[1]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[1]?[0-9][0-9]?)\b//g; #getting some guys sitting next to the Server pissed :) -my $ip = "USER"; -system("beep -l 42 -f 2000 -D 42 -n -l 42 -f 1000"); +system("morse -l 42 -f 2000 $ip"); +system("morse -l 42 -f 3000 \"disconnected\""); + +# Uncomment the beep below to play the enterprise connect sound +# system("beep -l 42 -f 2000 -D 42 -n -l 42 -f 3337"); -- cgit v1.2.3