Open imethanlee opened 2 years ago
import pickle
with open('.../src/phishpedia_siamese/domain_map.pkl', 'rb') as handle:
domain_map = pickle.load(handle)
if 'dbs' not in domain_map.keys():
domain_map['dbs'] = ['dbs']
with open('.../src/phishpedia_siamese/domain_map.pkl', 'wb') as handle:
pickle.dump(domain_map, handle)
AWL_MODEL, CRP_CLASSIFIER, CRP_LOCATOR_MODEL, SIAMESE_MODEL, OCR_MODEL, SIAMESE_THRE, LOGO_FEATS, LOGO_FILES, DOMAIN_MAP_PATH = load_config(cfg_path, reload_targetlist=True)
Thanks for the reply!
https://github.com/lindsey98/PhishIntention/issues/10#issuecomment-1140932139. Say we create a new folder called '.../expand_targetlist/Overseas Chinese Banking Corporation' for the logo images, do we need to put exactly the same name 'Overseas Chinese Banking Corporation' to the key of 'domain_map.pkl'?
domain_map['Overseas Chinese Banking Corporation'] = ['ocbc.com']
Can 'ocbc' work if my logo folder name is '.../expand_targetlist/Overseas Chinese Banking Corporation' ?
domain_map['ocbc'] = ['ocbc.com']
Hi, they need to be the same. And it is domain_map['Overseas Chinese Banking Corporation'] = ['ocbc'], only need to put the domain not domain.tld
I see. Tks!
Hi,
I have two questions related to the target list of logos/brands.
Tks.
[UPDATE]: If we do introduce new brands/logos, do we need to mofidy the protected domains in some files (if these files exist)?