/* * Localwebfaker - Web sites faker for LAN * Copyright (C) 2007-2009 Lucas J. González * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see #include #include "arpSpoofer.h" #include "Config.h" class Configurar : public QThread { Q_OBJECT public: Configurar( QString, QString, QString, QString, QString, QString ) ; signals: void newArpOut( QString ) ; void msgOut( QString ) ; void atMsgOut( QString ) ; public slots: void newMsgOut(QString) ; void ipfwDone(QString) ; void siteDone(QString) ; void resolvDone(QString) ; void iptablesDone(QString) ; void hostDone(QString) ; void webServDone(QString) ; void ArpIniciado() ; void pararArp() ; void handleArpOut( QString ) ; void handleArpStop() ; void go_iptables() ; protected: void run() ; private: QString interfaz ; QString victima ; QString gateway ; QString dominio ; QString docroot ; QString miIP ; Config *cf ; QProcess *ct ; arpSpoofer *aspof ; }; #endif