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

Commit

Permalink
some improvements on module DnsSpoof,ArpPoison and Core::main closeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Jun 12, 2016
1 parent 347099e commit c8fa6fc
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 24 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Version 0.7.5
- fixed error when executed from symlink file #50
- fixed error: too many open files, added ulimit
- added Tab Pump-Settings -> [Class Ranges] options
- fixed Pump-Settings->Advanced Mode:: allow run after started AP
- some improvements on module DnsSpoof,ArpPoison and Core::main closeEvent

Version 0.7.3
-------------
Expand Down
18 changes: 14 additions & 4 deletions Core/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,22 @@ def closeEvent(self, event):
iwconfig = Popen(['iwconfig'], stdout=PIPE,shell=False,stderr=PIPE)
for i in iwconfig.stdout.readlines():
if search('Mode:Monitor',i):
reply = QMessageBox.question(self,
self.reply = QMessageBox.question(self,
'About Exit','Are you sure to quit?', QMessageBox.Yes |
QMessageBox.No, QMessageBox.No)
if reply == QMessageBox.Yes:
if self.reply == QMessageBox.Yes:
set_monitor_mode(i.split()[0]).setDisable()
event.accept()
return
return event.accept()
if self.form_widget.Apthreads['RougeAP'] != []:
self.reply = QMessageBox.question(self,
'About Access Point','Are you sure to stop all threads AP ?', QMessageBox.Yes |
QMessageBox.No, QMessageBox.No)
if self.reply == QMessageBox.Yes:
print('killing all threads...')
self.form_widget.kill()
return event.accept()
if hasattr(self,'reply'):
event.ignore()

class WifiPumpkin(QWidget):
''' load main window class'''
Expand Down Expand Up @@ -869,6 +878,7 @@ def StartApFake(self):
self.Started(True)
self.ProxyPluginsTAB.GroupSettings.setEnabled(False)
self.FSettings.Settings.set_setting('accesspoint','statusAP',True)
self.FSettings.Settings.set_setting('accesspoint','interfaceAP',str(self.selectCard.currentText()))


if self.PopUpPlugins.check_sslstrip.isChecked() or not self.PopUpPlugins.check_dns2proy.isChecked():
Expand Down
2 changes: 1 addition & 1 deletion Core/config/app/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ statusAP=false
dhcp_server=iscdhcpserver
channel=11
APname=PumpAP
interface=wlan1
interfaceAP=None

[dhcp]
classtype=A
Expand Down
2 changes: 2 additions & 0 deletions Core/config/commits/Lcommits.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ master:
{ changelog : 'fixed error when executed from symlink file #50' },
{ changelog : 'fixed error: too many open files, added ulimit' },
{ changelog : 'added Tab Pump-Settings -> Class Ranges options' },
{ changelog : 'fixed Pump-Settings->Advanced Mode:: allow run after started AP' },
{ changelog : 'some improvements on module DnsSpoof,ArpPoison and Core::main closeEvent' },
]
3 changes: 0 additions & 3 deletions Core/utility/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ def Qui(self):
self.txt_arguments = QLineEdit(self)
self.scan1 = QRadioButton('Ping Scan:: Very fast scan IP')
self.scan2 = QRadioButton('Python-Nmap:: Get hostname from IP')
self.interface = QLineEdit(self)
self.Apname = QLineEdit(self)
self.channel = QSpinBox(self)
self.redirectport = QLineEdit(self)
Expand Down Expand Up @@ -292,7 +291,6 @@ def Qui(self):
self.page_1.addRow(self.theme2)

#settings tab Advanced
self.interface.setText(self.Settings.get_setting('accesspoint','interface'))
self.Apname.setText(self.Settings.get_setting('accesspoint','APname'))
self.channel.setValue(int(self.Settings.get_setting('accesspoint','channel')))
self.redirectport.setText(self.Settings.get_setting('settings','redirect_port'))
Expand All @@ -301,7 +299,6 @@ def Qui(self):
self.page_2.addRow(QLabel('Thread ScanIP:'))
self.page_2.addRow(self.scan1)
self.page_2.addRow(self.scan2)
self.page_2.addRow('Interface Monitor:',self.interface)
self.page_2.addRow('AP Name:',self.Apname)
self.page_2.addRow('Channel:',self.channel)
self.page_2.addRow('Port sslstrip:',self.redirectport)
Expand Down
22 changes: 12 additions & 10 deletions Modules/poisoners/ArpPosion.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def ConfigureEdits(self):
for i,j in enumerate(n):
if n[i] != '':
self.ComboIface.addItem(n[i])
if self.configure.Settings.get_setting('accesspoint','statusAP',format=bool):
self.ComboIface.setCurrentIndex(x['all'].index(self.configure.Settings.get_setting('accesspoint',
'interfaceAP')))

