mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-07-04 04:18:15 +02:00
Resolve Issue #8
This commit is contained in:
parent
64bdb7090e
commit
fbee3161c3
3 changed files with 13 additions and 4 deletions
4
bluettack.sh
Normal file
4
bluettack.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
service bluetooth start
|
||||||
|
btscanner
|
||||||
|
spooftooph -i hci0 -a A0:02:DC:11:4F:85 -n Car537
|
||||||
|
|
|
@ -232,8 +232,14 @@ def getDefaultInterface():
|
||||||
return interface
|
return interface
|
||||||
|
|
||||||
def getGatewayIP():
|
def getGatewayIP():
|
||||||
|
try:
|
||||||
getGateway_p = sr1(IP(dst="google.com", ttl=0) / ICMP() / "XXXXXXXXXXX", verbose=False)
|
getGateway_p = sr1(IP(dst="google.com", ttl=0) / ICMP() / "XXXXXXXXXXX", verbose=False)
|
||||||
return getGateway_p.src
|
return getGateway_p.src
|
||||||
|
except:
|
||||||
|
print("\n{0}ERROR: Gateway IP could not be obtained. Please enter IP manually.{2}\n").format(RED, END)
|
||||||
|
header = ('{0}kickthemout{1}> {2}Enter Gateway IP {3}(e.g. 192.168.1.1): '.format(BLUE, WHITE, RED, END))
|
||||||
|
gatewayIP = raw_input(header)
|
||||||
|
return gatewayIP
|
||||||
|
|
||||||
def resolveMac(mac):
|
def resolveMac(mac):
|
||||||
try:
|
try:
|
||||||
|
@ -284,7 +290,6 @@ def main():
|
||||||
print('\n\n{0}Thanks for dropping by.'
|
print('\n\n{0}Thanks for dropping by.'
|
||||||
'\nCatch ya later!{1}').format(GREEN, END)
|
'\nCatch ya later!{1}').format(GREEN, END)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
defaultInterface = getDefaultInterface()
|
defaultInterface = getDefaultInterface()
|
||||||
|
|
BIN
scan.pyc
Normal file
BIN
scan.pyc
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue