-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24e866d
commit 965608d
Showing
2 changed files
with
27 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
const express = require("express"); | ||
const express = require('express'); | ||
const router = express.Router(); | ||
|
||
// Returns a 301 redirect to the main phishing test page | ||
router.get("/", (req, res) => { | ||
res.redirect( | ||
301, | ||
"/security/badware/phishing.html" | ||
); | ||
router.get('/', (req, res) => { | ||
res.redirect( | ||
301, | ||
'/security/badware/phishing.html' | ||
); | ||
}); | ||
|
||
// Returns a 302 redirect to the main phishing test page | ||
router.get("/302", (req, res) => { | ||
res.redirect( | ||
302, | ||
"/security/badware/phishing.html" | ||
); | ||
router.get('/302', (req, res) => { | ||
res.redirect( | ||
302, | ||
'/security/badware/phishing.html' | ||
); | ||
}); | ||
|
||
// Returns a 301 redirect to a JS redirector page | ||
router.get("/js", (req, res) => { | ||
router.get('/js', (req, res) => { | ||
res.redirect( | ||
301, | ||
"/security/badware/phishing-js-redirector.html" | ||
) | ||
'/security/badware/phishing-js-redirector.html' | ||
); | ||
}); | ||
|
||
// Returns a 301 redirect to a JS redirector helper page | ||
router.get("/js2", (req, res) => { | ||
router.get('/js2', (req, res) => { | ||
res.redirect( | ||
301, | ||
"/security/badware/phishing-js-redirector-helper.html" | ||
) | ||
'/security/badware/phishing-js-redirector-helper.html' | ||
); | ||
}); | ||
|
||
// Returns a redirect to a page that loads an iframe that renders a phishing page | ||
router.get("/iframe", (req, res) => { | ||
router.get('/iframe', (req, res) => { | ||
res.redirect( | ||
301, | ||
"/security/badware/phishing-iframe-loader.html" | ||
) | ||
'/security/badware/phishing-iframe-loader.html' | ||
); | ||
}); | ||
|
||
// Returns a redirect to a page that loads multiple iframes to attempt to bypass the phishing detection | ||
router.get("/iframe2", (req, res) => { | ||
res.redirect(301, "/security/badware/phishing-legit-iframe-loader.html"); | ||
router.get('/iframe2', (req, res) => { | ||
res.redirect(301, '/security/badware/phishing-legit-iframe-loader.html'); | ||
}); | ||
|
||
// Returns a redirect to a page that renders a phishing page using a meta refresh (not flagged in dataset) | ||
router.get("/meta", (req, res) => { | ||
res.redirect(301, "/security/badware/phishing-meta-redirect-clean.html"); | ||
router.get('/meta', (req, res) => { | ||
res.redirect(301, '/security/badware/phishing-meta-redirect-clean.html'); | ||
}); | ||
|
||
// Returns a redirect to a page that renders a phishing page using a meta refresh (flagged in dataset) | ||
router.get("/meta2", (req, res) => { | ||
res.redirect(301, "/security/badware/phishing-meta-redirect.html"); | ||
router.get('/meta2', (req, res) => { | ||
res.redirect(301, '/security/badware/phishing-meta-redirect.html'); | ||
}); | ||
|
||
module.exports = router; |