Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SEC-CAFE/sec.cafe
/ functions
Functions
194 in github.com/SEC-CAFE/sec.cafe
⨍
Functions
194
◇
Types & classes
51
↳
Endpoints
12
↓ 1 callers
Method
set_access_token
(self, token, _time, username)
backend/src/utils/redis.py:156
↓ 1 callers
Method
set_request_times
(self, username, api_name='api')
backend/src/utils/redis.py:144
↓ 1 callers
Method
set_running_task_tag
(self, url)
backend/src/utils/redis.py:109
↓ 1 callers
Method
shorten
(cls, url)
backend/src/utils/url.py:22
↓ 1 callers
Function
test_similarity_vul
()
backend/tests/test_similarity.py:43
↓ 1 callers
Function
update_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
Function
apiCallback
({commit})
frontend/src/store/modules/auth.js:59
Function
auth_callback
Verify login
backend/src/routers/auth.py:47
Function
auth_init
Initialize auth and redirect
backend/src/routers/auth.py:38
Function
checkVuliPushUrl
({commit}, item)
frontend/src/store/modules/setting.js:31
Method
check_crawler_task
(self)
backend/src/utils/redis.py:205
Function
check_vip
(*arg, **kwargs)
backend/src/utils/wraps.py:15
Function
check_vuli_push_url
(item: VuliPushIteam = Body(...), current_user: UserModel = Depends(get_current_user))
backend/src/routers/settings.py:110
Function
checker
(*arg, **kwargs)
backend/src/utils/wraps.py:33
Function
crawler_detail
(data: dict, template: dict)
backend/crawler/worker/vuli_monitor/consumer.py:185
Function
create_task
(debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:77
Method
custom
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:163
Function
custom_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:251
Method
dingding
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:80
Function
dingding_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:227
Method
emit
(self, record: logging.LogRecord)
backend/src/utils/logging.py:9
Method
fastapi_kwargs
(self)
backend/src/conf/settings/app.py:106
Function
feed
()
backend/src/routers/rss.py:10
Method
feishu
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:113
Function
feishu_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:239
Function
gen_db_by_url
(db_url)
backend/src/utils/db.py:61
Method
gen_sign
(secret)
backend/src/utils/msg.py:81
Function
getLinks
({commit}, start)
frontend/src/store/modules/links.js:17
Function
getLoginUrls
({commit})
frontend/src/store/modules/auth.js:55
Function
getLoginedUser
({commit})
frontend/src/store/modules/auth.js:82
Function
getMe
({commit}, params)
frontend/src/store/modules/auth.js:73
Function
getVuliPushUrl
({commit})
frontend/src/store/modules/setting.js:14
Function
getVuls
({commit}, start)
frontend/src/store/modules/vuli.js:18
Function
get_api_current_user
(token: str = Depends(api_oauth2_scheme))
backend/src/utils/auth.py:101
Function
get_current_user
(token: str = Depends(oauth2_scheme))
backend/src/utils/auth.py:97
Method
get_or_set_crawler_task
(self, url, delete=False)
backend/src/utils/redis.py:197
Function
get_vuli_push_url
(current_user: UserModel = Depends(get_current_user))
backend/src/routers/settings.py:61
Function
http422_error_handler
( _: Request, exc: Union[RequestValidationError, ValidationError], )
backend/src/handler/exception/validation_error.py:12
Function
http_error_handler
(_: Request, exc: HTTPException)
backend/src/handler/exception/http_error.py:6
Function
limit_check
(func)
backend/src/utils/wraps.py:31
Function
logOut
({commit})
frontend/src/store/modules/auth.js:86
Function
login_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
Function
logout
(state, data)
frontend/src/store/modules/auth.js:100
Method
mail
(self, hook_url, vuls, secret='')
backend/src/utils/msg.py:180
Function
mail_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:203
Method
make_md5
(s, encoding="utf-8")
backend/crawler/utils/translate.py:73
Function
new
(item: searchIteam = Body(...))
backend/src/routers/links.py:21
Function
new
(item: searchIteam = Body(...))
backend/src/routers/vuli.py:53
Function
new_token
()
backend/src/models/user.py:12
Function
new_vip
参数格式请参考Schemas中的Body_new_vip_v1_vulti_new_vip_post return: ``` { "id": 845, # 漏洞ID "related_vuls": [ # 重复漏洞(不同来源)
backend/src/api_routers/vuli.py:109
Method
qiyeweixin
(self, hook_url, vuls, sign='')
backend/src/utils/msg.py:60
Function
qiyeweixin_pusher
(vuls: list, hook_url: str, sign: str, debug: bool = False)
backend/crawler/worker/vuli_pusher/__init__.py:215
Function
read_users_me
( access_token: str = Body(embed=True), expire: str = Body(embed=True), current_user: User = Depen
backend/src/routers/auth.py:28
Method
redis
(self)
backend/src/utils/redis.py:94
Function
request_limit_check
(limit_num=API_REQUEST_LIMIT, key='api', raise_error=True, error_msg='超过请求上限!')
backend/src/utils/wraps.py:30
Function
scrollBehavior
(to)
frontend/src/router.js:16
Function
searchLinks
({commit}, keyword)
frontend/src/store/modules/links.js:33
Function
setKeyword
(state, data)
frontend/src/store/modules/links.js:61
Function
setKeyword
(state, data)
frontend/src/store/modules/vuli.js:39
Function
setLoginUrls
(state, data)
frontend/src/store/modules/auth.js:93
Function
setLoginedUser
(state, data)
frontend/src/store/modules/auth.js:96
Function
setOLinks
(state, data)
frontend/src/store/modules/links.js:39
Function
setOrder
(state, data)
frontend/src/store/modules/vuli.js:42
Function
setSettingResult
(state, data)
frontend/src/store/modules/setting.js:50
Function
setSourceLimit
(state, data)
frontend/src/store/modules/vuli.js:45
Function
setType
(state, data)
frontend/src/store/modules/links.js:64
Function
setVuliPushUlr
(state, data)
frontend/src/store/modules/setting.js:47
Function
setVuliPushUrl
({commit}, item)
frontend/src/store/modules/setting.js:18
Function
setVuls
(state, data)
frontend/src/store/modules/vuli.js:36
Function
set_vuli_push_url
(item: VuliPushIteam = Body(...), current_user: UserModel = Depends(get_current_user))
backend/src/routers/settings.py:76
Function
start_app
()
backend/src/handler/events.py:13
Function
task_clean_db
周期任务,清理数据库中任务数据
backend/crawler/scheduler/handlers.py:102
Function
task_creator
周期任务,下发目标
backend/crawler/scheduler/handlers.py:60
Function
task_result_handler
(result_data: dict, worker_name: str, record_id: str, status: int)
backend/crawler/scheduler/handlers.py:19
Function
test_similarity
()
backend/tests/test_similarity.py:21
Method
translate_by_baidu
(self, source_text)
backend/crawler/utils/translate.py:72
Method
translate_by_tencent
(self, source_text)
backend/crawler/utils/translate.py:47
Method
translate_by_xiaoniu
(self, source_text)
backend/crawler/utils/translate.py:98
Function
url_jump
(code: str)
backend/src/routers/url.py:11
Function
vip_required
(func)
backend/src/utils/wraps.py:13
← previous
101–194 of 194, ranked by callers