Commit 2ad98e13 authored by's avatar

Fixed bug #31.

parent c31cca81
...@@ -121,8 +121,8 @@ class baseTools(object): ...@@ -121,8 +121,8 @@ class baseTools(object):
return False return False
def suggest_update(self, orginal_file, replacement_file): def suggest_update(self, orginal_file, replacement_file):
print orginal_file #print orginal_file
print replacement_file #print replacement_file
inp = raw_input("Do you want to update? [y/N]") inp = raw_input("Do you want to update? [y/N]")
if (inp == "Y" or inp == "y"): if (inp == "Y" or inp == "y"):
print "Updating..." print "Updating..."
...@@ -62,3 +62,6 @@ Fernando G.G. Ortiz <death_squad3 [ATOM]> ...@@ -62,3 +62,6 @@ Fernando G.G. Ortiz <death_squad3 [ATOM]>
cmendozabenitez <> cmendozabenitez <>
For reporting a bug. For reporting a bug.
Gilak Banget <>
For reporting a bug.
...@@ -467,6 +467,22 @@ if __name__ == "__main__": ...@@ -467,6 +467,22 @@ if __name__ == "__main__":
injector = codeinjector(config) injector = codeinjector(config)
injector.testRFI() injector.testRFI()
sys.exit(0) sys.exit(0)
# Test RFI settings stupidly.
from config import settings
if settings["dynamic_rfi"]["mode"] == "local":
if settings["dynamic_rfi"]["local"]["local_path"] == None or settings["dynamic_rfi"]["local"]["http_map"] == None:
print "Invalid Dynamic_RFI config!"
print "local_path and\\or http_map is not defined for local mode!"
print "Fix that in"
elif settings["dynamic_rfi"]["mode"] == "local":
if settings["dynamic_rfi"]["ftp"]["ftp_host"] == None or settings["dynamic_rfi"]["ftp"]["ftp_user"] == None or settings["dynamic_rfi"]["ftp"]["ftp_pass"] == None or settings["dynamic_rfi"]["ftp"]["ftp_path"] == None or settings["dynamic_rfi"]["ftp"]["http_map"] == None:
print "Invalid Dynamic_RFI config!"
print "One of your FTP config values is missing!"
print "Fix that in"
if (config["p_proxy"] != None): if (config["p_proxy"] != None):
print "Using HTTP-Proxy '%s'." %(config["p_proxy"]) print "Using HTTP-Proxy '%s'." %(config["p_proxy"])
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