-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unnecessary files. Added .venv to gitignore and changed the p…
…rinting of the results.
- Loading branch information
Eder
authored and
Eder
committed
Sep 19, 2024
1 parent
ef5eabd
commit 86067f3
Showing
4 changed files
with
12 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.vscode | ||
venv/ | ||
.venv/ | ||
|
||
*.pyc | ||
__pycache__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
from autosec.core.ressources.ip import InternetDevice, InternetInterface | ||
from autosec.core.ressources.ip import InternetInterface | ||
from autosec.modules.ev_charging_station_discovery import EVChargingStationFinder | ||
|
||
inet_iface = InternetInterface("eth0", ipv4_address="172.27.106.161", subnet_length=20) | ||
# inet_device = InternetDevice(interface=inet_iface, ipv6="fe80::215:5dff:fe9f:e97b") | ||
inet_iface = InternetInterface("eth0", ipv4_address="0.0.0.0", subnet_length=20) | ||
|
||
results = EVChargingStationFinder().run([inet_iface]) | ||
|
||
for result in results: | ||
print(result) | ||
secc_ip = result.get_device().get_ipv6() | ||
tcp_port = result.get_port() | ||
print(f"IP Address of the Charging Station: {secc_ip}") | ||
print(f"\nTCP Port number of the Charging Station: {tcp_port}\n") |