diff --git a/C2Server.py b/C2Server.py index 27ca1c8..17de0eb 100644 --- a/C2Server.py +++ b/C2Server.py @@ -348,7 +348,7 @@ if __name__ == '__main__': rewriteFile = "%s/rewrite-rules.txt" % directory print "Creating Rewrite Rules in: " + rewriteFile print "" - rewriteHeader=["RewriteEngine On", "SSLProxyEngine On", "SSLProxyCheckPeerCN Off", "SSLProxyVerify none", "SSLProxyCheckPeerName off", "SSLProxyCheckPeerExpire off","Define 10.0.0.1 # change ip here", "Define SharpSocks 10.0.0.1 # change ip here"] + rewriteHeader=["RewriteEngine On", "SSLProxyEngine On", "SSLProxyCheckPeerCN Off", "SSLProxyVerify none", "SSLProxyCheckPeerName off", "SSLProxyCheckPeerExpire off","# Change IPs to point at C2 infrastructure below","Define PoshC2 10.0.0.1", "Define SharpSocks 10.0.0.1"] rewriteFileContents = rewriteHeader + urlConfig.fetchRewriteRules() + urlConfig.fetchSocksRewriteRules() with open(rewriteFile,'w') as outFile: for line in rewriteFileContents: