diff --git a/CHANGELOG b/CHANGELOG index 7ab991b..94a30da 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -14,6 +14,7 @@ Version 0.8.1 - removed pledgie campaign and added only PayPal - fixed setup_logger in module PhishingManager - fixed redirect all HTTP with DNSSpoof when AP is enabled +- fixed PhishingManager SetEnv path not working with dnsspoof #90 Version 0.7.8 ------------- diff --git a/Core/config/commits/Lcommits.cfg b/Core/config/commits/Lcommits.cfg index 7d4649e..a94e806 100644 --- a/Core/config/commits/Lcommits.cfg +++ b/Core/config/commits/Lcommits.cfg @@ -16,6 +16,7 @@ master: { changelog : 'removed pledgie campaign and added only PayPal' }, { changelog : 'fixed setup_logger in module PhishingManager' }, { changelog : 'fixed redirect all HTTP with DNSSpoof when AP is enabled' }, + { changelog : 'fixed PhishingManager SetEnv path not working with dnsspoof #90' }, ] WiFiPumpkin078: diff --git a/Modules/servers/PhishingManager.py b/Modules/servers/PhishingManager.py index 4cf9dd2..0ec8946 100644 --- a/Modules/servers/PhishingManager.py +++ b/Modules/servers/PhishingManager.py @@ -1,6 +1,6 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from os import popen,chdir,getcwd +from os import popen from urllib2 import urlopen,URLError from BeautifulSoup import BeautifulSoup from Core.Utils import ThreadPhishingServer @@ -32,7 +32,6 @@ def __init__(self, parent = None): super(frm_PhishingManager, self).__init__(parent) self.label = QLabel() self.Main = QVBoxLayout() - self.owd = getcwd() self.config = frm_Settings() self.session = str() self.setWindowTitle('Phishing Manager') @@ -256,17 +255,15 @@ def start_server(self): self.emit(SIGNAL('Activated( QString )'),'started') def DirectoryPhishing(self,Path=None): - chdir(Path) popen('service apache2 stop') self.Tphishing = ThreadPhishingServer(['php', '-S','{}:{}'.format( - str(self.txt_redirect.text()),str(self.BoxPort.value()))]) + str(self.txt_redirect.text()),str(self.BoxPort.value())),'-t',Path]) self.Tphishing.send.connect(self.ResponseSignal) self.Tphishing.setObjectName('Server PHP::'+Path) self.ThreadTemplates['Server'].append(self.Tphishing) self.Tphishing.start() while True: if self.Tphishing.process != None: - chdir(self.owd) break self.btn_start_template.setEnabled(False) self.btn_stop_template.setEnabled(True) diff --git a/README.md b/README.md index 39fb331..aae0731 100644 --- a/README.md +++ b/README.md @@ -101,3 +101,4 @@ Happy MITM! ### Donate ##### paypal: [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PUPJEGHLJPFQL) +Via BTC: 1HBXz6XX3LcHqUnaca5HRqq6rPUmA3pf6f \ No newline at end of file