Skip to content

Commit

Permalink
added: options for set endpoint to allow user access internet before …
Browse files Browse the repository at this point in the history
…atfer redirect cloud phishing page
  • Loading branch information
mh4x0f committed Oct 19, 2023
1 parent 0ccf2b0 commit 4a3ce9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/app/phishkin3.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[settings]
cloud_url_phishing=""
redirect_url_after_login=""
allow_user_login_endpoint="/verify"
proxy_port=80
6 changes: 3 additions & 3 deletions wifipumpkin3/plugins/bin/phishkin3.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
URL_PHISHINGCLOUD = None
PORT = 80
config = None
config_pk = SettingsINI(C.CONFIG_PK_INI)


def login_user(ip, iptables_binary_path):
Expand All @@ -29,10 +30,9 @@ def login():
f"Login:: User: {request.remote_addr} redirecting to {URL_PHISHINGCLOUD}\n"
)
sys.stdout.flush()
return redirect(URL_PHISHINGCLOUD, code=302)
#login_user(request.remote_addr, config.get("iptables", "path_binary"))
return redirect(URL_PHISHINGCLOUD, code=302)

@app.route("/verify", methods=["GET", "POST"])
@app.route("{}".format(config_pk.get("settings", "allow_user_login_endpoint")), methods=["GET", "POST"])
def verifyUserAfterPhishingLogin():
global URL_PHISHINGCLOUD, config
sys.stdout.write(
Expand Down

0 comments on commit 4a3ce9e

Please sign in to comment.