(parser)
| 109 | |
| 110 | |
| 111 | def test_feed_drops_binary_garbage(parser): |
| 112 | bot_ip, c2_ip = '10.0.0.1', '10.0.0.2' |
| 113 | # Binary control chars at the start of a 'line' -> not IRC |
| 114 | payload = b'\x00\x01\x02\x03lots of garbage\n' |
| 115 | msgs = parser.feed_payload(bot_ip, c2_ip, 1234, 6667, 1.0, payload) |
| 116 | assert msgs == [] |
| 117 | |
| 118 | |
| 119 | def test_buffer_size_cap_prevents_runaway_growth(parser): |
nothing calls this directly
no test coverage detected