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

Function SubstrFind

lfisuite.py:266–285  ·  view source on GitHub ↗
(resp, toFind)

Source from the content-addressed store, hash-verified

264 return par
265
266def SubstrFind(resp, toFind):
267 if(len(toFind) > len(resp)):
268 return []
269
270 found = False
271 indexes = []
272
273 for x in range(0,(len(resp)-len(toFind))+1):
274 if(ord(resp[x]) == ord(toFind[0])):
275 found = True
276 for i in range(0,len(toFind)):
277 if(ord(resp[x+i]) != ord(toFind[i])):
278 found = False
279 break
280 if(found):
281 indexes.append(x)
282 found = False
283 x += len(toFind)
284
285 return indexes
286
287def extractPathFromPaths():
288 global ahpaths

Callers 15

check_for_updateFunction · 0.85
extractPathFromPathsFunction · 0.85
cutURLToLastEqualFunction · 0.85
extractPathFromUrlFunction · 0.85
correctUrlFunction · 0.85
execSeCmdFunction · 0.85
phpinfo_extFunction · 0.85
access_controlFunction · 0.85
access_log_extFunction · 0.85
passthru_extFunction · 0.85
GetPassthruFunction · 0.85
extract_phpinput_resFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected