some fixes

This commit is contained in:
Miroslav Stampar 2010-02-20 22:31:54 +00:00
parent 3c34066d19
commit 0debc95ad4

View File

@ -117,6 +117,8 @@ class Web:
query = agent.postfixQuery(query) query = agent.postfixQuery(query)
payload = agent.payload(newValue=query) payload = agent.payload(newValue=query)
page = Request.queryPage(payload) page = Request.queryPage(payload)
import pdb
pdb.set_trace()
return page return page
def webInit(self): def webInit(self):
@ -197,17 +199,16 @@ class Web:
infoMsg += "on '%s'" % directory infoMsg += "on '%s'" % directory
logger.info(infoMsg) logger.info(infoMsg)
if kb.os == "Windows": if not self.__webFileStreamUpload(backdoorStream, backdoorName, posixToNtSlashes(directory) if kb.os == "Windows" else directory):
directory = posixToNtSlashes(directory) warnMsg = "backdoor hasn't been successfully uploaded "
warnMsg += "with uploader probably because of permission "
if not self.__webFileStreamUpload(backdoorStream, backdoorName, directory): warnMsg += "issues."
message = "backdoor hasn't been successfully uploaded " logger.warn(warnMsg)
message += "with uploader probably because of permission " message = "do you want to try the same method used "
message += "issues. do you want to try the same method used "
message += "for uploader? [y/N] " message += "for uploader? [y/N] "
getOutput = readInput(message, default="N") getOutput = readInput(message, default="N")
if getOutput in ("y", "Y"): if getOutput in ("y", "Y"):
self.__webFileInject(self, backdoorContent, backdoorName, directory) self.__webFileInject(backdoorContent, backdoorName, directory)
else: else:
continue continue