mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Add display invert to --install
This commit is contained in:
@ -188,12 +188,12 @@ if __name__ == '__main__':
|
|||||||
if pwn_name == "":
|
if pwn_name == "":
|
||||||
pwn_name = "Pwnagotchi"
|
pwn_name = "Pwnagotchi"
|
||||||
print("I shall go by Pwnagotchi from now on!")
|
print("I shall go by Pwnagotchi from now on!")
|
||||||
pwn_name = "main.name = \"" + pwn_name + "\"\n"
|
pwn_name = "main.name = \"%s\"\n" % pwn_name
|
||||||
f.write(pwn_name)
|
f.write(pwn_name)
|
||||||
else:
|
else:
|
||||||
if is_valid_hostname(pwn_name):
|
if is_valid_hostname(pwn_name):
|
||||||
print("I shall go by %s from now on!", pwn_name)
|
print("I shall go by %s from now on!" % pwn_name)
|
||||||
pwn_name = "main.name = \"" + pwn_name + "\"\n"
|
pwn_name = "main.name = \"%s\"\n" % pwn_name
|
||||||
f.write(pwn_name)
|
f.write(pwn_name)
|
||||||
else:
|
else:
|
||||||
print("You have chosen an invalid name. Please start over.")
|
print("You have chosen an invalid name. Please start over.")
|
||||||
@ -208,8 +208,8 @@ if __name__ == '__main__':
|
|||||||
for x in range(int(pwn_whitelist)):
|
for x in range(int(pwn_whitelist)):
|
||||||
ssid = input("SSID (Name): ")
|
ssid = input("SSID (Name): ")
|
||||||
bssid = input("BSSID (MAC): ")
|
bssid = input("BSSID (MAC): ")
|
||||||
f.write("\t\"" + ssid + "\",\n")
|
f.write("\t\"%s\",\n" % ssid)
|
||||||
f.write("\t\"" + bssid + "\",\n")
|
f.write("\t\"%s\",\n" % bssid)
|
||||||
f.write("]\n")
|
f.write("]\n")
|
||||||
# set bluetooth tether
|
# set bluetooth tether
|
||||||
pwn_bluetooth = input("Do you want to enable BT-Tether? [Y/N] ")
|
pwn_bluetooth = input("Do you want to enable BT-Tether? [Y/N] ")
|
||||||
@ -218,14 +218,14 @@ if __name__ == '__main__':
|
|||||||
pwn_bluetooth_device = input("What device do you use? Android or iOS? ")
|
pwn_bluetooth_device = input("What device do you use? Android or iOS? ")
|
||||||
if pwn_bluetooth_device.lower() == "android":
|
if pwn_bluetooth_device.lower() == "android":
|
||||||
f.write("main.plugins.bt-tether.devices.android-phone.enabled = true\n")
|
f.write("main.plugins.bt-tether.devices.android-phone.enabled = true\n")
|
||||||
pwn_bluetooth_mac = input("What is the Bluetooth MAC of your device? ")
|
pwn_bluetooth_mac = input("What is the bluetooth MAC of your device? ")
|
||||||
if pwn_bluetooth_mac != "":
|
if pwn_bluetooth_mac != "":
|
||||||
f.write("main.plugins.bt-tether.devices.android-phone.mac = \""+pwn_bluetooth_mac+"\"\n")
|
f.write("main.plugins.bt-tether.devices.android-phone.mac = \"%s\"\n" % pwn_bluetooth_mac)
|
||||||
elif pwn_bluetooth_device.lower() == "ios":
|
elif pwn_bluetooth_device.lower() == "ios":
|
||||||
f.write("main.plugins.bt-tether.devices.ios-phone.enabled = true\n")
|
f.write("main.plugins.bt-tether.devices.ios-phone.enabled = true\n")
|
||||||
pwn_bluetooth_mac = input("What is the Bluetooth MAC of your device? ")
|
pwn_bluetooth_mac = input("What is the bluetooth MAC of your device? ")
|
||||||
if pwn_bluetooth_mac != "":
|
if pwn_bluetooth_mac != "":
|
||||||
f.write("main.plugins.bt-tether.devices.android-phone.mac = \"" + pwn_bluetooth_mac + "\"\n")
|
f.write("main.plugins.bt-tether.devices.ios-phone.mac = \"%s\"\n" % pwn_bluetooth_mac)
|
||||||
# set up display settings
|
# set up display settings
|
||||||
pwn_display_enabled = input("Do you use a display? [Y/N] ")
|
pwn_display_enabled = input("Do you use a display? [Y/N] ")
|
||||||
if pwn_display_enabled.lower() in ('y', 'yes'):
|
if pwn_display_enabled.lower() in ('y', 'yes'):
|
||||||
|
Reference in New Issue
Block a user