MCPcopy Create free account

hub / github.com/Mazzy-Stars/lain_c2 / functions

Functions95 in github.com/Mazzy-Stars/lain_c2

↓ 38 callersMethodWriteLog
(logStr string)
protocol/httpServer.go:25
↓ 10 callersFunctionGet_decry_s
字符串解密
main.go:3726
↓ 10 callersFunctioncustomBase64Decode
解码函数(无 padding)
main.go:3785
↓ 5 callersFunctionGetcmd
写入指令(推送到对应 uid 的消息队列)
main.go:2534
↓ 5 callersMethodIndex
(conn, Get_Msg,switch_key,encry_key,download,result,net,info,upload,list,option,uid,username,hostname,keyPart,
protocol/httpServer.go:19
↓ 4 callersFunctiongetClientIP
(r *http.Request)
main.go:1862
↓ 3 callersFunctionDeleteEntry
(delshell string,delbase bool)
main.go:2148
↓ 3 callersFunctionObfuscateBySteps
(data []byte, k ObfConst)
main.go:3616
↓ 3 callersFunctioncustomBase64Encode
编码函数(无 padding)
main.go:3757
↓ 3 callersFunctionreplacePlaceholders
(input string, replacements map[string]string, skipKey string)
client/Implants.go:1268
↓ 2 callersFunctionCheckUserSession
(r *http.Request, sessionSlice []string, error_str string)
web_ui/check.go:6
↓ 2 callersFunctionCheck_comment
(check_parts, option string)
main.go:2807
↓ 2 callersFunctionDecrypt
(cipher, key []byte)
main.go:3689
↓ 2 callersFunctionEncrypt
(plain, key []byte)
main.go:3671
↓ 2 callersFunctionGetOrCreateConfig
(port string)
protocol/httpServer.go:34
↓ 2 callersMethodPutServer
(port, path, connPath, msgPath,switch_key,encry_key,download,result,net,info,upload,list,option,protocol,usern
protocol/httpServer.go:22
↓ 2 callersFunctionUpdateRespHead
供 main.go 调用的更新函数
protocol/httpServer.go:54
↓ 2 callersFunctionbuildDecodeMap
(base_rounds string)
main.go:3749
↓ 2 callersFunctionderiveP
从 raw 派生 p
main.go:1975
↓ 2 callersFunctionreadJSONFile
读取结构体
main.go:4183
↓ 2 callersFunctionupdateServerClients
(port, protocol string, serverChan chan<- string)
main.go:1724
↓ 2 callersFunctionwithCORS
(next http.Handler)
main.go:4347
↓ 1 callersFunctionChange
(uid, username, remarks, delay, jitter, Taskid string)
main.go:1788
↓ 1 callersFunctionChangeMsh
(uid, s_id, pos string)
main.go:2330
↓ 1 callersFunctionChange_pro
(uid, username, remarks, delay, jitter, Taskid string)
main.go:1738
↓ 1 callersFunctionCheck_Time
()
main.go:2937
↓ 1 callersFunctionCheck_Time_Pro
()
main.go:2920
↓ 1 callersFunctionCheck_clients
()
main.go:2883
↓ 1 callersFunctionClearUnmarkedGlobalVars
()
main.go:3516
↓ 1 callersFunctionConfirm_chan
(uid, username string)
main.go:1850
↓ 1 callersFunctionCss
(css_file,error_str string)
web_ui/css.go:8
↓ 1 callersFunctionDel_file_list
按索引删除客户端目录缓存
main.go:2241
↓ 1 callersFunctionDel_shell_innet
删除内网
main.go:2871
↓ 1 callersFunctionDownloadFile
下载文件
main.go:3145
↓ 1 callersFunctionEncryptHostKey
(uid, key string)
main.go:2073
↓ 1 callersFunctionGenerate_agent
(protocol, os, server, Path, ConnPath, MsgPath, switch_key,encry_key,download,result,_net, info,upload,li
client/Implants.go:5
↓ 1 callersFunctionGetInfo
接收
main.go:1635
↓ 1 callersFunctionGetMsg
获取指令
main.go:2486
↓ 1 callersFunctionGetMsgList
将msg_map输出
main.go:2381
↓ 1 callersFunctionGet_Clients
(username string)
main.go:3500
↓ 1 callersFunctionGet_conn
(uid, username, hostname, clientIP, base_rounds string)
main.go:1919
↓ 1 callersFunctionGet_decry_f
文件解密
main.go:3721
↓ 1 callersFunctionGet_encry_f
文件加密
main.go:3717
↓ 1 callersFunctionGet_encry_s
字符串加密
main.go:3734
↓ 1 callersFunctionGet_file_list
读取文件列表
main.go:2220
↓ 1 callersFunctionGet_loots
获取用户所有战利品
main.go:3405
↓ 1 callersFunctionGet_loots_pro
Get_loots_pro 获取所有客户端(包括 Windows Pro)的战利品并渲染 HTML
main.go:3340
↓ 1 callersFunctionGetresults
获取结果
main.go:2403
↓ 1 callersFunctionHttp_server
(handler Handler, ServerManager Putserver, writeLog WLog, port, path, conn_path, GetMsg,switch_key,encry_k
protocol/httpServer.go:58
↓ 1 callersFunctionInsert_key
插入密钥
main.go:2126
↓ 1 callersFunctionJs
(error_str,web_route,web_js,web_css string, sessionSlice []string)
web_ui/js.go:6
↓ 1 callersFunctionLain
(error_str, web_title, web_js, web_css, web_route string, sessionSlice []string)
web_ui/index_html.go:8
↓ 1 callersFunctionListen
(username string)
main.go:1888
↓ 1 callersFunctionLog_read
读取日志,返回结构体切片
main.go:3288
↓ 1 callersFunctionNet_getresults
获取内网资产
main.go:2764
↓ 1 callersFunctionNet_results
写入内网资产
main.go:2782
↓ 1 callersFunctionPut_file_list
写入目录列表
main.go:2181
↓ 1 callersFunctionRead_file_list
(uid string)
main.go:2268
↓ 1 callersFunctionRead_log_word
()
main.go:4395
↓ 1 callersFunctionResults
写入结果
main.go:2425
↓ 1 callersFunctionSaveMsg
缓存客户端消息
main.go:2305
↓ 1 callersFunctionServerIndex
(Count string)
main.go:2954
↓ 1 callersFunctionStopServer
关闭服务器
protocol/httpServer.go:181
↓ 1 callersFunctionSwitch_key
接收客户端中间值添加与服务器私钥交互计算出最终密钥再与data_conn.Conns[i].HostKey交互返回给客户端
main.go:2023
↓ 1 callersFunctionUploadFileHandler
上传文件处理
main.go:3197
↓ 1 callersFunctionUserIndex
(Count string)
main.go:2996
↓ 1 callersFunctionUserUploadFile
前端上传文件
main.go:3444
↓ 1 callersFunctionUser_index
有权限交互,必须先登录,此路由下不需要错误报错回显
main.go:345
↓ 1 callersFunctionWindows_GetInfo
(uid,encry_str,key,clientIP string,code_map map[byte]int)
main.go:1673
↓ 1 callersFunctionWindows_put_client
Windows 专属的写入主机结构体函数
main.go:4083
↓ 1 callersFunctionapplyTemplate
(templateStr, processedCode string, replacements map[string]string)
client/Implants.go:1279
↓ 1 callersFunctiondecryptFile
解密文件
main.go:3264
↓ 1 callersFunctionderiveG
从 p 派生 g(保证 g>=2, g<p)
main.go:1986
↓ 1 callersFunctiongenerateRandomBase64Table
()
main.go:3741
↓ 1 callersFunctiongenerateRandomString
(length int)
main.go:4606
↓ 1 callersFunctiongetFilenameFromPath
(path string)
main.go:3272
↓ 1 callersFunctiongetInnet
查询内网资产
main.go:3589
↓ 1 callersFunctiongetOrCreateQueue
(uid string)
main.go:2314
↓ 1 callersFunctionin_port
写入内网资产端口
main.go:2850
↓ 1 callersFunctioninsert_key1_map
(uid, base_rounds string)
main.go:2001
↓ 1 callersFunctionleftPad
(b []byte, minLen int)
main.go:2065
↓ 1 callersFunctionlogin
登录
main.go:4491
↓ 1 callersFunctiononlyHex
(s string)
main.go:1956
↓ 1 callersFunctionput_client
写入主机结构体
main.go:4144
↓ 1 callersFunctionput_conn
写入链接结构体
main.go:4009
↓ 1 callersFunctionput_innet
(uid, target string, shell_innet []string)
main.go:3967
↓ 1 callersFunctionrandBigInt
生成 [0, max) 的 *big.Int
main.go:1968
↓ 1 callersFunctionrandomSalt6
()
main.go:3658
↓ 1 callersFunctionreadWhitelist
()
main.go:4462
↓ 1 callersFunctionsave_file_list
缓存客户端目录
main.go:2286
↓ 1 callersFunctionwindows_pro_UserIndex
(Count string)
main.go:3081
MethodIndex
无权限交互
main.go:122
MethodPutServer
( port, path, connPath, msgPath,switch_key,encry_key,download,result,net,info, upload,list,option,prot
main.go:4032
MethodWriteLog
(logStr string)
main.go:3316
Functionmain
*结构体数据部分结束*/
main.go:4204