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 7302309..ff672ec 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 43d6976..58866c5 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 ebed9e2..06a86a0 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 c2bd122..c8bdbe8 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 527f20c..98c6f64 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 f62e154..8528b5c 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 818a166..59835c1 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 ccd2b2c..092f2d6 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 0feaa89..50bf9c5 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