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

Commit e1b22ba

Browse files
committed
fixed PhishingManager SetEnv path not working with dnsspoof #90
1 parent 71548a9 commit e1b22ba

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Version 0.8.1
1414
- removed pledgie campaign and added only PayPal
1515
- fixed setup_logger in module PhishingManager
1616
- fixed redirect all HTTP with DNSSpoof when AP is enabled
17+
- fixed PhishingManager SetEnv path not working with dnsspoof #90
1718

1819
Version 0.7.8
1920
-------------

Core/config/commits/Lcommits.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ master:
1616
{ changelog : 'removed pledgie campaign and added only PayPal' },
1717
{ changelog : 'fixed setup_logger in module PhishingManager' },
1818
{ changelog : 'fixed redirect all HTTP with DNSSpoof when AP is enabled' },
19+
{ changelog : 'fixed PhishingManager SetEnv path not working with dnsspoof #90' },
1920
]
2021

2122
WiFiPumpkin078:

Modules/servers/PhishingManager.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from PyQt4.QtCore import *
22
from PyQt4.QtGui import *
3-
from os import popen,chdir,getcwd
3+
from os import popen
44
from urllib2 import urlopen,URLError
55
from BeautifulSoup import BeautifulSoup
66
from Core.Utils import ThreadPhishingServer
@@ -32,7 +32,6 @@ def __init__(self, parent = None):
3232
super(frm_PhishingManager, self).__init__(parent)
3333
self.label = QLabel()
3434
self.Main = QVBoxLayout()
35-
self.owd = getcwd()
3635
self.config = frm_Settings()
3736
self.session = str()
3837
self.setWindowTitle('Phishing Manager')
@@ -256,17 +255,15 @@ def start_server(self):
256255
self.emit(SIGNAL('Activated( QString )'),'started')
257256

258257
def DirectoryPhishing(self,Path=None):
259-
chdir(Path)
260258
popen('service apache2 stop')
261259
self.Tphishing = ThreadPhishingServer(['php', '-S','{}:{}'.format(
262-
str(self.txt_redirect.text()),str(self.BoxPort.value()))])
260+
str(self.txt_redirect.text()),str(self.BoxPort.value())),'-t',Path])
263261
self.Tphishing.send.connect(self.ResponseSignal)
264262
self.Tphishing.setObjectName('Server PHP::'+Path)
265263
self.ThreadTemplates['Server'].append(self.Tphishing)
266264
self.Tphishing.start()
267265
while True:
268266
if self.Tphishing.process != None:
269-
chdir(self.owd)
270267
break
271268
self.btn_start_template.setEnabled(False)
272269
self.btn_stop_template.setEnabled(True)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,4 @@ Happy MITM!
101101
### Donate
102102
##### paypal:
103103
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PUPJEGHLJPFQL)
104+
Via BTC: 1HBXz6XX3LcHqUnaca5HRqq6rPUmA3pf6f

0 commit comments

Comments
 (0)