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

Function extract_phpinput_res

lfisuite.py:1202–1215  ·  view source on GitHub ↗
(resp)

Source from the content-addressed store, hash-verified

1200 return r.text
1201
1202def extract_phpinput_res(resp):
1203 strs = SubstrFind(resp,"AbracadabrA **")
1204
1205 try:
1206 p = strs[0]+15
1207 except:
1208 return ""
1209
1210 got = ""
1211 while(p < len(resp)-1 and (resp[p] != '*' or resp[p+1] != '*')):
1212 got += resp[p]
1213 p += 1
1214
1215 return got[:-1]
1216
1217def run_phpinput():
1218 global ahurl

Callers 3

run_phpinputFunction · 0.85
extract_data_resFunction · 0.85
extract_expect_resFunction · 0.85

Calls 1

SubstrFindFunction · 0.85

Tested by

no test coverage detected