4 Adding new portals (layout fake pages) - sirpedrotavares/wifi-lord3 GitHub Wiki

Note: To do this tutorial a release version 2016.2 of Kali operating system was used (available on: Kali).


Create new captive portal template

To create a new portal you have to perform the following steps:

  • Access the pages directory at script location.
  • Create a directory with the name of the new portal (new_template, in this case).
  • Copy the login.php file from other templates and customize it.
  • Create a index.html file with the content presented below.

<html><body>

(...)

<form method="POST" action="login.php">

<input type="text" name="username">

<input type="password" name="password">

<input type="submit">

</form>

(...)

</body></html>


Script changes (wifi-lord.sh)

  • As in the other portals, create your new portal.

This function will copy all the files to a temporary directory during script execution.

  • In function menu_webinterfaces makes the following changes:
  1. Put the option for the new template in the menu.
  2. Define the new option in case option, e.g.: 3) new_template;break;;

Launch the script and test it

⚠️ **GitHub.com Fallback** ⚠️