DropboxC2 工具原理总结——就是通过dropbox文件来间接做c2控制和交互。
视频:https://vimeo.com/197902404
可以看到就是一个利用dropbox的C2,不过他是通过dropbox的文件API在做C2控制的,如何做到的呢?其实很简单,C2的agent轮询服务器上是否有文件更新,有的话就下载下来,其实这里面就是C2交互的内容,而C2上传的信息又通过文件形式传到dropbox。C2的server也是通过这样的方式,间接和agent打交道。
代码:https://github.com/Arno0x/DBC2/blob/master/lib/dropboxHandler.py,使用API:
1 2 3 4 5 6 7 8 9 | self .dropboxAPI = { 'listFolder' : 'https://api.dropboxapi.com/2/files/list_folder' , 'uploadFile' : 'https://content.dropboxapi.com/2/files/upload' , 'downloadFile' : 'https://content.dropboxapi.com/2/files/download' , 'deleteFile' : 'https://api.dropboxapi.com/2/files/delete' , 'getMetaData' : 'https://api.dropboxapi.com/2/files/get_metadata' , 'shareFile' : 'https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings' , 'getSharedLink' : 'https://api.dropboxapi.com/2/sharing/list_shared_links' } |
Architecture(看他的架构)
Features
DBC2 main features:
- Various stager (Powershell one liner, batch file, MS-Office macro, javascript, DotNetToJScript, msbuild file, SCT file, ducky, more to come...)
- Single CLI commands (one at a time, no environment persistency)
- Pseudo-interactive shell (environment persistency) - based on an idea from 0xDEADBEEF00 [at] gmail.com
- Send file to the agent
- Retrieve file from the agent
- Launch processes on the agent
- Keylogger
- Clipboard logger (clipboard recording/spying)
- Screenshot capture
- Run and interact with PowerShell modules (Endless capabilities: PowerSploit, Inveigh, Nishang, Empire modules, Powercat, etc.)
- Send key strokes to any process
- Set persistency through scheduled task and single instance through Mutex
- Can run within
(w|c)script.exe
thanks to the DotNetToJScript stager (javascript2) - Can be injected into any process thanks to the nativeWrapper and its corresponding position independant shellcode !
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
2017-08-28 ES不设置副本是非常脆弱的,整个文章告诉了你为什么
2017-08-28 集群版本升级——rolling upgrade在ES 单节点从 restart 到加入集群,大概要 100s 左右的时间。也就是说,这 100s 内,该节点上的所有分片都是 unassigned 状态
2017-08-28 ES跨版本升级?——难道升级集群发生shard allocation是因为要分配replica节点???
2017-08-28 官方文档 Upgrading Elasticsearch
2017-08-28 集群节点Elasticsearch升级
2017-08-28 ES什么时候会平衡分片
2017-08-28 ElasticSearch 深入理解 三:集群部署设计