title: Python - error with a simple socket script
body: <p>So I wrote a script in Python with the module socket but finally he doesn't work. After searching a few hours for an error (I'm new in Python so it's long for me), I didn't find any so instead I wrote another simple script which works with netcat to have a reverse shell between my host machin (Linux) and my VM (Windows). </p>
  
  <p>My command netcat with Linux : </p>
  
  <p>nc -nvlp 4444 </p>
  
  <p>My script in Windows : </p>
  
  <pre><code>import socket
  connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  connection.connect(("192.168.1.81", 4444))
  </code></pre>
  
  <p>And after start the listener (netcat), he's listening and after a few seconds, in my Windows machin, the scripts closed itself because he doesn't find anything connection. </p>
  
  <p>I don't know where is the problem, my VM is on the same subnet than my host, I've flushed my iptables in Linux just in case, I'm lost :) </p>
  
  <p>Thanks for your answers ! </p>