From 1f4930aa86b9bc139b7b644a0a721a0f99d602ef Mon Sep 17 00:00:00 2001 From: chryzsh Date: Mon, 18 Jan 2021 15:26:29 +0100 Subject: [PATCH 1/2] tried to fix certbot deprecation --- C2concealer/generate-cert.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/C2concealer/generate-cert.sh b/C2concealer/generate-cert.sh index f03ec79..6aa3fea 100755 --- a/C2concealer/generate-cert.sh +++ b/C2concealer/generate-cert.sh @@ -97,12 +97,13 @@ func_apache_check(){ } func_install_letsencrypt(){ - echo '[Starting] cloning into letsencrypt!' - git clone https://github.com/certbot/certbot /opt/letsencrypt + echo '[Starting] snap install certbot' + snap install --classic certbot + echo '[Starting] link certbot' + sudo ln -s /snap/bin/certbot /usr/bin/certbot echo '[Success] letsencrypt is built!' - cd /opt/letsencrypt echo '[Starting] to build letsencrypt cert!' - ./letsencrypt-auto --apache -d $domain -n --register-unsafely-without-email --agree-tos + certbot --apache -d $domain -n --register-unsafely-without-email --agree-tos if [ -e /etc/letsencrypt/live/$domain/fullchain.pem ]; then echo '[Success] letsencrypt certs are built!' service apache2 stop From e3c4f5b7408ed17ead7ed8d3fb5c04f07ea6b14d Mon Sep 17 00:00:00 2001 From: chryzsh Date: Wed, 17 Mar 2021 11:16:01 +0100 Subject: [PATCH 2/2] fixed dns options --- C2concealer/components/dnsoptions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/C2concealer/components/dnsoptions.py b/C2concealer/components/dnsoptions.py index 8f409a9..fdd5714 100644 --- a/C2concealer/components/dnsoptions.py +++ b/C2concealer/components/dnsoptions.py @@ -75,7 +75,8 @@ def printify(self): ''' profileString = '' + profileString += 'dns-beacon {\n' for attr, value in self.__dict__.items(): - profileString += 'set ' + attr + ' "' + value + '";\n' - profileString += '\n' - return profileString \ No newline at end of file + profileString += '\tset ' + attr + ' "' + value + '";\n' + profileString += '}\n\n' + return profileString