mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-30 15:38:49 +02:00
add path param lure customization
Signed-off-by: RonniSkansing <rskansing@gmail.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package data
|
||||
|
||||
const (
|
||||
// LureURLModeQuery carries the recipient identifier as a query parameter,
|
||||
// for example https://example.com/login?id=<uuid>.
|
||||
LureURLModeQuery = "query"
|
||||
// LureURLModePath carries the recipient identifier as the last path
|
||||
// segment, for example https://example.com/login/4H7K9QM2XR3T. This form
|
||||
// survives being read aloud or sent over SMS, where a query string with a
|
||||
// UUID does not.
|
||||
LureURLModePath = "path"
|
||||
)
|
||||
|
||||
// IsValidLureURLMode reports whether mode is a known lure URL mode.
|
||||
func IsValidLureURLMode(mode string) bool {
|
||||
switch mode {
|
||||
case LureURLModeQuery, LureURLModePath:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user