From e37ab7a126f2e9038b8b5f8e1d51868539027251 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 6 Jan 2024 21:45:11 +0100 Subject: [PATCH] Update --- README.md | 4 ++-- .../data/etc/systemd/system/pwngrid-peer.service | 2 +- builder/raspberrypi64.yml | 2 +- pwnagotchi/defaults.toml | 14 +++++++------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5a619b9c..07a42520 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Download last image files [here](https://github.com/jayofelony/pwnagotchi-torch/releases/tag/v2.5.4), and let it auto-update from here on out. -**Use RPi imager to flash, if you want you can set a custom user/pass to ssh in.** +**Use RPi imager to flash, please don't flash a new user as this will mess with logs created.** -Default SSH credentials are pi/raspberry and for Orange Pi pi/orange +SSH credentials are pi/raspberry and for Orange Pi pi/orange Armhf is for 0w, arm64 is for 02w, 3 and 4. diff --git a/builder/data/etc/systemd/system/pwngrid-peer.service b/builder/data/etc/systemd/system/pwngrid-peer.service index 74fb3a17..0ea07f92 100644 --- a/builder/data/etc/systemd/system/pwngrid-peer.service +++ b/builder/data/etc/systemd/system/pwngrid-peer.service @@ -8,7 +8,7 @@ After=bettercap.service Environment=LD_PRELOAD=/usr/local/lib/libpcap.so.1 Environment=LD_LIBRARY_PATH=/usr/local/lib Type=simple -ExecStart=/usr/local/bin/pwngrid -keys /etc/pwnagotchi -peers /root/peers -address 127.0.0.1:8666 -client-token /root/.api-enrollment.json -wait -log /var/log/pwngrid-peer.log -iface wlan0mon +ExecStart=/usr/local/bin/pwngrid -keys /etc/pwnagotchi -peers /root/peers -address 127.0.0.1:8666 -client-token /root/.api-enrollment.json -wait -log /home/pi/logs/pwngrid-peer.log -iface wlan0mon Restart=always RestartSec=30 diff --git a/builder/raspberrypi64.yml b/builder/raspberrypi64.yml index 00617af9..f3fec713 100644 --- a/builder/raspberrypi64.yml +++ b/builder/raspberrypi64.yml @@ -518,7 +518,7 @@ - name: Add pwnlog alias lineinfile: dest: /home/pi/.bashrc - line: "\nalias pwnlog='tail -f -n300 /var/log/pwn*.log | sed --unbuffered \"s/,[[:digit:]]\\{3\\}\\]//g\" | cut -d \" \" -f 2-'" + line: "\nalias pwnlog='tail -f -n300 /home/pi/logs/pwn*.log | sed --unbuffered \"s/,[[:digit:]]\\{3\\}\\]//g\" | cut -d \" \" -f 2-'" insertafter: EOF - name: Add pwnver alias diff --git a/pwnagotchi/defaults.toml b/pwnagotchi/defaults.toml index cba919ed..a181d25b 100644 --- a/pwnagotchi/defaults.toml +++ b/pwnagotchi/defaults.toml @@ -122,11 +122,11 @@ main.whitelist = [ ] main.filter = "" -main.log.path = "/var/log/pwnagotchi.log" +main.log.path = "/home/pi/logs/pwnagotchi.log" main.log.rotation.enabled = true main.log.rotation.size = "10M" -ai.enabled = false +ai.enabled = true ai.path = "/root/brain.nn" ai.laziness = 0.1 ai.epochs_per_episode = 50 @@ -225,17 +225,17 @@ bettercap.silence = [ "mod.started" ] -fs.memory.enabled = false -fs.memory.mounts.log.enabled = false -fs.memory.mounts.log.mount = "/var/log" +fs.memory.enabled = true +fs.memory.mounts.log.enabled = true +fs.memory.mounts.log.mount = "/home/pi/logs" 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 = false +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 = false +fs.memory.mounts.data.zram = true fs.memory.mounts.data.rsync = true