diff --git a/archive/jsonController.sh b/archive/jsonController.sh index ee990b2e..6d046ee3 100644 --- a/archive/jsonController.sh +++ b/archive/jsonController.sh @@ -138,7 +138,7 @@ function getBucketByBucketKey(){ function stringfy(){ local data="$1" - local string=$(echo "$data" | jq '.|tostring' |tr -d '\' | sed 's/"{/{/' | sed 's/}"/}/' 2>/dev/null) + local string=$(echo "$data" | jq '.|tostring' |tr -d '\' 2>/dev/null | sed 's/"{/{/' | sed 's/}"/}/') echo $string } diff --git a/src/aws/dependencies/jsonOperations.sh b/src/aws/dependencies/jsonOperations.sh index ec7c06af..0d869f3e 100644 --- a/src/aws/dependencies/jsonOperations.sh +++ b/src/aws/dependencies/jsonOperations.sh @@ -109,7 +109,7 @@ function merge(){ function stringfy(){ local data="$1" - local string=$(echo "$data" | jq '.|tostring' |tr -d '\' | sed 's/"{/{/' | sed 's/}"/}/' 2>/dev/null) + local string=$(echo "$data" | jq '.|tostring' |tr -d '\' 2>/dev/null | sed 's/"{/{/' | sed 's/}"/}/') echo $string } diff --git a/src/aws/dependencies/reverseShell.sh b/src/aws/dependencies/reverseShell.sh index 471626c4..e0d97b37 100755 --- a/src/aws/dependencies/reverseShell.sh +++ b/src/aws/dependencies/reverseShell.sh @@ -81,6 +81,7 @@ function closeSSHTunnel(){ function establishSSHConnectionBeforeEstablishSSHTunnel(){ local instanceIp=$1 ssh -i /root/.ssh/$sshkey -o StrictHostKeyChecking=no root@$instanceIp + echo "Established SSH connection to $instanceIp" sleep 2 }