Is Python socket safe? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is Python socket safe?

15th Sep 2020, 7:20 AM
Rice Noodle
Rice Noodle - avatar
3 Answers
+ 5
Unfortunately,The socket shared by multi-thread is not thread safe. ... The normal way to implement is with two socket,just like what ftp does. Source: https://stackoverflow.com/questions/11177018/JUMP_LINK__&&__python__&&__JUMP_LINK-socket-and-threads
15th Sep 2020, 7:31 AM
Nilesh
15th Sep 2020, 7:32 AM
Rowsej
Rowsej - avatar
+ 1
You can add encryption by cryptography module to encrypt connections at both server and client side. I used cryptography.fernet to make reverse Shell with encryption Not any connection is safe without encryption in network.
29th Sep 2020, 8:22 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar