commit 875cd12be9e73b622c305d782e1fc9353e0ca947
Author: spesk1 <spesk@pm.me>
Date: Wed Jun 26 18:18:59 2019 -0400
Just made the knocker report what it's doing for ease of use
diff --git a/lib/SimplyGit/Git.pm b/lib/SimplyGit/Git.pm
index 5896e06..f435fb0 100644
--- a/lib/SimplyGit/Git.pm
+++ b/lib/SimplyGit/Git.pm
@@ -21,6 +21,7 @@ sub knocker($$$) {
my $logger = shift;
my $nmapCmd = findBin("nmap",$logger);
foreach my $port (@$portRef) {
+ print "Knocking at $port\r";
shellex("$nmapCmd -Pn --host_timeout 201 --max-retries 0 -p $port $target > /dev/null",$logger);
}
diff --git a/sg b/sg
index 9402da6..904ec04 100755
--- a/sg
+++ b/sg
@@ -252,7 +252,6 @@ if ( defined $sgConfig{'UserWarn'} && -d ".git" ) {
sub knock() {
if ( defined $sgConfig{'Knock'} && ( defined $args{'knock'} || defined $args{'knock-clone'} || defined $args{'knock-pull'} ) ) {
- print "Knocking...\n";
knocker($sgConfig{'knock.target'},$sgConfig{'ports'},$logger);
}
}