From 50ee914ee4a6222291a5a39fb75b3052c35e1161 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Mon, 31 May 2021 15:27:37 +0800 Subject: [PATCH] Make Shell Scripts' Shebang more consistent and portable --- utils/ccs-injection.bash | 2 +- utils/checkcert.sh | 2 +- utils/docker-nginx.tls13-earlydata.start.sh | 2 +- utils/heartbleed.bash | 2 +- utils/hexstream2cipher.sh | 2 +- utils/hexstream2curves.sh | 2 +- utils/make-openssl111.sh | 2 +- utils/resume.sh | 2 +- utils/ticketbleed.bash | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/utils/ccs-injection.bash b/utils/ccs-injection.bash index 73023093..ff672ec0 100755 --- a/utils/ccs-injection.bash +++ b/utils/ccs-injection.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # POC bash socket implementation of CCS Injection vulnerability in OpenSSL (CVE-2014-0224), # see https://www.openssl.org/news/secadv_20140605.txt diff --git a/utils/checkcert.sh b/utils/checkcert.sh index 43d69761..58866c5b 100755 --- a/utils/checkcert.sh +++ b/utils/checkcert.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # on the command line: diff --git a/utils/docker-nginx.tls13-earlydata.start.sh b/utils/docker-nginx.tls13-earlydata.start.sh index ebed9e2c..06a86a06 100755 --- a/utils/docker-nginx.tls13-earlydata.start.sh +++ b/utils/docker-nginx.tls13-earlydata.start.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash image="rsnow/nginx" docker pull $image diff --git a/utils/heartbleed.bash b/utils/heartbleed.bash index c2bd1223..c8bdbe8d 100755 --- a/utils/heartbleed.bash +++ b/utils/heartbleed.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # POC bash socket implementation of heartbleed (CVE-2014-0160), see also http://heartbleed.com/ # Author: Dirk Wetter, GPLv2 see https://testssl.sh/LICENSE.txt diff --git a/utils/hexstream2cipher.sh b/utils/hexstream2cipher.sh index 527f20ce..98c6f648 100755 --- a/utils/hexstream2cipher.sh +++ b/utils/hexstream2cipher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash hs="$1" len=${#hs} diff --git a/utils/hexstream2curves.sh b/utils/hexstream2curves.sh index f62e154a..8528b5c0 100755 --- a/utils/hexstream2curves.sh +++ b/utils/hexstream2curves.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash hs="$1" len=${#hs} diff --git a/utils/make-openssl111.sh b/utils/make-openssl111.sh index 818a1664..59835c1a 100755 --- a/utils/make-openssl111.sh +++ b/utils/make-openssl111.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # vim:tw=90:ts=5:sw=5 # diff --git a/utils/resume.sh b/utils/resume.sh index ccd2b2c1..092f2d68 100755 --- a/utils/resume.sh +++ b/utils/resume.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # simple check for seesion resumption 1) by SID, 2) by tickets # Author: Dirk Wetter, GPLv2 see https://testssl.sh/LICENSE.txt diff --git a/utils/ticketbleed.bash b/utils/ticketbleed.bash index 0feaa897..50bf9c50 100755 --- a/utils/ticketbleed.bash +++ b/utils/ticketbleed.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Fast and reliable POC bash socket implementation of ticketbleed (CVE-2016-9244), see also http://ticketbleed.com/ # Author: Dirk Wetter, GPLv2 see https://testssl.sh/LICENSE.txt