mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-08-14 10:47:05 -07:00
indent and highlighting
This commit is contained in:
parent
307303ea58
commit
68e98704e2
1 changed files with 2 additions and 2 deletions
|
@ -47,11 +47,11 @@ You can now modify any packet/protocol that gets intercepted by MITMf using Scap
|
|||
|
||||
For example, here's a stupid little filter that just changes the destination IP address of ICMP packets:
|
||||
|
||||
```
|
||||
```python
|
||||
if packet.haslayer(ICMP):
|
||||
packet.dst = '192.168.1.0'
|
||||
|
||||
```
|
||||
|
||||
- Use the ```packet``` variable to access the packet in a Scapy compatible format
|
||||
- Use the ```data``` variable to access the raw packet data
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue