Giter VIP home page Giter VIP logo

Comments (4)

JediMasterX avatar JediMasterX commented on August 21, 2024 1

same, just have not checked in the log files...

from evilportals.

gerrogerro avatar gerrogerro commented on August 21, 2024

For web notification edit your "MyPortal.php".

If you want for example being notified about the "$line" parameter, after the "file_put_contents etc.." string, add this:

exec("pineapple notify '$line' ");

before the "}"

You need to exec $line or $password , $email or whatever you want to be notified about.
Example:

public function handleAuthorization()
{
if(isset($_POST['password'])) {
$line = date('Y-m-d H:i:s') . " - " . $_POST["essid"] . " - " . $_POST['password'] . "\n";
file_put_contents($_POST["log"], $line, FILE_APPEND) or die("Could not set in log file");

   exec("pineapple notify '$line'");  

}

from evilportals.

pdelteil avatar pdelteil commented on August 21, 2024

@gerrogerro Thanks for your answer. I thought notifications were working since the Readme info says it.

screenshot from 2018-06-21 10-33-07

I will try your code.

from evilportals.

kleo avatar kleo commented on August 21, 2024

There had been changes on the latest firmware as exec("pineapple notify '$line'"); instead of creating new notifications on the web interface, it gets rejected with permission denied.

Will be using this instead exec("notify '$line'");, applied the fix already e792d8bbd9a0cd62a90cc83ce33ece82449decbe though I'm still having problems on EvilPortal development branch 91f9778 not serving the portals properly, nightly branch d16cbee fails to start on the latest firmware 2.1.2.

from evilportals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.