Update kickthemout.py, scan.py, spoof.py

This commit is contained in:
k4m4 2017-01-03 00:48:39 +02:00
parent 89e3943cfa
commit d89627ab80
3 changed files with 4 additions and 8 deletions

View File

@ -60,7 +60,7 @@ def scanNetwork():
regenOnlineIPs()
def kickoneoff(): # TODO: do not allow only one device!!
def kickoneoff():
os.system("clear||cls")
print("\n{0}kickONEOff{1} selected...{2}\n").format(RED, GREEN, END)
@ -94,7 +94,6 @@ def kickoneoff(): # TODO: do not allow only one device!!
print("\nIP address is not up. Please try again.")
return
# print("\n{0}Target mac => '{1}" + one_target_mac + "{2}'{3}\n").format(GREEN, RED, GREEN, END) # {TESTING}
print("\n{0}Target: {1}" + one_target_ip).format(GREEN, END)
print("\n{0}Spoofing started... {1}").format(GREEN, END)
@ -276,13 +275,10 @@ def main():
raise SystemExit
elif choice == '1':
kickoneoff()
# EXECUTE kickoneoff FUNCTION (SCAN & PARSE)
elif choice == '2':
kicksomeoff()
# EXECUTE kicksomeoff FUNCTION
elif choice == '3':
kickalloff()
# EXECUTE kickalloff FUNCTION (FF:FF:FF:FF:FF:FF)
elif choice.upper() == 'CLEAR':
os.system("clear||cls")
else:

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
# -.- coding: utf-8 -.-
# scan.py
# author: Benedikt Waldvogel
# author: Benedikt Waldvogel (MIT Licensed)
# edited by: k4m4 & xdavidhu
import logging
@ -61,4 +61,4 @@ def scanNetwork():
continue
if net:
return scan_and_print_neighbors(net, interface)
return scan_and_print_neighbors(net, interface)

View File

@ -40,4 +40,4 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
packet = ether / arp
sendp(x=packet, verbose=False)
broadcastPacket()
broadcastPacket()