MCPcopy Create free account

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

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

↓ 1 callersMethodset_access_token
(self, token, _time, username)
backend/src/utils/redis.py:156
↓ 1 callersMethodset_request_times
(self, username, api_name='api')
backend/src/utils/redis.py:144
↓ 1 callersMethodset_running_task_tag
(self, url)
backend/src/utils/redis.py:109
↓ 1 callersMethodshorten
(cls, url)
backend/src/utils/url.py:22
↓ 1 callersFunctiontest_similarity_vul
()
backend/tests/test_similarity.py:43
↓ 1 callersFunctionupdate_vul
(o_vul: VulIntelligence, new_vul: dict)
backend/crawler/worker/vuli_monitor/recycler.py:28
Method__call__
(self, scope: Scope, receive: Receive, send: Send)
backend/src/handler/middleware/trusted_host_ext.py:22
Method__init__
(self, browser_urls: list, redis=None)
backend/src/utils/browser_http_req2.py:15
Method__init__
(self, redis_url, run_task_key: str = 'scheduler_task_runing_task')
backend/src/utils/redis.py:89
Method__init__
(self, ua: str = '', verify_ssl: Optional[bool] = None)
backend/src/utils/req.py:100
Method__init__
(self)
backend/src/utils/msg.py:24
Method__init__
(self, code: int, message: str, data: Union[List, Dict] = [])
backend/src/routers/response.py:28
Method__init__
( self, app: ASGIApp, allowed_hosts: typing.Optional[typing.Sequence[str]] = None,
backend/src/handler/middleware/trusted_host_ext.py:12
Method__init__
( self, app: ASGIApp, dispatch: typing.Optional[DispatchFunction] = None, secret_key:
backend/src/handler/middleware/access_token_check.py:21
Method__init__
(self, url: str, url_fields: list = ['url'], array_fields: list = ['reference_links', 'cwes',
backend/crawler/utils/web_content_extractor.py:15
Method__init__
(self, engine="auto")
backend/crawler/utils/translate.py:21
Method_get
(self, url, params=None, headers=None)
backend/src/utils/req.py:170
Method_get_child_value
(_data, _selector)
backend/crawler/utils/web_content_extractor.py:164
Method_post
(self, url, data=None, headers=None)
backend/src/utils/req.py:177
Method_request_handler
(self, request, page_id)
backend/src/utils/browser_http_req2.py:93
FunctionapiCallback
({commit})
frontend/src/store/modules/auth.js:59
Functionauth_callback
Verify login
backend/src/routers/auth.py:47
Functionauth_init
Initialize auth and redirect
backend/src/routers/auth.py:38
FunctioncheckVuliPushUrl
({commit}, item)
frontend/src/store/modules/setting.js:31
Methodcheck_crawler_task
(self)
backend/src/utils/redis.py:205
Functioncheck_vip
(*arg, **kwargs)
backend/src/utils/wraps.py:15
Functioncheck_vuli_push_url
(item: VuliPushIteam = Body(...), current_user: UserModel = Depends(get_current_user))
backend/src/routers/settings.py:110
Functionchecker
(*arg, **kwargs)
backend/src/utils/wraps.py:33
Functioncrawler_detail
(data: dict, template: dict)
backend/crawler/worker/vuli_monitor/consumer.py:185
Functioncreate_task
(debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:77
Methodcustom
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:163
Functioncustom_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:251
Methoddingding
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:80
Functiondingding_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:227
Methodemit
(self, record: logging.LogRecord)
backend/src/utils/logging.py:9
Methodfastapi_kwargs
(self)
backend/src/conf/settings/app.py:106
Functionfeed
()
backend/src/routers/rss.py:10
Methodfeishu
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:113
Functionfeishu_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:239
Functiongen_db_by_url
(db_url)
backend/src/utils/db.py:61
Methodgen_sign
(secret)
backend/src/utils/msg.py:81
FunctiongetLinks
({commit}, start)
frontend/src/store/modules/links.js:17
FunctiongetLoginUrls
({commit})
frontend/src/store/modules/auth.js:55
FunctiongetLoginedUser
({commit})
frontend/src/store/modules/auth.js:82
FunctiongetMe
({commit}, params)
frontend/src/store/modules/auth.js:73
FunctiongetVuliPushUrl
({commit})
frontend/src/store/modules/setting.js:14
FunctiongetVuls
({commit}, start)
frontend/src/store/modules/vuli.js:18
Functionget_api_current_user
(token: str = Depends(api_oauth2_scheme))
backend/src/utils/auth.py:101
Functionget_current_user
(token: str = Depends(oauth2_scheme))
backend/src/utils/auth.py:97
Methodget_or_set_crawler_task
(self, url, delete=False)
backend/src/utils/redis.py:197
Functionget_vuli_push_url
(current_user: UserModel = Depends(get_current_user))
backend/src/routers/settings.py:61
Functionhttp422_error_handler
( _: Request, exc: Union[RequestValidationError, ValidationError], )
backend/src/handler/exception/validation_error.py:12
Functionhttp_error_handler
(_: Request, exc: HTTPException)
backend/src/handler/exception/http_error.py:6
Functionlimit_check
(func)
backend/src/utils/wraps.py:31
FunctionlogOut
({commit})
frontend/src/store/modules/auth.js:86
Functionlogin_for_access_token
获取API请求Token,API认证方式为Bearer认证方式,\n 即在请求headers头配置认证信息:Authorization: Bearer Token\n 每个Token 5分钟有效期\n 请求参数:\n - username 登录邮箱地址
backend/src/api_routers/auth.py:28
Functionlogout
(state, data)
frontend/src/store/modules/auth.js:100
Methodmail
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:180
Functionmail_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:203
Methodmake_md5
(s, encoding="utf-8")
backend/crawler/utils/translate.py:73
Functionnew
(item: searchIteam = Body(...))
backend/src/routers/links.py:21
Functionnew
(item: searchIteam = Body(...))
backend/src/routers/vuli.py:53
Functionnew_token
()
backend/src/models/user.py:12
Functionnew_vip
参数格式请参考Schemas中的Body_new_vip_v1_vulti_new_vip_post return: ``` { "id": 845, # 漏洞ID "related_vuls": [ # 重复漏洞(不同来源)
backend/src/api_routers/vuli.py:109
Methodqiyeweixin
(self, hook_url, vuls, sign='')
backend/src/utils/msg.py:60
Functionqiyeweixin_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:215
Functionread_users_me
( access_token: str = Body(embed=True), expire: str = Body(embed=True), current_user: User = Depen
backend/src/routers/auth.py:28
Methodredis
(self)
backend/src/utils/redis.py:94
Functionrequest_limit_check
(limit_num=API_REQUEST_LIMIT, key='api', raise_error=True, error_msg='超过请求上限!')
backend/src/utils/wraps.py:30
FunctionscrollBehavior
(to)
frontend/src/router.js:16
FunctionsearchLinks
({commit}, keyword)
frontend/src/store/modules/links.js:33
FunctionsetKeyword
(state, data)
frontend/src/store/modules/links.js:61
FunctionsetKeyword
(state, data)
frontend/src/store/modules/vuli.js:39
FunctionsetLoginUrls
(state, data)
frontend/src/store/modules/auth.js:93
FunctionsetLoginedUser
(state, data)
frontend/src/store/modules/auth.js:96
FunctionsetOLinks
(state, data)
frontend/src/store/modules/links.js:39
FunctionsetOrder
(state, data)
frontend/src/store/modules/vuli.js:42
FunctionsetSettingResult
(state, data)
frontend/src/store/modules/setting.js:50
FunctionsetSourceLimit
(state, data)
frontend/src/store/modules/vuli.js:45
FunctionsetType
(state, data)
frontend/src/store/modules/links.js:64
FunctionsetVuliPushUlr
(state, data)
frontend/src/store/modules/setting.js:47
FunctionsetVuliPushUrl
({commit}, item)
frontend/src/store/modules/setting.js:18
FunctionsetVuls
(state, data)
frontend/src/store/modules/vuli.js:36
Functionset_vuli_push_url
(item: VuliPushIteam = Body(...), current_user: UserModel = Depends(get_current_user))
backend/src/routers/settings.py:76
Functionstart_app
()
backend/src/handler/events.py:13
Functiontask_clean_db
周期任务,清理数据库中任务数据
backend/crawler/scheduler/handlers.py:102
Functiontask_creator
周期任务,下发目标
backend/crawler/scheduler/handlers.py:60
Functiontask_result_handler
(result_data: dict, worker_name: str, record_id: str, status: int)
backend/crawler/scheduler/handlers.py:19
Functiontest_similarity
()
backend/tests/test_similarity.py:21
Methodtranslate_by_baidu
(self, source_text)
backend/crawler/utils/translate.py:72
Methodtranslate_by_tencent
(self, source_text)
backend/crawler/utils/translate.py:47
Methodtranslate_by_xiaoniu
(self, source_text)
backend/crawler/utils/translate.py:98
Functionurl_jump
(code: str)
backend/src/routers/url.py:11
Functionvip_required
(func)
backend/src/utils/wraps.py:13
← previous101–194 of 194, ranked by callers