Updated instructions so you can use this repo and the pi-gen repo to create your images
This commit is contained in:
13
pi-gen/stageDTPM3/00-install-packages/00-packages-nr
Normal file
13
pi-gen/stageDTPM3/00-install-packages/00-packages-nr
Normal file
@@ -0,0 +1,13 @@
|
||||
git
|
||||
ca-certificates
|
||||
build-essential
|
||||
pkg-config
|
||||
libreadline-dev
|
||||
gcc-arm-none-eabi
|
||||
libnewlib-dev
|
||||
libbz2-dev
|
||||
libbluetooth-dev
|
||||
libpython3-dev
|
||||
libssl-dev
|
||||
hostapd
|
||||
dnsmasq
|
||||
10
pi-gen/stageDTPM3/01-proxmark3/00-run-chroot.sh
Normal file
10
pi-gen/stageDTPM3/01-proxmark3/00-run-chroot.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
su - dt
|
||||
git clone https://github.com/RfidResearchGroup/proxmark3
|
||||
cd proxmark3
|
||||
echo PLATFORM=PM3GENERIC > Makefile.platform
|
||||
#make clean && make -j
|
||||
exit
|
||||
#make install
|
||||
|
||||
35
pi-gen/stageDTPM3/02-Wireless-AP/00-run-chroot.sh
Normal file
35
pi-gen/stageDTPM3/02-Wireless-AP/00-run-chroot.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
cat << EOF >> /etc/dhcpcd.conf
|
||||
|
||||
inteface wlan0
|
||||
static ip_address=192.168.23.1/24
|
||||
|
||||
EOF
|
||||
|
||||
mv /etc/dnsmasq.conf /etc/dnsmasq.orig
|
||||
|
||||
cat << EOF > /etc/dnsmasq.conf
|
||||
interface=wlan0
|
||||
dhcp-range=192.168.23.17,192.168.23.42,255.255.255.0,24h
|
||||
EOF
|
||||
|
||||
cat << EOF > /etc/hostapd/hostapd.conf
|
||||
interface=wlan0
|
||||
country_code=US
|
||||
hw_mode=g
|
||||
channel=7
|
||||
wmm_enabled=0
|
||||
macaddr_acl=0
|
||||
auth_algs=1
|
||||
ignore_broadcast_ssid=0
|
||||
wpa=2
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
wpa_pairwise=TKIP
|
||||
rsn_pairwise=CCMP
|
||||
ssid=PM3
|
||||
wpa_passphrase=DangerousThings
|
||||
EOF
|
||||
|
||||
sed -i 's/#DAEMON_CONF=""/DAEMON_CONF="\/etc\/hostapd\/hostapd.conf"/' /etc/default/hostapd
|
||||
|
||||
16
pi-gen/stageDTPM3/03-ttyd/00-run-chroot.sh
Normal file
16
pi-gen/stageDTPM3/03-ttyd/00-run-chroot.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
#cd /usr/local/bin
|
||||
wget https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.aarch64
|
||||
wget https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.armhf
|
||||
wget https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.arm
|
||||
|
||||
|
||||
cat << EOF > /usr/local/bin/ttyd
|
||||
#! /bin/bash
|
||||
/usr/local/bin/ttyd.`/usr/bin/uname -m` $@
|
||||
EOF
|
||||
|
||||
chown root:root /usr/local/bin/ttyd*
|
||||
chmod a+x /usr/local/bin/ttyd*
|
||||
|
||||
4
pi-gen/stageDTPM3/EXPORT_IMAGE
Normal file
4
pi-gen/stageDTPM3/EXPORT_IMAGE
Normal file
@@ -0,0 +1,4 @@
|
||||
IMG_SUFFIX="-pm3"
|
||||
if [ "${USE_QEMU}" = "1" ]; then
|
||||
export IMG_SUFFIX="${IMG_SUFFIX}-qemu"
|
||||
fi
|
||||
2
pi-gen/stageDTPM3/SKIP_NOOBS
Normal file
2
pi-gen/stageDTPM3/SKIP_NOOBS
Normal file
@@ -0,0 +1,2 @@
|
||||
NOOBS_NAME="Raspberry Pi OS Lite PM3 (64-bit)"
|
||||
NOOBS_DESCRIPTION="A port of Debian with Proxmrk3 but no desktop environment"
|
||||
5
pi-gen/stageDTPM3/prerun.sh
Executable file
5
pi-gen/stageDTPM3/prerun.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
if [ ! -d "${ROOTFS_DIR}" ]; then
|
||||
copy_previous
|
||||
fi
|
||||
Reference in New Issue
Block a user