from subprocess import (PIPE, Popen)
import os

def command(command):
    return Popen(command, stdout=PIPE, shell=True).stdout.read()


def start():
    if os.name == 'nt': # Windows
        result = command('netstat -nba')
    else: # Unix
        result = command('netstat -napt')
    print (result.decode("utf-8"))



072603d166ce4210c4e737529dce3e1bd23ef5a9
<mask token>

<mask token>


def start():
    if os.name == 'nt':
        result = command('netstat -nba')
    else:
        result = command('netstat -napt')
    print(result.decode('utf-8'))

<mask token>


def command(command):
    return Popen(command, stdout=PIPE, shell=True).stdout.read()


def start():
    if os.name == 'nt':
        result = command('netstat -nba')
    else:
        result = command('netstat -napt')
    print(result.decode('utf-8'))

from subprocess import PIPE, Popen
import os


def command(command):
    return Popen(command, stdout=PIPE, shell=True).stdout.read()


def start():
    if os.name == 'nt':
        result = command('netstat -nba')
    else:
        result = command('netstat -napt')
    print(result.decode('utf-8'))

from subprocess import (PIPE, Popen)
import os

def command(command):
    return Popen(command, stdout=PIPE, shell=True).stdout.read()


def start():
    if os.name == 'nt': # Windows
        result = command('netstat -nba')
    else: # Unix
        result = command('netstat -napt')
    print (result.decode("utf-8"))


