Commits

Skin36  committed 58e9a8e

fix database input

  • Participants
  • Parent commits 1362212

Comments (0)

Files changed (1)

File gerix-wifi-cracker-master/gerix.py

 
         # read GUI table
         numrows = self.table_database.rowCount()
-
+#        self.periferica = str((self.table_interfaces.item(selrow, 0)).text())
         for i in range(0, numrows):
-            essid   = str(self.table_database.text(i, 0))
-            bssid   = str(self.table_database.text(i, 1))
-            channel = str(self.table_database.text(i, 2))
-            key     = str(self.table_database.text(i, 3))
+            essid   = str((self.table_database.item(i, 0)).text())
+            bssid   = str((self.table_database.item(i, 1)).text())
+            channel = str((self.table_database.item(i, 2)).text())
+            key     = str((self.table_database.item(i, 3)).text())
 
             c.execute("insert into keys values ('" + essid + "', '" + bssid + "', '" + channel + "', '" + key + "')")