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 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