MCPcopy
hub / github.com/D35m0nd142/LFISuite / extractPathFromPaths

Function extractPathFromPaths

lfisuite.py:287–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 return indexes
286
287def extractPathFromPaths():
288 global ahpaths
289
290 if len(ahpaths) == 0:
291 return "<NOT APPLICABLE>"
292
293 first = ahpaths[0]
294 equals = SubstrFind(first, "=")
295 index = equals[len(equals)-1]+1
296 nfirst = first[index:]
297 tmp = ""
298
299 for c in nfirst:
300 if c != '.' and c != "/":
301 break
302 tmp += c
303
304 if len(tmp) > 0:
305 tmp = tmp[:-1]
306
307 return tmp
308
309def cutURLToLastEqual(url):
310 indexes = SubstrFind(url,"=")

Callers 1

run_autoHackFunction · 0.85

Calls 1

SubstrFindFunction · 0.85

Tested by

no test coverage detected