mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-22 16:23:57 +01:00
20 lines
655 B
Diff
20 lines
655 B
Diff
--- dotdotpwn.pl.orig 2016-11-10 05:33:48.000000000 +0800
|
|
+++ dotdotpwn.pl 2017-04-22 12:44:51.000000000 +0800
|
|
@@ -217,10 +217,15 @@
|
|
|
|
our $report;
|
|
|
|
+my $home_prefix = glob('~/.dotdotpwn');
|
|
+unless(-e $home_prefix or mkdir $home_prefix) {
|
|
+ die "Unable to create $home_prefix\n";
|
|
+}
|
|
+
|
|
if($opt_r) {
|
|
- $report = "Reports/" . $opt_r;
|
|
+ $report = $home_prefix . "/" . $opt_r;
|
|
} else {
|
|
- $report = sprintf "Reports/%s_%02d-%02d-%d_%02d-%02d.txt", $host, $mon+1, $mday, $year+1900, $hour, $min;
|
|
+ $report = sprintf "%s/%s_%02d-%02d-%d_%02d-%02d.txt", $home_prefix, $host, $mon+1, $mday, $year+1900, $hour, $min;
|
|
}
|
|
|
|
print "[+] Report name: $report\n";
|