Change/Add payload existing TCP packages?
Question: I want to change the payload of all existing outgoing packets, so all packets
that have "wordA" in it will be changed to "wordB", this will be done by a
regex match.

I tried Python's scapy, but I don't know how to get it working.

PS: There won't be any wifi involved in here. Options that require port
forwarding are depreciated.


Answer: 
    import re
    text = re.sub("\bwordA\b", "wordB", text)
    

