MCPcopy Create free account

hub / github.com/SEC-CAFE/sec.cafe / functions

Functions194 in github.com/SEC-CAFE/sec.cafe

↓ 176 callersMethodget
( self, url: str, params: Optional[dict] = None, headers: Optional[Dict] = Non
backend/src/utils/browser_http_req2.py:97
↓ 12 callersFunctionget_app_settings
()
backend/src/conf/config.py:18
↓ 8 callersFunction_pusher
(vuls: list, hook_url: str, sign: str, msg_type: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:262
↓ 8 callersFunctiontext_similarity
(str1, str2)
backend/tests/test_similarity.py:12
↓ 6 callersFunctionparseBool
(value, fallback = false)
frontend/src/main.js:22
↓ 5 callersMethod_day_str
(self)
backend/src/utils/msg.py:28
↓ 4 callersMethod_request
(self, url, method='get', params={}, headers={}, checker={})
backend/src/utils/msg.py:31
↓ 4 callersFunctiondeleteStorage
()
frontend/src/store/modules/auth.js:3
↓ 4 callersMethodrequest
( self, url, method='get', params=None, custom_headers: Optional[Dict[
backend/src/utils/req.py:117
↓ 3 callersFunction_day_offset
(day1, day2, default=-1)
backend/crawler/worker/vuli_monitor/vul_similarity.py:57
↓ 3 callersFunction_replace_value
(field: str, data: dict)
backend/crawler/worker/vuli_monitor/consumer.py:22
↓ 3 callersFunctioncreate_access_token
(data: dict, secret_key: str, expires_delta: Union[timedelta, None] = None)
backend/src/utils/auth.py:56
↓ 3 callersFunctiongen_db
db_config = { 'host': host, 'port': port, 'user': user, 'password': password, 'database': db_name }
backend/src/utils/db.py:41
↓ 3 callersFunctionparse_url
Parse the argument url and return a redis connection. Three patterns of url are supported: * redis://host:port[/db][?options]
backend/src/utils/redis.py:13
↓ 3 callersMethodtranslate
(self, source_text)
backend/crawler/utils/translate.py:29
↓ 2 callersFunction_build_ai_payload
(vul: dict)
backend/crawler/worker/vuli_monitor/vul_similarity.py:70
↓ 2 callersFunction_crawler_detail
(data: dict, template: dict, debug: bool = False)
backend/crawler/worker/vuli_monitor/consumer.py:196
↓ 2 callersMethod_extractor_json_value
(self, data: Union[dict, list], selector: str, default_value: str = '')
backend/crawler/utils/web_content_extractor.py:163
↓ 2 callersFunction_filter_vuls_by_keywords
(vuls: List[Dict], keywords: List[str], scope: str)
backend/crawler/worker/vuli_pusher/__init__.py:49
↓ 2 callersMethod_get_connector
(self)
backend/src/utils/req.py:104
↓ 2 callersFunction_get_current_user
(token, secret_key)
backend/src/utils/auth.py:81
↓ 2 callersFunction_get_vul_time
(exists_vul: dict, new_vul: dict)
backend/crawler/worker/vuli_monitor/vul_similarity.py:42
↓ 2 callersFunction_normalize_text
(value: str, max_len: int)
backend/crawler/worker/vuli_monitor/vul_similarity.py:63
↓ 2 callersFunction_to_push_vuls
(vuls: List[Dict])
backend/crawler/worker/vuli_pusher/__init__.py:65
↓ 2 callersMethod_value_handler
针对值进行处理
backend/crawler/utils/web_content_extractor.py:42
↓ 2 callersFunctionbuild_auth_return_user
(user, access_token, expire)
backend/src/utils/auth.py:41
↓ 2 callersFunctioncheck_value
(item)
backend/src/routers/settings.py:33
↓ 2 callersFunctioncheck_vul_similarity
多种方式判断是否同个漏洞
backend/crawler/worker/vuli_monitor/vul_similarity.py:323
↓ 2 callersFunctionclean_title
(title, data)
backend/crawler/utils/content_utils.py:60
↓ 2 callersMethodconfigure_logging
(self)
backend/src/conf/settings/app.py:117
↓ 2 callersFunctioncreate_get_detail_task
(data, template)
backend/crawler/worker/vuli_monitor/consumer.py:92
↓ 2 callersFunctioncreate_start_app_handler
( app: FastAPI, settings: AppSettings, )
backend/src/handler/events.py:9
↓ 2 callersFunctiondecode_token
(token, secret_key)
backend/src/utils/auth.py:69
↓ 2 callersMethoddelete_complate_task_tag
(self, url)
backend/src/utils/redis.py:116
↓ 2 callersMethoddispatch
(self, request, call_next)
backend/src/handler/middleware/access_token_check.py:29
↓ 2 callersFunctionformat_html_to_json
(html, if_nuxt=False)
backend/crawler/utils/content_utils.py:20
↓ 2 callersFunctionget_new_vulti
(start: int = 1, length: int = 15, order: str = "publish_time", keyword: str = '', source_limit: int = 0)
backend/src/routers/vuli.py:24
↓ 2 callersMethodget_or_set_pusher_id
(self, id=None)
backend/src/utils/redis.py:177
↓ 2 callersMethodget_or_set_pusher_status
(self, set=False)
backend/src/utils/redis.py:186
↓ 2 callersMethodget_request_times
(self, username, api_name='api')
backend/src/utils/redis.py:134
↓ 2 callersFunctionget_url
(template: dict, data: dict, _type: str)
backend/crawler/worker/vuli_monitor/consumer.py:33
↓ 2 callersFunctionget_user
(username: str)
backend/src/utils/auth.py:50
↓ 2 callersMethodhtml_extractor
提取HTML页面内容构建dict
backend/crawler/utils/web_content_extractor.py:215
↓ 2 callersMethodjson_extractor
提取JSON页面内容构建dict
backend/crawler/utils/web_content_extractor.py:238
↓ 2 callersFunctionparseJsonConfig
(value, fallback)
frontend/src/main.js:13
↓ 2 callersFunctionrectify_value
(data)
backend/crawler/worker/vuli_monitor/recycler.py:18
↓ 2 callersFunctionreplace_keyword
(content)
backend/crawler/utils/content_utils.py:118
↓ 2 callersFunctionreq_html
(template: dict, data: dict, url: str, _type: str)
backend/crawler/worker/vuli_monitor/consumer.py:43
↓ 2 callersFunctionresult_handler
(data: dict, refresh: bool = False, debug: bool = False)
backend/crawler/worker/vuli_monitor/recycler.py:105
↓ 2 callersMethodretry_request
(self, url, method, params, headers, retry_limit=3, retry_times=0)
backend/src/utils/req.py:131
↓ 2 callersFunctionuserStorageFormat
()
frontend/src/store/modules/auth.js:6
↓ 1 callersMethod_build_header
(self, custom_headers: Optional[Dict[str, Any]] = None)
backend/src/utils/req.py:107
↓ 1 callersFunction_clean_db
()
backend/crawler/scheduler/handlers.py:107
↓ 1 callersMethod_close_browser
(self, browser, context, page, browser_url)
backend/src/utils/browser_http_req2.py:55
↓ 1 callersFunction_crawler_list
(record_id: str, template: dict, debug: bool = False)
backend/crawler/worker/vuli_monitor/consumer.py:91
↓ 1 callersFunction_create_task
(debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:88
↓ 1 callersMethod_extractor_element_value
取页面元素的值
backend/crawler/utils/web_content_extractor.py:141
↓ 1 callersMethod_get_browser_url
(self)
backend/src/utils/browser_http_req2.py:33
↓ 1 callersMethod_get_new_context
( self, browser: PBrowser, headers: Optional[Dict] = None, cookies: Union[list
backend/src/utils/browser_http_req2.py:72
↓ 1 callersFunction_get_openai_client
(api_key: str, base_url: str)
backend/crawler/worker/vuli_monitor/vul_similarity.py:123
↓ 1 callersFunction_normalize_push_config
(item: Dict)
backend/crawler/worker/vuli_pusher/__init__.py:27
↓ 1 callersFunction_parse_ai_result
(text: str)
backend/crawler/worker/vuli_monitor/vul_similarity.py:85
↓ 1 callersFunction_parse_time
(value)
backend/crawler/worker/vuli_monitor/vul_similarity.py:25
↓ 1 callersFunction_result_handler
(result_data: dict, worker_name: str, record_id: str, status: int)
backend/crawler/scheduler/handlers.py:21
↓ 1 callersFunction_task_creator
(worker_name: str, args: tuple)
backend/crawler/scheduler/handlers.py:65
↓ 1 callersMethod_value_format
将取值格式化处理
backend/crawler/utils/web_content_extractor.py:21
↓ 1 callersFunctionargs_handler
(file_name)
backend/tests/test_crawler.py:11
↓ 1 callersFunctionargs_handler
()
backend/crawler/worker/vuli_monitor/recycler.py:162
↓ 1 callersFunctionauthenticate_user
(username: str, api_token: str)
backend/src/api_routers/auth.py:16
↓ 1 callersMethodbrowser_get
(self, url, params=None, headers=None, retry_limit=0)
backend/src/utils/req.py:184
↓ 1 callersFunctionbuild_vul
(hit_vul, data, title, debug=False)
backend/crawler/worker/vuli_monitor/recycler.py:60
↓ 1 callersMethodcheck_access_token
(self, token)
backend/src/utils/redis.py:162
↓ 1 callersMethodcheck_and_set_task_run_time
(self, task_name, interval_hours=1)
backend/src/utils/redis.py:122
↓ 1 callersFunctioncheck_by_descript_with_openai
(exists_vul: dict, new_vul: dict)
backend/crawler/worker/vuli_monitor/vul_similarity.py:179
↓ 1 callersFunctioncheck_by_reference_links
(exists_vul: dict, new_vul: dict)
backend/crawler/worker/vuli_monitor/vul_similarity.py:305
↓ 1 callersFunctioncheck_by_tag_num
(new_vul: dict, model)
backend/crawler/worker/vuli_monitor/vul_similarity.py:166
↓ 1 callersFunctioncheck_by_title_and_descript
(exists_vul: dict, new_vul: dict)
backend/crawler/worker/vuli_monitor/vul_similarity.py:250
↓ 1 callersFunctioncheck_template
(template_name)
backend/tests/test_crawler.py:20
↓ 1 callersFunctioncrawl
()
backend/tests/test_nuxt_crawler.py:11
↓ 1 callersFunctioncrawler_list
(record_id: str, template: dict, debug: bool = False)
backend/crawler/worker/vuli_monitor/consumer.py:80
↓ 1 callersMethoddelete_pusher_status
(self)
backend/src/utils/redis.py:193
↓ 1 callersFunctionensureBaiduHmScript
(hmId)
frontend/src/main.js:55
↓ 1 callersFunctionensureGoogleAdsScript
(client)
frontend/src/main.js:35
↓ 1 callersFunctionensureUmamiScript
(websiteId)
frontend/src/main.js:45
↓ 1 callersMethodgenerate_random_string
(cls)
backend/src/utils/url.py:11
↓ 1 callersFunctionget_application
()
backend/run_api.py:17
↓ 1 callersFunctionget_application
()
backend/main.py:18
↓ 1 callersFunctionget_cve_cnvd_and_cnnvd
(data)
backend/crawler/utils/content_utils.py:101
↓ 1 callersMethodget_db_instance
(db_config)
backend/src/utils/db.py:15
↓ 1 callersFunctionget_queues_message_num
(queue_name)
backend/crawler/utils/remote_queue.py:13
↓ 1 callersFunctionget_redis
(redis_url)
backend/src/utils/redis.py:59
↓ 1 callersFunctionget_vuls
( fields: list, limit: int = 10, components: list = [], date_range: list = [],
backend/src/api_routers/vuli.py:18
↓ 1 callersFunctionif_not_same_vul
根据确定的规则检查是否明确不是同个漏洞
backend/crawler/worker/vuli_monitor/vul_similarity.py:130
↓ 1 callersMethodif_task_running
查询当前是否执行中,执行中就不重复执行
backend/src/utils/redis.py:97
↓ 1 callersFunctioninit
()
backend/src/models/db_init.py:12
↓ 1 callersFunctioninit
()
backend/crawler/scheduler/models/db_init.py:8
↓ 1 callersMethodrecovery
(cls, url_code)
backend/src/utils/url.py:46
↓ 1 callersFunctionremove_no_exists_field
(model, data: dict)
backend/crawler/utils/content_utils.py:51
↓ 1 callersFunctionsend_mail
(sender, sender_alias, sender_pwd, recipient_list, bcc_mail, subject, body, host="smtp.qcloudmail.com", port=4
backend/src/utils/mail.py:9
↓ 1 callersFunctionsetLoginedUserToStorage
(user)
frontend/src/store/modules/auth.js:32
next →1–100 of 194, ranked by callers