new Log API suggestion

fetchLog () - Fetches a log file from target machine, once you beat it. Saves the log file as xxx.xxx.x.xxx.log
sendLog () - replaces the log file on target machine with replacelog.txt

Kind of exists...

You can already replace their logs with alternative text. It just requires a little extra work in order to make it dynamic like you want. For example, my editLogs attack script will read from a file what the string is I want to replace and also what i want to replace it with. So if I wanted to replace every line in their logs I would simply need to peek their logs first and then I could change my text file to reflect what I wanted to do.

The first one you could also do by hand by peeking the logs, although if you wanted a way to do it automatically you would want something like this. I would recommend making the function simply return the text and then having your script decide where and how to save it to a text file.

-----------------------------------------
Give a man a fish and he eats for a day. Teach him how to fish and you get rid of him all weekend.