Exemple #1
0
    "tr": "WPA supplicant bulunamadı",
}

import os
import re
import socket
import array
import struct
import fcntl
import subprocess

from pardus import netutils
from pardus import iniutils

# Open connection db
DB = iniutils.iniDB(os.path.join("/etc/network", script()))

# From </usr/include/wireless.h>
SIOCSIWMODE = 0x8B06  # set the operation mode
SIOCGIWMODE = 0x8B07  # get operation mode
SIOCGIWRATE = 0x8B21  # get default bit rate
SIOCSIWESSID = 0x8B1A  # set essid
SIOCGIWESSID = 0x8B1B  # get essid


class Point:
    def __init__(self, id=None):
        self.ssid = ""
        self.mode = ""
        self.mac = ""
        self.encryption = "none"
Exemple #2
0
 def __init__(self, name):
     self.name = name
     self.db = iniutils.iniDB(os.path.join("/etc/network-link", script()))
     self.info = self.db.getDB(self.name)
    "sv": "Dynamisk WEP (802.1x)"
}

import os
import re
import socket
import array
import struct
import fcntl
import subprocess

from pardus import netutils
from pardus import iniutils

# Open connection db
DB = iniutils.iniDB(os.path.join("/etc/network", script()))

# From </usr/include/wireless.h>
SIOCSIWMODE = 0x8B06    # set the operation mode
SIOCGIWMODE = 0x8B07    # get operation mode
SIOCGIWRATE = 0x8B21    # get default bit rate
SIOCSIWESSID = 0x8B1A   # set essid
SIOCGIWESSID = 0x8B1B   # get essid


class Point:
    def __init__(self, id=None):
        self.ssid = ""
        self.mode = ""
        self.mac = ""
        self.encryption = "none"
Exemple #4
0
def listProfiles():
    db = iniutils.iniDB(os.path.join("/etc/network-link", script()))
    return db.listDB()