Announcement

Collapse
No announcement yet.

List Active connection details

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • List Active connection details

    You can see all incoming and outgoing connection details using below script,


    Code:
    import subprocess;
    process=subprocess.Popen(['netstat','-ano'],stdout=subprocess.PIPE,shell=True);
    for line in iter(process.stdout.readline,''):
        print line.rstrip()


    Note: please refer attach text file for script text without indentation error.


    Sample output would be,
    Click image for larger version

Name:	active_internet_connections.jpg
Views:	1
Size:	169.2 KB
ID:	4559









    Last edited by mkannan; 09-12-2016, 01:36 PM.
Working...
X