diff options
| author | SkyperTHC | 2026-03-03 06:28:55 +0000 |
|---|---|---|
| committer | SkyperTHC | 2026-03-03 06:28:55 +0000 |
| commit | 5d3573ef7a109ee70416fe94db098fe6a769a798 (patch) | |
| tree | dc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/ssharp/sharpterms.pl | |
| parent | c6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff) | |
packetstorm sync
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 | |||
