This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": [ | |
{ | |
"id": "1", | |
"name": "Socks Proxy", | |
"version": "v1.0.2", | |
"description": "A Dante SOCKS v5 proxy server add-on for RaspAP", | |
"author": "Bill Z", | |
"author_uri": "https://github.com/billz", | |
"plugin_uri": "https://github.com/billz/SocksProxy", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.modules = ( | |
"mod_indexfile", | |
"mod_access", | |
"mod_alias", | |
"mod_redirect", | |
) | |
server.document-root = "/var/www/html" | |
server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) | |
server.errorlog = "/var/log/lighttpd/error.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ssid = "my_ssid"; | |
$network['passphrase'] = "my_passphrase"; | |
$wpa_file = fopen('/tmp/wifidata', 'w'); | |
if (strlen($network['passphrase']) >=8 && strlen($network['passphrase']) <= 63) { | |
unset($wpa_passphrase); | |
unset($line); | |
exec('wpa_passphrase '. ssid2utf8( escapeshellarg($ssid) ) . ' ' . escapeshellarg($network['passphrase']), $wpa_passphrase); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author URI: https://github.com/billz/ | |
# Use /dev/random to generate a strong random passphrase. | |
# If pronounceable, but less secure, passphrases are desired, install gpw (sudo apt install gpw) | |
# and replace it with: gpw 1 24 | |
readonly HOSTAPD="/etc/hostapd/hostapd.conf" | |
readonly PASSPHRASE=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '') | |
echo "Your new passphrase is: ${PASSPHRASE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/" | |
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh | |
source /tmp/raspapcommon.sh | |
function update_system_packages() { | |
install_log "Updating sources" | |
sudo apt-get update || install_error "Unable to update package list" | |
} | |
function install_dependencies() { |