scripts stuff

This commit is contained in:
David Bryan 2019-10-31 19:14:47 -07:00
parent d28883ae2c
commit 0de32db384
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# this script will install proxmark3-rdv4, and all the things. # this script will install proxmark3-rdv4 on a raspiberry pi, and all the things.
sudo apt-get update && sudo apt-get -y install --no-install-recommends git ca-certificates build-essential pkg-config \ sudo apt-get update && sudo apt-get -y install --no-install-recommends git ca-certificates build-essential pkg-config \
libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask python3-flask-sqlalchemy hostapd dnsmasq python3-pip python3-dateutil python3-dateparser libev-dev gunicorn3 && \ libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask python3-flask-sqlalchemy hostapd dnsmasq python3-pip python3-dateutil python3-dateparser libev-dev gunicorn3 && \

View file

@ -1,18 +1,24 @@
#!/bin/bash #!/bin/bash
sudo systemctl stop dnsmasq && \ sudo systemctl stop dnsmasq && \
sudo systemctl stop hostapd && \ sudo systemctl stop hostapd && \
cat <<EOF >/tmp/dhcpcd.conf sudo cp /etc/dhcpcd.conf /tmp/dhcpcd.conf
cat <<EOF >>/tmp/dhcpcd.conf
interface wlan0 interface wlan0
static ip_address=192.168.4.1/24 static ip_address=192.168.4.1/24
nohook wpa_supplicant nohook wpa_supplicant
EOF EOF
sudo mv /tmp/dhcpcd.conf /etc/dhcpcd.conf sudo cp /tmp/dhcpcd.conf /etc/dhcpcd.conf
sudo service dhcpcd restart sudo service dhcpcd restart
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
cat <<EOF >/tmp/dnsmasq.conf cat <<EOF >/tmp/dnsmasq.conf
interface=wlan0 # Use the require wireless interface - usually wlan0 interface=wlan0 # Use the require wireless interface - usually wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
interface=br0
expand-hosts
domain=proxmark3-web.com
dhcp-range=192.168.20.100,192.168.20.150,12h
EOF EOF
sudo mv /tmp/dnsmasq.conf /etc/dnsmasq.conf sudo mv /tmp/dnsmasq.conf /etc/dnsmasq.conf
sudo systemctl reload dnsmasq sudo systemctl reload dnsmasq