From 45d06787281a955ec8f91986ab79aef1b001cda2 Mon Sep 17 00:00:00 2001 From: Roy Date: Thu, 30 Mar 2023 00:58:21 +0200 Subject: [PATCH] Iets meer abstractie. --- senicup.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/senicup.pl b/senicup.pl index e54e262..10e8793 100755 --- a/senicup.pl +++ b/senicup.pl @@ -27,7 +27,7 @@ chomp($continue_from = $ARGV[0]); if ($continue_from !~ m/^[0-9]+([.][0-9]+){3}$/) {die $!, "\"$continue_from\" is not a valid ipv4 address:" } else {($ii1, $ii2, $ii3, $ii4) = split /\./, $continue_from; print 'Continuing from ipv4 address ', $continue_from, "\n"}} else {print "\n\n"; foreach (0..4) {print 'Starting a new tcp/udp 80/443 ipv4 scan in ', (5-${_}), "s.\n"; sleep 1}; print 'Starting...', "\n"} my (%args, %args2, %hoa, @host); -$args2{'profile_dir'} = '/home/miami/.Mozilla3/Firefox/ud8j40yn.default/'; # Ghacks user.js is a good start. +$args2{'profile_dir'} = $ENV{'HOME'}.'/.Mozilla3/Firefox/ud8j40yn.default/'; # Ghacks user.js is a good start. my $profile = Selenium::Firefox::Profile->new(%args2); my $driver = Selenium::Firefox->new( firefox_profile => $profile,