MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / GetCheckUrl

Method GetCheckUrl

class/projectModel/safecloudModel.py:2238–2252  ·  view source on GitHub ↗

@time: 2025-02-19 @name 获取云端URL地址 @author lkq<2022-4-12> @return URL

(self)

Source from the content-addressed store, hash-verified

2236 return public.returnMsg(False, '执行告警测试时发生错误: {}'.format(str(e)))
2237
2238 def GetCheckUrl(self):
2239 ''&#x27;
2240 @time: 2025-02-19
2241 @name 获取云端URL地址
2242 @author lkq<2022-4-12>
2243 @return URL
2244 ''&#x27;
2245 try:
2246
2247 ret = requests.get('http://www.bt.cn/checkWebShell.php').json()
2248 if ret['status']:
2249 return ret['url']
2250 return False
2251 except:
2252 return False
2253
2254 def ReadFile(self, filepath, mode='r'):
2255 ''&#x27;

Callers 1

test_fileMethod · 0.95

Calls 2

jsonMethod · 0.45
getMethod · 0.45

Tested by 1

test_fileMethod · 0.76