From bba74851a24b100c19af5e5db9c9978202f67e2b Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 11:53:09 +0200 Subject: [PATCH 01/19] Create install.sh --- install.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..b0e95c3 --- /dev/null +++ b/install.sh @@ -0,0 +1,31 @@ +#!/bin/bash +BSSID="h0tsp0t" +WPA2PASS="supersecretpassword" +DEPS="git bash util-linux dnsmasq iptables procps hostapd iproute iw iwconig haveged" + +#################################################### +### create_ap installation script made by rizzo ### +#################################################### + +echo "installing dependencies" +sudo apt-get install $DEPS + +echo "cloning create_ap git" +git clone https://github.com/oblique/create_ap +cd create_ap +echo "installing create_ap from git clone" +sudo make install + +echo "edit /etc/create_ap.conf" +sudo nano /etc/create_ap.conf + +echo "making create_ap start at boot" +systemctl enable create_ap +echo "create_ap starts at boot" + +#uncomment this to start create_ap with systemctl +#echo "start create_ap now (with settings from /etc/create_ap.conf)" +#systemctl start create_ap + +#uncomment this to manually start create_ap +#create_ap wlan0 eth0 $BSSID $WPA2PASS From a58e2673b6af229b9c47df62ad400336d8aed698 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 11:54:02 +0200 Subject: [PATCH 02/19] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b0e95c3..dc8395a 100644 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ echo "installing dependencies" sudo apt-get install $DEPS echo "cloning create_ap git" -git clone https://github.com/oblique/create_ap +git clone https://github.com/itsdarklikehell/create_ap cd create_ap echo "installing create_ap from git clone" sudo make install From af87c0fd903a6ca5ae6a0d382343da15f4778434 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 11:57:29 +0200 Subject: [PATCH 03/19] Update install.sh --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index dc8395a..2509ae9 100644 --- a/install.sh +++ b/install.sh @@ -17,6 +17,7 @@ echo "installing create_ap from git clone" sudo make install echo "edit /etc/create_ap.conf" +echo "make sure to set the right values" sudo nano /etc/create_ap.conf echo "making create_ap start at boot" From 0523b4aab3a0175c88d7ff82bb9189a30c8144a1 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 12:01:47 +0200 Subject: [PATCH 04/19] Update install.sh --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 2509ae9..addc630 100644 --- a/install.sh +++ b/install.sh @@ -20,13 +20,13 @@ echo "edit /etc/create_ap.conf" echo "make sure to set the right values" sudo nano /etc/create_ap.conf -echo "making create_ap start at boot" -systemctl enable create_ap -echo "create_ap starts at boot" +#uncomment this tomake create_ap start at boot" +#echo "making create_ap start at boot" +#systemctl enable create_ap #uncomment this to start create_ap with systemctl #echo "start create_ap now (with settings from /etc/create_ap.conf)" #systemctl start create_ap -#uncomment this to manually start create_ap +#uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script #create_ap wlan0 eth0 $BSSID $WPA2PASS From c5f0bdcd72dfc9c3442747d49701130b0562d661 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 12:03:35 +0200 Subject: [PATCH 05/19] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index addc630..896e8e1 100644 --- a/install.sh +++ b/install.sh @@ -20,7 +20,7 @@ echo "edit /etc/create_ap.conf" echo "make sure to set the right values" sudo nano /etc/create_ap.conf -#uncomment this tomake create_ap start at boot" +#uncomment this to make create_ap start at boot" #echo "making create_ap start at boot" #systemctl enable create_ap From bf817b0441b9891cd01ba8b6be60079c4541b47c Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 12:20:37 +0200 Subject: [PATCH 06/19] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a56e643..313f84d 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ ## 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 cd create_ap From 011b42d53a785f481d80bb8eec910784e9b559eb Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sun, 15 Oct 2017 12:21:48 +0200 Subject: [PATCH 07/19] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 313f84d..b02f9e6 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ ## Installation -### using curl +### 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 cd create_ap make install From 49e94c152b92bf02fe6de62fe594a967d4bb1890 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Mon, 16 Oct 2017 19:24:34 +0200 Subject: [PATCH 08/19] Update install.sh --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 896e8e1..fbdd042 100644 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash BSSID="h0tsp0t" WPA2PASS="supersecretpassword" -DEPS="git bash util-linux dnsmasq iptables procps hostapd iproute iw iwconig haveged" +DEPS="git bash util-linux dnsmasq isc-dhcp-server net-tools iptables procps hostapd iproute iw haveged" #################################################### ### create_ap installation script made by rizzo ### @@ -22,11 +22,11 @@ sudo nano /etc/create_ap.conf #uncomment this to make create_ap start at boot" #echo "making create_ap start at boot" -#systemctl enable create_ap +systemctl enable create_ap #uncomment this to start create_ap with systemctl #echo "start create_ap now (with settings from /etc/create_ap.conf)" -#systemctl start create_ap +systemctl start create_ap #uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script -#create_ap wlan0 eth0 $BSSID $WPA2PASS +create_ap wlan0 eth0 $BSSID $WPA2PASS From 2883498200fcfcaf782357ba6091d6e409732fd4 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Mon, 16 Oct 2017 19:32:12 +0200 Subject: [PATCH 09/19] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fbdd042..5c98a11 100644 --- a/install.sh +++ b/install.sh @@ -29,4 +29,4 @@ systemctl enable create_ap systemctl start create_ap #uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script -create_ap wlan0 eth0 $BSSID $WPA2PASS +sudo create_ap wlan0 eth0 $BSSID $WPA2PASS From cc81e09f82e88754c5df71571269d6bf77ca87de Mon Sep 17 00:00:00 2001 From: hans molenaar Date: Mon, 23 Oct 2017 19:49:43 +0200 Subject: [PATCH 10/19] modified: install.sh --- install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 install.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 From 53c33878c0d3a54ae13e34c335417c3d53b08408 Mon Sep 17 00:00:00 2001 From: hans molenaar Date: Mon, 23 Oct 2017 19:56:27 +0200 Subject: [PATCH 11/19] modified: install.sh --- install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 5c98a11..9dde308 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash BSSID="h0tsp0t" WPA2PASS="supersecretpassword" -DEPS="git bash util-linux dnsmasq isc-dhcp-server net-tools iptables procps hostapd iproute iw haveged" +DEPS="git bash util-linux procps hostapd iproute iw haveged dnsmasq isc-dhcp-server net-tools iptables" #################################################### ### create_ap installation script made by rizzo ### @@ -10,6 +10,7 @@ DEPS="git bash util-linux dnsmasq isc-dhcp-server net-tools iptables procps host 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 @@ -24,9 +25,11 @@ sudo nano /etc/create_ap.conf #echo "making create_ap start at boot" systemctl enable create_ap -#uncomment this to start create_ap with systemctl +#uncomment this to start create_ap with systemctl #echo "start create_ap now (with settings from /etc/create_ap.conf)" systemctl start create_ap #uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script -sudo create_ap wlan0 eth0 $BSSID $WPA2PASS +#sudo create_ap wlan0 eth0 $BSSID $WPA2PASS + +echo "if all succedded there should now be a network with the supplied config" From d01a6fd1caa6c5825549bd5366708aacc3b304cc Mon Sep 17 00:00:00 2001 From: hans molenaar Date: Mon, 23 Oct 2017 20:05:04 +0200 Subject: [PATCH 12/19] modified: install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9dde308..910b1ec 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash BSSID="h0tsp0t" WPA2PASS="supersecretpassword" -DEPS="git bash util-linux procps hostapd iproute iw haveged dnsmasq isc-dhcp-server net-tools iptables" +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 ### @@ -15,7 +15,7 @@ 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 +make install echo "edit /etc/create_ap.conf" echo "make sure to set the right values" From 7c229d55d481a12a375864e84b1f4655f0f47d63 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sat, 21 Apr 2018 18:11:13 +0200 Subject: [PATCH 13/19] Update install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 910b1ec..0f43d64 100755 --- a/install.sh +++ b/install.sh @@ -22,12 +22,12 @@ echo "make sure to set the right values" sudo nano /etc/create_ap.conf #uncomment this to make create_ap start at boot" -#echo "making create_ap start at boot" -systemctl enable create_ap +echo "making create_ap start at boot" +sudo systemctl enable create_ap #uncomment this to start create_ap with systemctl #echo "start create_ap now (with settings from /etc/create_ap.conf)" -systemctl start create_ap +sudo systemctl start create_ap #uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script #sudo create_ap wlan0 eth0 $BSSID $WPA2PASS From 12fd288a4a3406474dd9d42dd2ecf535e1d7069a Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sat, 21 Apr 2018 18:16:23 +0200 Subject: [PATCH 14/19] Update install.sh --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 0f43d64..1a4773a 100755 --- a/install.sh +++ b/install.sh @@ -17,6 +17,11 @@ cd create_ap echo "installing create_ap from git clone" make install +echo "Please enter the BSSID network name: " +read BSSID +echo "Please enter the WPA2 Paasword to use: " +read WPA2PASS + echo "edit /etc/create_ap.conf" echo "make sure to set the right values" sudo nano /etc/create_ap.conf From 4f360566aaa00a4a7f018f9af6e900ef9c41fcd0 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sat, 21 Apr 2018 18:23:49 +0200 Subject: [PATCH 15/19] Update install.sh --- install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 1a4773a..5ddb93e 100755 --- a/install.sh +++ b/install.sh @@ -17,11 +17,20 @@ cd create_ap echo "installing create_ap from git clone" 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 Paasword to use: " read WPA2PASS +#uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script +sudo create_ap $APFC $INTER $BSSID $WPA2PASS +echo "there should now be a network with the supplied name and key now." +read -p + echo "edit /etc/create_ap.conf" echo "make sure to set the right values" sudo nano /etc/create_ap.conf @@ -34,7 +43,4 @@ sudo systemctl enable create_ap #echo "start create_ap now (with settings from /etc/create_ap.conf)" sudo systemctl start create_ap -#uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script -#sudo create_ap wlan0 eth0 $BSSID $WPA2PASS - echo "if all succedded there should now be a network with the supplied config" From 20b6edc1153f28b59d35b1fc101687560b20e45c Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sat, 21 Apr 2018 18:25:42 +0200 Subject: [PATCH 16/19] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5ddb93e..d51102f 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ echo "cloning create_ap git" git clone https://github.com/itsdarklikehell/create_ap cd create_ap echo "installing create_ap from git clone" -make install +sudo make install echo "Please enter the internet interface (eth0, wlan0 or wlxxxxxxxxxx): " read INTER From de81db0c96ce95be2727e9b19b99d963831246b6 Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sat, 21 Apr 2018 18:35:01 +0200 Subject: [PATCH 17/19] Update install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d51102f..b918797 100755 --- a/install.sh +++ b/install.sh @@ -23,13 +23,13 @@ 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 Paasword to use: " +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 sudo create_ap $APFC $INTER $BSSID $WPA2PASS -echo "there should now be a network with the supplied name and key now." -read -p +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" echo "make sure to set the right values" From 7c94d362cb362bc244cf0adbf497dee6b87a247c Mon Sep 17 00:00:00 2001 From: bauke molenaar Date: Sat, 21 Apr 2018 18:40:58 +0200 Subject: [PATCH 18/19] Update install.sh --- install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index b918797..2dccb93 100755 --- a/install.sh +++ b/install.sh @@ -28,19 +28,22 @@ read WPA2PASS #uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script 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" -echo "make sure to set the right values" +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 "start create_ap now (with settings from /etc/create_ap.conf)" +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" +echo "if all succedded there should now be a network with the supplied config in /etc/create_ap.conf" From bdd3d1d88b145a3523baea93c5564cbdf048fd73 Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 27 Apr 2018 21:42:02 +0200 Subject: [PATCH 19/19] modified: install.sh --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 2dccb93..adb701e 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,7 @@ 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."