mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-18 00:17:14 +02:00
ip filtering becomes filtering with ja4 and cidrs
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -2657,14 +2657,16 @@ export class API {
|
||||
* @param {Object} allowdeny
|
||||
* @param {string} allowdeny.name
|
||||
* @param {string} allowdeny.cidrs
|
||||
* @param {string} allowdeny.ja4Fingerprints
|
||||
* @param {boolean} allowdeny.allowed
|
||||
* @param {string} allowdeny.companyID
|
||||
* @returns {Promise<ApiResponse>}
|
||||
*/
|
||||
create: async ({ name, cidrs, allowed, companyID }) => {
|
||||
create: async ({ name, cidrs, ja4Fingerprints, allowed, companyID }) => {
|
||||
return await postJSON(this.getPath('/allow-deny'), {
|
||||
name: name,
|
||||
cidrs: cidrs,
|
||||
ja4Fingerprints: ja4Fingerprints,
|
||||
allowed: allowed,
|
||||
companyID: companyID
|
||||
});
|
||||
@@ -2715,13 +2717,15 @@ export class API {
|
||||
* @param {string} allowdeny.id
|
||||
* @param {string} allowdeny.name
|
||||
* @param {string} allowdeny.cidrs
|
||||
* @param {string} allowdeny.ja4Fingerprints
|
||||
* @param {string} allowdeny.companyID
|
||||
* @returns {Promise<ApiResponse>}
|
||||
*/
|
||||
update: async ({ id, name, cidrs, companyID }) => {
|
||||
update: async ({ id, name, cidrs, ja4Fingerprints, companyID }) => {
|
||||
return await patchJSON(this.getPath(`/allow-deny/${id}`), {
|
||||
name: name,
|
||||
cidrs: cidrs,
|
||||
ja4Fingerprints: ja4Fingerprints,
|
||||
companyID: companyID
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user