MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / parse_cmd

Method parse_cmd

dshell/plugins/http/joomla.py:54–67  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

52 return ptext
53
54 def parse_cmd(self, data):
55 start = data.find('"feed_url";')+11
56 end = data.find(self.ioc)
57 chunk = data[start:end]
58
59 try:
60 cmd = chunk.split(':')[-1]
61 if self.raw_payload:
62 return cmd
63
64 plaintext_cmd = self.attempt_decode(cmd)
65 return plaintext_cmd
66 except:
67 return None
68
69 def http_handler(self, conn, request, response):
70 if not request:

Callers 1

http_handlerMethod · 0.95

Calls 1

attempt_decodeMethod · 0.95

Tested by

no test coverage detected