Choose two Virtual Machines (VMs):
- VM 1: Runs the
EVCS.pyscript (Electric Vehicle Charging Station). - VM 2: Runs the
CSMS.pyscript (Charging Station Management System).
-
Open the
EVCS.pyscript. -
Locate the
__init__function. -
Modify the
self.hostattribute to point to the CSMS VM's IP address:self.host = "<CSMS_VM_IP_ADDRESS>"
-
Open the
CSMS.pyscript. -
Locate the
__init__function. -
Modify the
self.hostattribute to bind to all network interfaces:self.host = "0.0.0.0"
This allows it to accept connections from any IP address.
Open a terminal in Kali Linux and run the following command to enable IP forwarding:
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forwardVerify that IP forwarding is enabled:
cat /proc/sys/net/ipv4/ip_forwardIf enabled, the output should be 1.
- Open Ettercap GUI in Kali Linux.
- Scan the network to identify the IP addresses of the EVCS VM and CSMS VM.
- Assign:
- EVCS VM IP → Target 1
- CSMS VM IP → Target 2
- Start ARP Poisoning on the targets.
- Begin capturing and analyzing the communication between the two VMs.
By following these steps, you can intercept and analyze the communication between an Electric Vehicle Charging Station and its Management System. This allows you to study potential vulnerabilities and explore security improvements.