Commit 60499e7e authored by fimap.dev's avatar fimap.dev
Browse files

Fixed RFI-Tester bug. Thanks to Marcin Seweryn for reporting it!

parent 1249c22b
......@@ -356,37 +356,38 @@ class codeinjector(baseClass):
print "Testing language %s..." %(langName)
c, r = langObj.generateQuiz()
if (settings["dynamic_rfi"]["mode"] == "local"):
print "Testing Local->RFI configuration...",
print "Testing Local->RFI configuration..."
code = self.executeRFI(settings["dynamic_rfi"]["local"]["http_map"], "", "", c)
if (code == c):
print "Dynamic RFI works!"
for ext in langObj.getExtentions():
print "Testing %s interpreter..." %(ext),
settings["dynamic_rfi"]["ftp"]["ftp_path"] = settings["dynamic_rfi"]["local"]["local_path"] + ext
print "Testing %s interpreter..." %(ext)
#settings["dynamic_rfi"]["ftp"]["ftp_path"] = settings["dynamic_rfi"]["local"]["local_path"] + ext
code = self.executeRFI(settings["dynamic_rfi"]["local"]["http_map"] + ext, "", ext, c)
if (code == c):
print "Yep it's disabled."
elif (code == r):
if (code == r):
print "WARNING! Files which ends with %s will be interpreted! Fix that!"%(ext)
else:
pass # Seems to be not interpreted...
else:
print "Failed! Something went wrong..."
elif (settings["dynamic_rfi"]["mode"] == "ftp"):
print "Testing FTP->RFI configuration...",
print "Testing FTP->RFI configuration..."
code = self.executeRFI(settings["dynamic_rfi"]["ftp"]["http_map"], "", "", c)
if (code != None):
code = code.strip()
if (code == c):
print "Dynamic RFI works!"
for ext in langObj.getExtentions():
print "Testing %s interpreter..."%(ext),
settings["dynamic_rfi"]["ftp"]["ftp_path"] = settings["dynamic_rfi"]["ftp"]["ftp_path"] + ext
print "Testing %s interpreter..."%(ext)
#settings["dynamic_rfi"]["ftp"]["ftp_path"] = settings["dynamic_rfi"]["ftp"]["ftp_path"] + ext
code = self.executeRFI(settings["dynamic_rfi"]["ftp"]["http_map"] + ext, "", ext, c)
if (code == c):
print "Yep it's disabled."
elif (code == r):
if (code == r):
print "WARNING! Files which ends with %s will be interpreted! Fix that!"%(ext)
else:
pass # Seems to be not interpreted...
else:
print "Failed! Something went wrong..."
......
......@@ -25,7 +25,7 @@ settings = {}
settings["dynamic_rfi"] = {}
settings["dynamic_rfi"]["mode"] = "off" # Set to "ftp" or "local" to use Dynamic_RFI. Set it to "off" to disable it and rely on settings["filesrmt"] files.
settings["dynamic_rfi"]["mode"] = "ftp" # Set to "ftp" or "local" to use Dynamic_RFI. Set it to "off" to disable it and rely on settings["filesrmt"] files.
###############
#!!!# WARNING #
......
......@@ -50,3 +50,6 @@ Jan Eschweiler <eschweiler [ATOM] aeyol.com>
Xavier Garcia <xavi.garcia [ATOM] gmail.com>
For developing the Metasploit binding and bringing valuable and good ideas and bugreports to fimap! Solid work man. Thanks!
Marcin Seweryn <marcin.seweryn [ATOM] yahoo.co.uk>
For reporting a bug.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment