SHUR1K-N / Project-Pwnag0dchi

A dope AF repo of all customized plugins & configurations I use as seen on my socials / YouTube. Helpful guides and troubleshooting too.
https://instagram.com/shurikenhacks
288 stars 15 forks source link

Plugins not showing up in web UI #12

Closed Narfianer closed 4 weeks ago

Narfianer commented 4 weeks ago

My config.toml:

main.name = "Pwnag0dchi"
main.lang = "en"
main.whitelist = [
 "SSID",
 "ANOTHER_EXAMPLE_NETWORK",
 "fo:od:ba:be:fo:od",
 "fo:od:ba",
]
main.plugins.grid.enabled = false
main.plugins.grid.report = false
main.plugins.grid.exclude = [ "SSID",]

main.plugins.auto-update.enabled = true
main.plugins.auto-update.install = true
main.plugins.auto-update.interval = 1

main.plugins.bt-tether.enabled = true
main.plugins.bt-tether.devices.android-phone.enabled = true
main.plugins.bt-tether.devices.android-phone.search_order = 1
main.plugins.bt-tether.devices.android-phone.mac = ""
main.plugins.bt-tether.devices.android-phone.ip = "192.168.44.44"
main.plugins.bt-tether.devices.android-phone.netmask = 24
main.plugins.bt-tether.devices.android-phone.interval = 1
main.plugins.bt-tether.devices.android-phone.scantime = 15
main.plugins.bt-tether.devices.android-phone.max_tries = 6
main.plugins.bt-tether.devices.android-phone.share_internet = true
main.plugins.bt-tether.devices.android-phone.priority = 1

main.plugins.bt-tether.devices.ios-phone.enabled = false
main.plugins.bt-tether.devices.ios-phone.search_order = 2
main.plugins.bt-tether.devices.ios-phone.mac = ""
main.plugins.bt-tether.devices.ios-phone.ip = "175.20.10.6"
main.plugins.bt-tether.devices.ios-phone.netmask = 24
main.plugins.bt-tether.devices.ios-phone.interval = 5
main.plugins.bt-tether.devices.ios-phone.scantime = 20
main.plugins.bt-tether.devices.ios-phone.max_tries = 0
main.plugins.bt-tether.devices.ios-phone.share_internet = false
main.plugins.bt-tether.devices.ios-phone.priority = 999

main.plugins.fix_services.enabled = true

main.plugins.gdrivesync.enabled = false
main.plugins.gdrivesync.backupfiles = [ "",]
main.plugins.gdrivesync.backup_folder = "PwnagotchiBackups"

main.plugins.logtail.enabled = true
main.plugins.logtail.max-lines = 10000

main.plugins.memtemp.enabled = false
main.plugins.memtemp.scale = "celsius"
main.plugins.memtemp.orientation = "horizontal"

main.plugins.onlinehashcrack.enabled = false
main.plugins.onlinehashcrack.email = ""
main.plugins.onlinehashcrack.dashboard = ""
main.plugins.onlinehashcrack.single_files = false

main.plugins.session-stats.enabled = true
main.plugins.session-stats.save_directory = "/var/tmp/pwnagotchi/sessions/"

main.plugins.webcfg.enabled = true

main.plugins.wpa-sec.enabled = true
main.plugins.wpa-sec.api_key = "code"
main.plugins.wpa-sec.api_url = "https://wpa-sec.stanev.org"
main.plugins.wpa-sec.download_results = true

main.plugins.handshakes-dl.enabled = true

main.plugins.memtemp-plus.enabled = true
main.plugins.memtemp-plus.scale = "celsius"
main.plugins.memtemp-plus.orientation = "horizontal"
main.plugins.memtemp-plus.fields = "mem,cpu,freq,temp"
main.plugins.memtemp-plus.position = "175,82"
main.plugins.memtemp-plus.linespacing = 13

main.plugins.wpa-sec-list.enabled = true

main.plugins.aircrackonly.enabled = false

main.plugins.gpio_buttons.enabled = false

main.plugins.gps.enabled = false
main.plugins.gps.speed = 19200
main.plugins.gps.device = "/dev/ttyUSB0"

main.plugins.pisugar2.enabled = false
main.plugins.pisugar2.shutdown = 5
main.plugins.pisugar2.sync_rtc_on_boot = false

main.plugins.ups_hat_c.enabled = false
main.plugins.ups_hat_c.label_on = true
main.plugins.ups_hat_c.shutdown = 5
main.plugins.ups_hat_c.bat_x_coord = 140
main.plugins.ups_hat_c.bat_y_coord = 0

main.plugins.ups_lite.enabled = false
main.plugins.ups_lite.shutdown = 2

main.plugins.webgpsmap.enabled = false

main.plugins.wigle.enabled = false
main.plugins.wigle.api_key = ""
main.plugins.wigle.donate = false

main.plugins.net-pos.enabled = false
main.plugins.net-pos.api_key = "test"

main.plugins.IPDisplay.enabled = true
main.plugins.IPDisplay.skip_devices = [ "lo",]

main.plugins.display-password.enabled = true
main.plugins.display-password.orientation = "horizontal"

main.plugins.internet-connection.enabled = true

main.plugins.cuff.enabled = false
main.plugins.cuff.whitelist = ""

main.plugins.hashieclean.enabled = false

main.plugins.better_quickdic.enabled = true
main.plugins.better_quickdic.face = "(·ω·)"
main.plugins.better_quickdic.wordlist_folder = "/home/pi/wordlists/"
main.plugins.better_quickdic.api = ""
main.plugins.better_quickdic.id = ""

main.plugins.tweak_view.enabled = true

main.plugins.exp.enabled = true
main.plugins.exp.lvl_x_coord = 156
main.plugins.exp.lvl_y_coord = 72
main.plugins.exp.exp_x_coord = 196
main.plugins.exp.exp_y_coord = 72
main.plugins.exp.bar_symbols_count = 8

main.plugins.enable_deauth.enabled = false

main.plugins.enable_assoc.enabled = true

main.confd = "/etc/pwnagotchi/conf.d/"
main.custom_plugin_repos = [
 "https://github.com/jayofelony/pwnagotchi-torch-plugins/archive/master.zip",
 "https://github.com/tisboyo/pwnagotchi-pisugar2-plugin/archive/master.zip",
 "https://github.com/nullm0ose/pwnagotchi-plugin-pisugar3/archive/master.zip",
 "https://github.com/Sniffleupagus/pwnagotchi_plugins/archive/master.zip",
 "https://github.com/NeonLightning/pwny/archive/master.zip",
 "https://github.com/marbasec/UPSLite_Plugin_1_3/archive/master.zip",
]
main.custom_plugins = "/usr/local/share/pwnagotchi/custom-plugins/"
main.plugin.gdrivesync.interval = 1

main.iface = "wlan0mon"
main.mon_start_cmd = "/usr/bin/monstart"
main.mon_stop_cmd = "/usr/bin/monstop"
main.mon_max_blind_epochs = 50
main.no_restart = false
main.log.path = "/etc/pwnagotchi/log/pwnagotchi.log"
main.log.rotation.enabled = true
main.log.rotation.size = "10M"

ui.display.enabled = true
ui.display.type = "waveshare_3"
ui.display.color = "black"
ui.display.rotation = 180

ui.invert = true
ui.fps = 0
ui.font.name = "DejaVuSansMono"
ui.font.size_offset = 0

ui.faces.look_r = "( ⚆_⚆)"
ui.faces.look_l = "(☉_☉ )"
ui.faces.look_r_happy = "( ◕‿◕)"
ui.faces.look_l_happy = "(◕‿◕ )"
ui.faces.sleep = "(⇀‿‿↼)"
ui.faces.sleep2 = "(≖‿‿≖)"
ui.faces.awake = "(◕‿‿◕)"
ui.faces.bored = "(-__-)"
ui.faces.intense = "(°▃▃°)"
ui.faces.cool = "(⌐■_■)"
ui.faces.happy = "(•‿‿•)"
ui.faces.excited = "(ᵔ◡◡ᵔ)"
ui.faces.grateful = "(^‿‿^)"
ui.faces.motivated = "(☼‿‿☼)"
ui.faces.demotivated = "(≖__≖)"
ui.faces.smart = "(✜‿‿✜)"
ui.faces.lonely = "(ب__ب)"
ui.faces.sad = "(╥☁╥ )"
ui.faces.angry = "(-_-')"
ui.faces.friend = "(♥‿‿♥)"
ui.faces.broken = "(☓‿‿☓)"
ui.faces.debug = "(#__#)"
ui.faces.upload = "(1__0)"
ui.faces.upload1 = "(1__1)"
ui.faces.upload2 = "(0__1)"
ui.faces.png = false
ui.faces.position_x = 0
ui.faces.position_y = 34

ui.web.enabled = true
ui.web.address = "::"
ui.web.username = "changme"
ui.web.password = "changme"
ui.web.origin = ""
ui.web.port = 8080
ui.web.on_frame = ""

ai.enabled = true
ai.path = "/root/brain.nn"
ai.laziness = 0.1
ai.epochs_per_episode = 50
ai.params.gamma = 0.99
ai.params.n_steps = 1
ai.params.vf_coef = 0.25
ai.params.ent_coef = 0.01
ai.params.max_grad_norm = 0.5
ai.params.learning_rate = 0.001
ai.params.verbose = 1

personality.advertise = true
personality.deauth = true
personality.associate = true
personality.channels = [
 3,
 4,
 6,
 8,
 10,
 12,
 14,
]
personality.min_rssi = -136
personality.ap_ttl = 270
personality.sta_ttl = 223
personality.recon_time = 35
personality.max_inactive_scale = 5
personality.recon_inactive_multiplier = 1
personality.hop_recon_time = 30
personality.min_recon_time = 1
personality.max_interactions = 7
personality.max_misses_for_recon = 3
personality.excited_num_epochs = 19
personality.bored_num_epochs = 26
personality.sad_num_epochs = 27
personality.bond_encounters_factor = 20000
personality.throttle_a = 0.4
personality.throttle_d = 0.9
personality.clear_on_exit = true

bettercap.handshakes = "/home/pi/handshakes"
bettercap.silence = [
 "ble.device.new",
 "ble.device.lost",
 "ble.device.disconnected",
 "ble.device.connected",
 "ble.device.service.discovered",
 "ble.device.characteristic.discovered",
 "wifi.client.new",
 "wifi.client.lost",
 "wifi.client.probe",
 "wifi.ap.new",
 "wifi.ap.lost",
 "mod.started",
]

fs.memory.enabled = true
fs.memory.mounts.log.enabled = true
fs.memory.mounts.log.mount = "/etc/pwnagotchi/log/"
fs.memory.mounts.log.size = "50M"
fs.memory.mounts.log.sync = 60
fs.memory.mounts.log.zram = true
fs.memory.mounts.log.rsync = true

fs.memory.mounts.data.enabled = true
fs.memory.mounts.data.mount = "/var/tmp/pwnagotchi"
fs.memory.mounts.data.size = "10M"
fs.memory.mounts.data.sync = 3600
fs.memory.mounts.data.zram = true
fs.memory.mounts.data.rsync = true
SHUR1K-N commented 4 weeks ago
  1. Are you on jayofelony's v2.8.9 Pwnagotchi image?
  2. Where exactly have you copied all the plugins from this project to on your Pwny?
  3. Have you tried using the config.toml from this project without making a single change to it?
Narfianer commented 4 weeks ago
  1. I tried 10 times to install the image from jayofelony, but it always failed. I tried different versions and also used different programs, like BalenaEtcher and also the Raspberry Pi Imager as described in the instructions. Does it really only work on this version?

  2. I copied the plugins into the folder as described in the video, using FileZilla.

  3. I'll try that, but if point one is wrong, then that's probably the reason

SHUR1K-N commented 4 weeks ago

Can't say for sure, but this project's only been tested on jayofelony's 2–3 latest image versions. Also, worth noting that at least 2 people have reported similar issues and they were running other/older images.

SHUR1K-N commented 4 weeks ago

Closing this for now. I recommend figuring out flashing jayofelony's v2.8.9 image before trying this project. If you still have issues after flashing the recommended image, you can re-open this Issue or create a new one. Good luck! :)

Narfianer commented 3 weeks ago

Unfortunately, I only got around to continuing yesterday. It was my mistake, of course. I tried to install the image on my Zero W using the Raspberry Imager, but I always selected Zero 2 W as the hardware, so it didn't work. Now I've got the Pwnagotchi working, but unfortunately the better_quickdic is still not displayed, even though it's installed.

SHUR1K-N commented 3 weeks ago

better_quickdic has pretty much no on-screen presence (other than when a handshake is cracked). Or do you mean you don't see the plugin toggle altogether in the web UI's plugins tab?

Narfianer commented 2 weeks ago

Sorry, but I can't get as involved with the Pwnagotchi as I would like. The button doesn't exist and I can't really activate it.

SHUR1K-N commented 2 weeks ago

Make sure the better_quick.py file exists in /usr/local/share/pwnagotchi/custom-plugins/ and that config.toml has the following lines:

main.plugins.better_quickdic.enabled = true
main.plugins.better_quickdic.face = "(·ω·)"
main.plugins.better_quickdic.wordlist_folder = "/home/pi/wordlists/"
main.plugins.better_quickdic.api = ""
main.plugins.better_quickdic.id = ""