savio-code / ghost-phisher

Automatically exported from code.google.com/p/ghost-phisher
327 stars 111 forks source link

GP no response after setting monitor #29

Closed DKingAlpha closed 8 years ago

DKingAlpha commented 8 years ago

OS:Kali 2 NetworkManager.conf has been modified to avoid conflict with airmon-ng or something.

[main] plugins=ifupdown,keyfile] [ifupdown]] managed=true] [keyfile]] unmanaged-devices=interface-name:wlan0mon;interface-name:wlan1mon;interface-name:wlan2mon;interface-name:wlan3mon;#etc

I tried to read the source code however i know few about Qt. 1.Refresh and select wlan1 2.click "Set Monitor" 3.iwconfig wlan1mon we can found wlan1mon is on monotor mode , but GP shows "Monitor:Not started".And no next step is allowed.Maybe I can bypass the modecheck after reading the source code,but it would be better to solve this problem completely.

Appreciation to your great work. I will keep on digging in your code.

DKingAlpha commented 8 years ago

OK! Bug found. The problem happend due to a change in airmon-ng output.

./gui/ghost-phisher.py ,Line 538: if 'monitor mode enabled' in attempt_monitor[1]: New version of airmon-ng has changed its out put as monitor mode vif enabled though. So get the string modified , and GP works again.

New to github.A New Pull Request will be submitted later.

DKingAlpha commented 8 years ago

Too many bugs to fix. Going to sleep. I'll make it work tomorrow.

DKingAlpha commented 8 years ago

And you copied iptables part elsewhere but didn't run sslstrip to listen on port 10000.So all the traffic of subnet is blocked. Delete the last iptables rule

DKingAlpha commented 8 years ago

Still a big problem,which cause DNS query problem.,where the request cant be forwarded.I'm too tired to fix it.You know your code better so i leave the problem to you...... The iptables part iptables -t nat -A PREROUTING -p udp -j DNAT --to %s %s represent for eth0_ip for example,but it will cause UDP retransmission problem To fix it , %s should be replaced as eth0_gw.

I dont quite sure have I disturbed the other utils.But it works in the aspect of basic NAT funtion.