├── Beacon ├── .idea │ ├── .gitignore │ ├── Beacon.iml │ └── modules.xml ├── command │ ├── cat.go │ └── cd.go ├── go.mod ├── go.sum ├── main.go ├── profile │ └── profile.go ├── sysinfo │ ├── heartbeat.go │ └── sysinfo.go └── utils │ ├── common │ ├── changeCp.go │ ├── crypt.go │ └── http.go │ └── packet │ ├── packer.go │ └── unpacker.go ├── C2.postman_collection.json ├── OneServer ├── .idea │ ├── OneServer.iml │ ├── modules.xml │ └── workspace.xml ├── 404.html ├── controller │ ├── beacon.go │ ├── controller.go │ ├── listener.go │ ├── test.go │ └── types.go ├── go.mod ├── go.sum ├── handler │ ├── beacon.go │ ├── beacon │ │ ├── beacon_handler.go │ │ ├── beacon_main.go │ │ ├── beacon_packet.go │ │ ├── beacon_utils.go │ │ └── types.go │ ├── handler.go │ ├── listener.go │ ├── listener │ │ ├── http_handler.go │ │ ├── http_listener.go │ │ ├── http_main.go │ │ └── http_type.go │ └── types.go ├── logs │ ├── zap.log │ └── zaplogger.go ├── main.go ├── middlewares │ ├── 404.go │ ├── ResponseHeader.go │ └── logger.go ├── profile.json ├── profile │ ├── profile.go │ └── types.go ├── server │ ├── beacon.go │ ├── listener.go │ ├── task.go │ ├── teamserver.go │ └── types.go ├── static │ ├── http │ │ └── x64 │ │ │ ├── stage64.exe │ │ │ └── 模板文件.go │ ├── listener.crt │ ├── listener.key │ ├── product │ │ └── stage64.exe │ ├── server.crt │ └── server.key └── utils │ ├── crypt │ ├── crypt.go │ ├── hash.go │ └── rand.go │ ├── request │ ├── beacon.go │ └── listener.go │ ├── response │ ├── beacon.go │ ├── listener.go │ └── task.go │ └── safeType │ ├── map.go │ └── slice.go └── README.md /Beacon/.idea/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/.idea/.gitignore -------------------------------------------------------------------------------- /Beacon/.idea/Beacon.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/.idea/Beacon.iml -------------------------------------------------------------------------------- /Beacon/.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/.idea/modules.xml -------------------------------------------------------------------------------- /Beacon/command/cat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/command/cat.go -------------------------------------------------------------------------------- /Beacon/command/cd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/command/cd.go -------------------------------------------------------------------------------- /Beacon/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/go.mod -------------------------------------------------------------------------------- /Beacon/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/go.sum -------------------------------------------------------------------------------- /Beacon/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/main.go -------------------------------------------------------------------------------- /Beacon/profile/profile.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/profile/profile.go -------------------------------------------------------------------------------- /Beacon/sysinfo/heartbeat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/sysinfo/heartbeat.go -------------------------------------------------------------------------------- /Beacon/sysinfo/sysinfo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/sysinfo/sysinfo.go -------------------------------------------------------------------------------- /Beacon/utils/common/changeCp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/utils/common/changeCp.go -------------------------------------------------------------------------------- /Beacon/utils/common/crypt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/utils/common/crypt.go -------------------------------------------------------------------------------- /Beacon/utils/common/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/utils/common/http.go -------------------------------------------------------------------------------- /Beacon/utils/packet/packer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/utils/packet/packer.go -------------------------------------------------------------------------------- /Beacon/utils/packet/unpacker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/Beacon/utils/packet/unpacker.go -------------------------------------------------------------------------------- /C2.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/C2.postman_collection.json -------------------------------------------------------------------------------- /OneServer/.idea/OneServer.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/.idea/OneServer.iml -------------------------------------------------------------------------------- /OneServer/.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/.idea/modules.xml -------------------------------------------------------------------------------- /OneServer/.idea/workspace.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/.idea/workspace.xml -------------------------------------------------------------------------------- /OneServer/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/404.html -------------------------------------------------------------------------------- /OneServer/controller/beacon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/controller/beacon.go -------------------------------------------------------------------------------- /OneServer/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/controller/controller.go -------------------------------------------------------------------------------- /OneServer/controller/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/controller/listener.go -------------------------------------------------------------------------------- /OneServer/controller/test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/controller/test.go -------------------------------------------------------------------------------- /OneServer/controller/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/controller/types.go -------------------------------------------------------------------------------- /OneServer/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/go.mod -------------------------------------------------------------------------------- /OneServer/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/go.sum -------------------------------------------------------------------------------- /OneServer/handler/beacon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/beacon.go -------------------------------------------------------------------------------- /OneServer/handler/beacon/beacon_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/beacon/beacon_handler.go -------------------------------------------------------------------------------- /OneServer/handler/beacon/beacon_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/beacon/beacon_main.go -------------------------------------------------------------------------------- /OneServer/handler/beacon/beacon_packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/beacon/beacon_packet.go -------------------------------------------------------------------------------- /OneServer/handler/beacon/beacon_utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/beacon/beacon_utils.go -------------------------------------------------------------------------------- /OneServer/handler/beacon/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/beacon/types.go -------------------------------------------------------------------------------- /OneServer/handler/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/handler.go -------------------------------------------------------------------------------- /OneServer/handler/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/listener.go -------------------------------------------------------------------------------- /OneServer/handler/listener/http_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/listener/http_handler.go -------------------------------------------------------------------------------- /OneServer/handler/listener/http_listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/listener/http_listener.go -------------------------------------------------------------------------------- /OneServer/handler/listener/http_main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/listener/http_main.go -------------------------------------------------------------------------------- /OneServer/handler/listener/http_type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/listener/http_type.go -------------------------------------------------------------------------------- /OneServer/handler/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/handler/types.go -------------------------------------------------------------------------------- /OneServer/logs/zap.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/logs/zap.log -------------------------------------------------------------------------------- /OneServer/logs/zaplogger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/logs/zaplogger.go -------------------------------------------------------------------------------- /OneServer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/main.go -------------------------------------------------------------------------------- /OneServer/middlewares/404.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/middlewares/404.go -------------------------------------------------------------------------------- /OneServer/middlewares/ResponseHeader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/middlewares/ResponseHeader.go -------------------------------------------------------------------------------- /OneServer/middlewares/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/middlewares/logger.go -------------------------------------------------------------------------------- /OneServer/profile.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/profile.json -------------------------------------------------------------------------------- /OneServer/profile/profile.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/profile/profile.go -------------------------------------------------------------------------------- /OneServer/profile/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/profile/types.go -------------------------------------------------------------------------------- /OneServer/server/beacon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/server/beacon.go -------------------------------------------------------------------------------- /OneServer/server/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/server/listener.go -------------------------------------------------------------------------------- /OneServer/server/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/server/task.go -------------------------------------------------------------------------------- /OneServer/server/teamserver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/server/teamserver.go -------------------------------------------------------------------------------- /OneServer/server/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/server/types.go -------------------------------------------------------------------------------- /OneServer/static/http/x64/stage64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/http/x64/stage64.exe -------------------------------------------------------------------------------- /OneServer/static/http/x64/模板文件.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/http/x64/模板文件.go -------------------------------------------------------------------------------- /OneServer/static/listener.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/listener.crt -------------------------------------------------------------------------------- /OneServer/static/listener.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/listener.key -------------------------------------------------------------------------------- /OneServer/static/product/stage64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/product/stage64.exe -------------------------------------------------------------------------------- /OneServer/static/server.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/server.crt -------------------------------------------------------------------------------- /OneServer/static/server.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/static/server.key -------------------------------------------------------------------------------- /OneServer/utils/crypt/crypt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/crypt/crypt.go -------------------------------------------------------------------------------- /OneServer/utils/crypt/hash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/crypt/hash.go -------------------------------------------------------------------------------- /OneServer/utils/crypt/rand.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/crypt/rand.go -------------------------------------------------------------------------------- /OneServer/utils/request/beacon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/request/beacon.go -------------------------------------------------------------------------------- /OneServer/utils/request/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/request/listener.go -------------------------------------------------------------------------------- /OneServer/utils/response/beacon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/response/beacon.go -------------------------------------------------------------------------------- /OneServer/utils/response/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/response/listener.go -------------------------------------------------------------------------------- /OneServer/utils/response/task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/response/task.go -------------------------------------------------------------------------------- /OneServer/utils/safeType/map.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/safeType/map.go -------------------------------------------------------------------------------- /OneServer/utils/safeType/slice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/OneServer/utils/safeType/slice.go -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onedays12/OneC2_for_studying/HEAD/README.md --------------------------------------------------------------------------------