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

Function access_control

lfisuite.py:886–897  ·  view source on GitHub ↗
(resp,keyword,rand_str)

Source from the content-addressed store, hash-verified

884 print cleanOutput(access_log_ext(ologurl, "\"%s /" %keyword), False)
885
886def access_control(resp,keyword,rand_str):
887 lines = resp.split('\n')
888
889 if("_PHP" in keyword): # in case system() calls have been disabled
890 keyword = keyword[:-4]
891
892 if(len(SubstrFind(resp,rand_str)) > 0 and len(SubstrFind(resp,"echo %s" %rand_str)) == 0 and
893 len(SubstrFind(resp,"echo%%20%s" %rand_str)) == 0):
894 return True
895
896 return False
897 #----------------------------------------------------
898
899def send_access_log_cmd(cmd,host,keyword):
900 path = ""

Callers 1

simpleGETorHEADFunction · 0.85

Calls 1

SubstrFindFunction · 0.85

Tested by

no test coverage detected