mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge branch 'jayofelony:master' into log-changes
This commit is contained in:
@ -21,8 +21,8 @@ variable "pwn_version" {
|
|||||||
|
|
||||||
source "arm-image" "rpi64-pwnagotchi" {
|
source "arm-image" "rpi64-pwnagotchi" {
|
||||||
image_type = "raspberrypi"
|
image_type = "raspberrypi"
|
||||||
iso_url = "https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz"
|
iso_url = "https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz"
|
||||||
iso_checksum = "sha256:58a3ec57402c86332e67789a6b8f149aeeb4e7bb0a16c9388a66ea6e07012e45"
|
iso_checksum = "sha256:43d150e7901583919e4eb1f0fa83fe0363af2d1e9777a5bb707d696d535e2599"
|
||||||
output_filename = "../../../pwnagotchi-64bit.img"
|
output_filename = "../../../pwnagotchi-64bit.img"
|
||||||
qemu_binary = "qemu-aarch64-static"
|
qemu_binary = "qemu-aarch64-static"
|
||||||
target_image_size = 19969908736
|
target_image_size = 19969908736
|
||||||
@ -30,8 +30,8 @@ source "arm-image" "rpi64-pwnagotchi" {
|
|||||||
|
|
||||||
source "arm-image" "rpi32-pwnagotchi" {
|
source "arm-image" "rpi32-pwnagotchi" {
|
||||||
image_type = "raspberrypi"
|
image_type = "raspberrypi"
|
||||||
iso_url = "https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-03-15/2024-03-15-raspios-bookworm-armhf-lite.img.xz"
|
iso_url = "https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-07-04/2024-07-04-raspios-bookworm-armhf-lite.img.xz"
|
||||||
iso_checksum = "sha256:4fa99737265ac338a9ed0643f502246b97b928e5dfffa92939242e26e290638d"
|
iso_checksum = "sha256:df9c192d66d35e1ce67acde33a5b5f2b81ff02d2b986ea52f1f6ea211d646a1b"
|
||||||
output_filename = "../../../pwnagotchi-32bit.img"
|
output_filename = "../../../pwnagotchi-32bit.img"
|
||||||
qemu_binary = "qemu-arm-static"
|
qemu_binary = "qemu-arm-static"
|
||||||
qemu_args = ["-cpu", "arm1176"]
|
qemu_args = ["-cpu", "arm1176"]
|
||||||
|
@ -34,7 +34,7 @@ if [ -d /etc/profile.d ]; then
|
|||||||
fi
|
fi
|
||||||
alias custom='cd /usr/local/share/pwnagotchi/custom-plugins/'
|
alias custom='cd /usr/local/share/pwnagotchi/custom-plugins/'
|
||||||
alias config='sudo nano /etc/pwnagotchi/config.toml'
|
alias config='sudo nano /etc/pwnagotchi/config.toml'
|
||||||
alias pwnlog='tail -f -n300 /etc/pwnagotchi/log/pwn*.log | sed --unbuffered "s/,[[:digit:]]\\{3\\}\\]//g" | cut -d " " -f 2-'
|
alias pwnlog='tail -f -n300 /etc/pwnagotchi/log/pwnagotchi.log | sed --unbuffered "s/,[[:digit:]]\\{3\\}\\]//g" | cut -d " " -f 2-'
|
||||||
alias pwnver='python3 -c "import pwnagotchi as p; print(p.__version__)"'
|
alias pwnver='python3 -c "import pwnagotchi as p; print(p.__version__)"'
|
||||||
alias pwnkill='sudo killall -USR1 pwnagotchi'
|
alias pwnkill='sudo killall -USR1 pwnagotchi'
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ if [ -d /etc/profile.d ]; then
|
|||||||
fi
|
fi
|
||||||
alias custom='cd /usr/local/share/pwnagotchi/custom-plugins/'
|
alias custom='cd /usr/local/share/pwnagotchi/custom-plugins/'
|
||||||
alias config='sudo nano /etc/pwnagotchi/config.toml'
|
alias config='sudo nano /etc/pwnagotchi/config.toml'
|
||||||
alias pwnlog='tail -f -n300 /etc/pwnagotchi/log/pwn*.log | sed --unbuffered "s/,[[:digit:]]\\{3\\}\\]//g" | cut -d " " -f 2-'
|
alias pwnlog='tail -f -n300 /etc/pwnagotchi/log/pwnagotchi.log | sed --unbuffered "s/,[[:digit:]]\\{3\\}\\]//g" | cut -d " " -f 2-'
|
||||||
alias pwnver='python3 -c "import pwnagotchi as p; print(p.__version__)"'
|
alias pwnver='python3 -c "import pwnagotchi as p; print(p.__version__)"'
|
||||||
alias pwnkill='sudo killall -USR1 pwnagotchi'
|
alias pwnkill='sudo killall -USR1 pwnagotchi'
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ variable "pwn_version" {
|
|||||||
|
|
||||||
source "arm-image" "rpi32-pwnagotchi" {
|
source "arm-image" "rpi32-pwnagotchi" {
|
||||||
image_type = "raspberrypi"
|
image_type = "raspberrypi"
|
||||||
iso_url = "https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-03-15/2024-03-15-raspios-bookworm-armhf-lite.img.xz"
|
iso_url = "https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-07-04/2024-07-04-raspios-bookworm-armhf-lite.img.xz"
|
||||||
iso_checksum = "sha256:4fa99737265ac338a9ed0643f502246b97b928e5dfffa92939242e26e290638d"
|
iso_checksum = "sha256:df9c192d66d35e1ce67acde33a5b5f2b81ff02d2b986ea52f1f6ea211d646a1b"
|
||||||
output_filename = "../../../pwnagotchi-32bit.img"
|
output_filename = "../../../pwnagotchi-32bit.img"
|
||||||
qemu_binary = "qemu-arm-static"
|
qemu_binary = "qemu-arm-static"
|
||||||
qemu_args = ["-cpu", "arm1176"]
|
qemu_args = ["-cpu", "arm1176"]
|
||||||
|
@ -58,7 +58,6 @@
|
|||||||
remove:
|
remove:
|
||||||
- nfs-common
|
- nfs-common
|
||||||
- triggerhappy
|
- triggerhappy
|
||||||
- wpasupplicant
|
|
||||||
install:
|
install:
|
||||||
- aircrack-ng
|
- aircrack-ng
|
||||||
- autoconf
|
- autoconf
|
||||||
@ -110,7 +109,6 @@
|
|||||||
- python3-smbus
|
- python3-smbus
|
||||||
- qpdf
|
- qpdf
|
||||||
- raspberrypi-kernel-headers
|
- raspberrypi-kernel-headers
|
||||||
- raspberrypi-sys-mods
|
|
||||||
- rsync
|
- rsync
|
||||||
- tcpdump
|
- tcpdump
|
||||||
- texinfo
|
- texinfo
|
||||||
@ -543,6 +541,13 @@
|
|||||||
autoremove: yes
|
autoremove: yes
|
||||||
when: removed.changed
|
when: removed.changed
|
||||||
|
|
||||||
|
- name: install rpi-sys-mods again?
|
||||||
|
apt:
|
||||||
|
state: present
|
||||||
|
name: raspberrypi-sys-mods
|
||||||
|
update_cache: yes
|
||||||
|
install_recommends: no
|
||||||
|
|
||||||
- name: clean apt cache
|
- name: clean apt cache
|
||||||
apt:
|
apt:
|
||||||
autoclean: true
|
autoclean: true
|
||||||
|
@ -21,8 +21,8 @@ variable "pwn_version" {
|
|||||||
|
|
||||||
source "arm-image" "rpi64-pwnagotchi" {
|
source "arm-image" "rpi64-pwnagotchi" {
|
||||||
image_type = "raspberrypi"
|
image_type = "raspberrypi"
|
||||||
iso_url = "https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz"
|
iso_url = "https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64-lite.img.xz"
|
||||||
iso_checksum = "sha256:58a3ec57402c86332e67789a6b8f149aeeb4e7bb0a16c9388a66ea6e07012e45"
|
iso_checksum = "sha256:43d150e7901583919e4eb1f0fa83fe0363af2d1e9777a5bb707d696d535e2599"
|
||||||
output_filename = "../../../pwnagotchi-64bit.img"
|
output_filename = "../../../pwnagotchi-64bit.img"
|
||||||
qemu_binary = "qemu-aarch64-static"
|
qemu_binary = "qemu-aarch64-static"
|
||||||
target_image_size = 19969908736
|
target_image_size = 19969908736
|
||||||
|
@ -55,7 +55,6 @@
|
|||||||
- dhpys-swapfile
|
- dhpys-swapfile
|
||||||
- nfs-common
|
- nfs-common
|
||||||
- triggerhappy
|
- triggerhappy
|
||||||
- wpasupplicant
|
|
||||||
install:
|
install:
|
||||||
- aircrack-ng
|
- aircrack-ng
|
||||||
- autoconf
|
- autoconf
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
import gym
|
import gymnasium as gym
|
||||||
from gym import spaces
|
from gymnasium import spaces
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import pwnagotchi.ai.featurizer as featurizer
|
import pwnagotchi.ai.featurizer as featurizer
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
from gym import spaces
|
from gymnasium import spaces
|
||||||
|
|
||||||
|
|
||||||
class Parameter(object):
|
class Parameter(object):
|
||||||
def __init__(self, name, value=0.0, min_value=0, max_value=2, meta=None, trainable=True):
|
def __init__(self, name, value=0.0, min_value=0, max_value=2, meta=None, trainable=True):
|
||||||
|
@ -16,7 +16,6 @@ dependencies = [
|
|||||||
"flask-wtf",
|
"flask-wtf",
|
||||||
"gast",
|
"gast",
|
||||||
"gpiozero",
|
"gpiozero",
|
||||||
"gym",
|
|
||||||
"inky",
|
"inky",
|
||||||
"pycryptodome",
|
"pycryptodome",
|
||||||
"pydrive2",
|
"pydrive2",
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
gym
|
|
||||||
shimmy
|
shimmy
|
||||||
pycryptodome
|
pycryptodome
|
||||||
requests
|
requests
|
||||||
@ -22,3 +21,8 @@ stable_baselines3
|
|||||||
rpi-lgpio
|
rpi-lgpio
|
||||||
rpi_hardware_pwm
|
rpi_hardware_pwm
|
||||||
pydrive2
|
pydrive2
|
||||||
|
setuptools
|
||||||
|
gymnasium
|
||||||
|
numpy
|
||||||
|
smbus
|
||||||
|
gpiozero
|
Reference in New Issue
Block a user