(self, data)
| 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: |
no test coverage detected