Skip to content

Commit ee6e767

Browse files
committed
feat: Trim whitespace from user input for teacher and target IP addresses
1 parent 9a3ae1d commit ee6e767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jiyu_attack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def send_packet(src_ip: str, dst_ip: str, dst_port: int, data: bytes) -> None:
136136

137137

138138
if __name__ == "__main__":
139-
teacher_ip = input("Enter the teacher's IP address: ")
140-
target = input("Enter the target IP address: ")
139+
teacher_ip = input("Enter the teacher's IP address: ").strip()
140+
target = input("Enter the target IP address: ").strip()
141141
while True:
142142
tmsg = input("Enter your message (empty to exit): ")
143143
if not tmsg:

0 commit comments

Comments
 (0)