diff --git a/Payloads.py b/Payloads.py index 5311d97..d18eb01 100644 --- a/Payloads.py +++ b/Payloads.py @@ -500,52 +500,18 @@ End Sub content = f.read() ccode = content.replace("#REPLACEME32#",x86base64) ccode = ccode.replace("#REPLACEME64#",x64base64) - filename = "%scsc.cs" % (self.BaseDirectory) + filename = "%s%scsc.cs" % (self.BaseDirectory,name) output_file = open(filename, 'w') output_file.write(ccode) output_file.close() self.QuickstartLog( "" ) self.QuickstartLog( "CSC file written to: %s%scsc.cs" % (self.BaseDirectory,name) ) - + with open("%smsbuild.xml" % FilesDirectory, 'rb') as f: + msbuild = f.read() projname = randomuri() - - msbuild=""" - - <%s /> - - - - - - - - - -""" % (projname,projname,projname,projname,projname,x86base64,x64base64) + msbuild = msbuild.replace("#REPLACEME32#",x86base64) + msbuild = msbuild.replace("#REPLACEME64#",x64base64) + msbuild = msbuild.replace("#REPLACEMERANDSTRING#",projname) self.QuickstartLog( "Msbuild file written to: %s%smsbuild.xml" % (self.BaseDirectory,name) ) filename = "%s%smsbuild.xml" % (self.BaseDirectory,name) output_file = open(filename, 'w')