summaryrefslogtreecommitdiff
path: root/other/ssharp/sharpterms.pl
diff options
context:
space:
mode:
authorSkyperTHC2026-03-03 06:28:55 +0000
committerSkyperTHC2026-03-03 06:28:55 +0000
commit5d3573ef7a109ee70416fe94db098fe6a769a798 (patch)
treedc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/ssharp/sharpterms.pl
parentc6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff)
packetstorm sync
Diffstat (limited to 'other/ssharp/sharpterms.pl')
-rw-r--r--other/ssharp/sharpterms.pl22
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
5my %xterms = ();
6
7for (;;) {
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