Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Commit

Permalink
fixed Error nmcli exceptions.OSError #104
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Oct 27, 2016
1 parent b8e05b1 commit 69788e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Version 0.8.3
- added find file in directory cfg for check update
- changed the all directory structure characters to lowercase
- ffixed No such file or directory [logs] #102
- fixed Error nmcli exceptions.OSError #104

Version 0.8.1
-------------
Expand Down
1 change: 1 addition & 0 deletions core/config/commits/Lcommits.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ master:
{ changelog : 'added find file in directory cfg for check update' },
{ changelog : 'changed the all directory structure characters to lowercase' },
{ changelog : 'fixed No such file or directory [logs] #102' },
{ changelog : 'fixed Error nmcli exceptions.OSError #104' },
]

WiFiPumpkin081:
Expand Down
27 changes: 14 additions & 13 deletions core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,23 +1067,13 @@ def Start_PumpAP(self):
'it works, but not share internet connection in some case.\n'
'for fix this, You need change on tab (Pumpkin-settings -> Class Ranges)'
'now you have choose the Class range different of your network.')
self.btn_start_attack.setDisabled(True)
print('\n[*] Loading debugging mode')

print('\n[*] Loading debugging mode')
# create session ID to logging process
self.currentSessionID = self.sessionGenerate()
self.SessionsAP.update({self.currentSessionID : {'started': None,'stoped': None}})
self.SessionsAP[self.currentSessionID]['started'] = asctime()
print('[*] Current Session::ID [{}]'.format(self.currentSessionID))
self.btn_cancelar.setEnabled(True)

# disable options when started AP
self.EditApName.setEnabled(False)
self.EditGateway.setEnabled(False)
self.selectCard.setEnabled(False)
self.EditChannel.setEnabled(False)
self.PumpSettingsTAB.GroupDHCP.setEnabled(False)
self.PopUpPlugins.tableplugins.setEnabled(False)

# check if using ethernet or wireless connection
self.APactived = self.FSettings.Settings.get_setting('accesspoint','using')
Expand All @@ -1098,8 +1088,9 @@ def Start_PumpAP(self):
except Exception:
try:
check_output(['nmcli','nm','wifi',"off"]) # new version
except Exception as e:
return QMessageBox.warning(self,'Error nmcli',e)
except Exception,e:
print '[!] ' + e
return QMessageBox.warning(self,'Error nmcli',str(e))
finally:
call(['rfkill', 'unblock' ,'wifi'])
elif str(self.interfacesLink['activated']).startswith('wl'):
Expand Down Expand Up @@ -1136,6 +1127,16 @@ def Start_PumpAP(self):
self.Thread_hostapd.statusAP_connected.connect(self.GetHostapdStatus)
self.Apthreads['RougeAP'].append(self.Thread_hostapd)

# disable options when started AP
self.btn_start_attack.setDisabled(True)
self.EditApName.setEnabled(False)
self.EditGateway.setEnabled(False)
self.selectCard.setEnabled(False)
self.EditChannel.setEnabled(False)
self.PumpSettingsTAB.GroupDHCP.setEnabled(False)
self.PopUpPlugins.tableplugins.setEnabled(False)
self.btn_cancelar.setEnabled(True)

# create thread dhcpd and connect fuction GetDHCPRequests
print('[*] Configuring dhcpd...')
popen('ifconfig {} up'.format(str(self.selectCard.currentText())))
Expand Down

0 comments on commit 69788e9

Please sign in to comment.