diff options
Diffstat (limited to 'other/ssharp/sharpterms.pl')
| -rw-r--r-- | other/ssharp/sharpterms.pl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/other/ssharp/sharpterms.pl b/other/ssharp/sharpterms.pl new file mode 100644 index 0000000..8dccac5 --- /dev/null +++ b/other/ssharp/sharpterms.pl | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | # xterm popup daemon for ssharp (C) 2002 Stealth | ||
| 4 | |||
| 5 | my %xterms = (); | ||
| 6 | |||
| 7 | for (;;) { | ||
| 8 | opendir D, "/tmp" or die "$!"; | ||
| 9 | my @allfiles = readdir D; | ||
| 10 | closedir D; | ||
| 11 | @allfiles = grep /ssharp-/, @allfiles; | ||
| 12 | |||
| 13 | foreach (@allfiles) { | ||
| 14 | next if defined $xterms{$_}; | ||
| 15 | $xterms{$_} = 1; | ||
| 16 | # TAKE CARE: this is a security vulnerability (locally) | ||
| 17 | system("xterm -T $_ -e /usr/local/bin/mss-client /tmp/$_ &"); | ||
| 18 | sleep(1); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | |||