def thread_scan_reveice(self,info_ip):
self.StatusMonitor(False,'stas_scan')
Expand All @@ -209,14 +212,13 @@ def thread_scan_reveice(self,info_ip):
Headers.append(key)
self.tables.setHorizontalHeaderLabels(Headers)

def discoveryIface(self):
iface = str(self.ComboIface.currentText())
mac = Refactor.getHwAddr(iface)
ip = Refactor.get_Ipaddr(iface)
if self.configure.Settings.get_setting('accesspoint','statusAP',format=bool):
self.txt_gateway.setText('10.0.0.1')
self.txt_mac.setText(mac)
self.txt_redirect.setText(ip)
@pyqtSlot(QModelIndex)
def discoveryIface(self,iface):
if self.configure.Settings.get_setting('accesspoint','interfaceAP') == str(iface):
if self.configure.Settings.get_setting('accesspoint','statusAP',format=bool):
self.txt_gateway.setText(self.configure.Settings.get_setting('dhcp','router'))
self.txt_mac.setText(Refactor.getHwAddr(str(iface)))
self.txt_redirect.setText(Refactor.get_Ipaddr(str(iface)))

def show_frm_fake(self):
self.n = frm_update_attack()
Expand Down Expand Up @@ -270,14 +272,14 @@ def Start_Attack(self):
Refactor.set_ip_forward(1)
arp_gateway = ThARP_posion(str(self.txt_gateway.text()),str(self.txt_target.text()),
get_if_hwaddr(str(self.ComboIface.currentText())))
arp_gateway.setObjectName('Arp Posion:: [gateway]')
arp_gateway.setObjectName('Arp Poison:: [gateway]')
self.ThreadDirc['Arp_posion'].append(arp_gateway)
arp_gateway.start()

arp_target = ThARP_posion(str(self.txt_target.text()),str(self.txt_gateway.text()),
str(self.txt_mac.text()))
self.connect(arp_target,SIGNAL('Activated ( QString ) '), self.StopArpAttack)
arp_target.setObjectName('Arp::Posion => [target]')
arp_target.setObjectName('Arp::Poison => [target]')
self.ThreadDirc['Arp_posion'].append(arp_target)
arp_target.start()

Expand Down
15 changes: 9 additions & 6 deletions Modules/poisoners/DnsSpoof.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ def SettingsGUI(self):
self.myListDns.addItem(item)
except Exception:
pass
if self.configure.Settings.get_setting('accesspoint','statusAP',format=bool):
self.ComboIface.setCurrentIndex(ifaces['all'].index(self.configure.Settings.get_setting('accesspoint',
'interfaceAP')))

def listItemclicked(self,pos):
item = self.myListDns.selectedItems()
Expand Down Expand Up @@ -250,12 +253,12 @@ def listItemclicked(self,pos):
elif action == clearitem:
self.myListDns.clear()

def discoveryIface(self):
iface = str(self.ComboIface.currentText())
if self.configure.Settings.get_setting('accesspoint','statusAP',format=bool):
self.txt_gateway.setText('10.0.0.1')
ip = Refactor.get_Ipaddr(iface)
self.txt_redirect.setText(ip)
@pyqtSlot(QModelIndex)
def discoveryIface(self,iface):
if self.configure.Settings.get_setting('accesspoint','interfaceAP') == str(iface):
if self.configure.Settings.get_setting('accesspoint','statusAP',format=bool):
self.txt_gateway.setText(self.configure.Settings.get_setting('dhcp','router'))
self.txt_redirect.setText(Refactor.get_Ipaddr(str(iface)))


def thread_scan_reveice(self,info_ip):
Expand Down

0 comments on commit c8fa6fc

Please sign in to comment.