Browse Source

fixed GUI attack

psy 2 years ago
parent
commit
77b8080379
1 changed files with 4 additions and 2 deletions
  1. 4 2
      core/webgui.py

+ 4 - 2
core/webgui.py

@@ -4211,8 +4211,10 @@ function runCommandX(cmd,params) {
             flag_overlap = None
             flag_pinger = None
             flag_ufoudp = None
-            nonroot_cmd = "("+python_version+" -i ufonet -a '"+pGet["target"]+"' -b '"+pGet["path"]+"' -r '"+pGet["rounds"]+"' "
-            root_cmd = "(sudo "+python_version+" -i ufonet -a '"+pGet["target"]+"' -b '"+pGet["path"]+"' -r '"+pGet["rounds"]+"' "
+            target = pGet["target"].replace(" ","/")
+            target=urllib.parse.unquote(target)
+            nonroot_cmd = "("+python_version+" -i ufonet -a '"+target+"' -b '"+pGet["path"]+"' -r '"+pGet["rounds"]+"' "
+            root_cmd = "(sudo "+python_version+" -i ufonet -a '"+target+"' -b '"+pGet["path"]+"' -r '"+pGet["rounds"]+"' "
             end_cmd = ""+cmd_options + "|tee /tmp/out) &"
             if pGet["dbstress"]:
                 cmd += "--db '" +str(pGet["dbstress"])+ "' "