Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

easy installation script #287

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@


## Installation
### Using curl
bash <(curl -Ls https://github.com/itsdarklikehell/create_ap/raw/master/install.sh)

### Generic
git clone https://github.com/oblique/create_ap
git clone https://github.com/itsdarklikehell/create_ap

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably don't want to pull this into oblique's repo :)

cd create_ap
make install

Expand Down
50 changes: 50 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash
BSSID="h0tsp0t"
WPA2PASS="supersecretpassword"
DEPS="git build-essential bash util-linux procps hostapd iproute iw haveged dnsmasq isc-dhcp-server net-tools iptables"

####################################################
### create_ap installation script made by rizzo ###
####################################################

echo "installing dependencies"
sudo apt-get install $DEPS

cd ~
echo "cloning create_ap git"
git clone https://github.com/itsdarklikehell/create_ap
cd create_ap
echo "installing create_ap from git clone"
sudo make install

echo "Please enter the internet interface (eth0, wlan0 or wlxxxxxxxxxx): "
read INTER
echo "Please enter the hotspot interface (wlan0 or wlxxxxxxxxxx): "
read APFC
echo "Please enter the BSSID network name: "
read BSSID
echo "Please enter the WPA2 Password to use: "
read WPA2PASS

#uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script
cd ~/create_ap
sudo create_ap $APFC $INTER $BSSID $WPA2PASS
echo ""
echo "there should now be a network called $BSSID on $APFC connected with $INTER now."
read -rsp $'Press enter to continue...\n'

echo "edit /etc/create_ap.conf to make a static config"
echo "please make sure to set the right values."
read -rsp $'Press enter to continue...\n'
sudo nano /etc/create_ap.conf

#uncomment this to make create_ap start at boot"
echo "making create_ap start at boot"
read -rsp $'Press enter to continue...\n'
sudo systemctl enable create_ap

#uncomment this to start create_ap with systemctl
echo "starting create_ap now (with settings from /etc/create_ap.conf)"
read -rsp $'Press enter to continue...\n'
sudo systemctl start create_ap
echo "if all succedded there should now be a network with the supplied config in /etc/create_ap.conf"