mirror of
https://github.com/Adaptix-Framework/AdaptixC2
synced 2026-06-08 10:20:39 +00:00
Small update
This commit is contained in:
@@ -202,8 +202,6 @@ func NewTsConnector(ts Teamserver, tsProfile profile.TsProfile, tsResponse profi
|
||||
{
|
||||
otp_group.POST("/otp/upload/temp", connector.tcOTP_UploadTemp)
|
||||
otp_group.GET("/otp/download/sync", connector.tcOTP_DownloadSync)
|
||||
//otp_group.POST("/otp/upload/temp", ts.ValidateOTP(), default404Middleware(tsResponse), gin.WrapH(connector.tcOTP_UploadTemp()))
|
||||
//otp_group.GET("/otp/download/sync", ts.ValidateOTP(), default404Middleware(tsResponse), gin.WrapH(connector.tcOTP_DownloadSync()))
|
||||
}
|
||||
|
||||
api_group := connector.Engine.Group(tsProfile.Endpoint)
|
||||
|
||||
@@ -2,7 +2,7 @@ all: clean
|
||||
@ echo " * Building agent_beacon plugin"
|
||||
@ mkdir dist
|
||||
@ cp config.json ax_config.axs ./dist/
|
||||
@ go build -buildmode=plugin -ldflags="-s -w" -o ./dist/agent_beacon.so pl_main.go pl_agent.go pl_packer.go pl_utils.go pl_sideloading.go
|
||||
@ GOEXPERIMENT=jsonv2,greenteagc go build -buildmode=plugin -ldflags="-s -w" -o ./dist/agent_beacon.so pl_main.go pl_agent.go pl_packer.go pl_utils.go pl_sideloading.go
|
||||
@ echo " done..."
|
||||
|
||||
@ echo " * Building agent"
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
#include "Packer.h"
|
||||
#include "Crypt.h"
|
||||
|
||||
void* Agent::operator new(size_t sz)
|
||||
void* Agent::operator new(size_t sz)
|
||||
{
|
||||
void* p = MemAllocLocal(sz);
|
||||
return p;
|
||||
}
|
||||
|
||||
void Agent::operator delete(void* p) noexcept
|
||||
void Agent::operator delete(void* p) noexcept
|
||||
{
|
||||
MemFreeLocal(&p, sizeof(Agent));
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ all: clean
|
||||
@ echo " * Building listener_beacon_http plugin"
|
||||
@ mkdir dist
|
||||
@ cp config.json ax_config.axs ./dist/
|
||||
@ go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_beacon_http.so pl_main.go pl_http.go pl_listener.go
|
||||
@ GOEXPERIMENT=jsonv2,greenteagc go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_beacon_http.so pl_main.go pl_http.go pl_listener.go
|
||||
@ echo " done..."
|
||||
|
||||
clean:
|
||||
|
||||
@@ -2,7 +2,7 @@ all: clean
|
||||
@ echo " * Building listener_beacon_smb plugin"
|
||||
@ mkdir dist
|
||||
@ cp config.json ax_config.axs ./dist/
|
||||
@ go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_beacon_smb.so pl_main.go pl_smb.go pl_listener.go
|
||||
@ GOEXPERIMENT=jsonv2,greenteagc go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_beacon_smb.so pl_main.go pl_smb.go pl_listener.go
|
||||
@ echo " done..."
|
||||
|
||||
clean:
|
||||
|
||||
@@ -2,7 +2,7 @@ all: clean
|
||||
@ echo " * Building listener_beacon_tcp plugin"
|
||||
@ mkdir dist
|
||||
@ cp config.json ax_config.axs ./dist/
|
||||
@ go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_beacon_tcp.so pl_main.go pl_tcp.go pl_listener.go
|
||||
@ GOEXPERIMENT=jsonv2,greenteagc go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_beacon_tcp.so pl_main.go pl_tcp.go pl_listener.go
|
||||
@ echo " done..."
|
||||
|
||||
clean:
|
||||
|
||||
@@ -2,7 +2,7 @@ all: clean
|
||||
@ echo " * Building agent_gopher plugin"
|
||||
@ mkdir dist
|
||||
@ cp config.json ax_config.axs ./dist/
|
||||
@ go build -buildmode=plugin -ldflags="-s -w" -o ./dist/agent_gopher.so pl_main.go pl_agent.go pl_utils.go
|
||||
@ GOEXPERIMENT=jsonv2,greenteagc go build -buildmode=plugin -ldflags="-s -w" -o ./dist/agent_gopher.so pl_main.go pl_agent.go pl_utils.go
|
||||
@ echo " done..."
|
||||
|
||||
@ echo " * Building agent"
|
||||
|
||||
@@ -1282,6 +1282,11 @@ func parseDurationToSeconds(input string) (int, error) {
|
||||
re := regexp.MustCompile(`(\d+)(h|m|s)`)
|
||||
matches := re.FindAllStringSubmatch(input, -1)
|
||||
|
||||
if matches == nil {
|
||||
input = input + "s"
|
||||
matches = re.FindAllStringSubmatch(input, -1)
|
||||
}
|
||||
|
||||
totalSeconds := 0
|
||||
for _, match := range matches {
|
||||
value, err := strconv.Atoi(match[1])
|
||||
|
||||
@@ -2,7 +2,7 @@ all: clean
|
||||
@ echo " * Building listener_gopher_tcp plugin"
|
||||
@ mkdir dist
|
||||
@ cp config.json ax_config.axs ./dist/
|
||||
@ go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_gopher_tcp.so pl_main.go pl_listener.go pl_tcp.go map.go
|
||||
@ GOEXPERIMENT=jsonv2,greenteagc go build -buildmode=plugin -ldflags="-s -w" -o ./dist/listener_gopher_tcp.so pl_main.go pl_listener.go pl_tcp.go map.go
|
||||
@ echo " done..."
|
||||
|
||||
clean:
|
||||
|
||||
@@ -24,8 +24,7 @@ clean:
|
||||
|
||||
server: prepare
|
||||
@ echo "[*] Building adaptixserver..."
|
||||
@ cd AdaptixServer && go build -buildvcs=false -ldflags="-s -w" -o adaptixserver > /dev/null 2>build_error.log || { echo "[ERROR] Failed to build AdaptixServer:"; cat build_error.log >&2; exit 1; } # for static build use CGO_ENABLED=0
|
||||
@ sudo setcap 'cap_net_bind_service=+ep' AdaptixServer/adaptixserver
|
||||
@ cd AdaptixServer && GOEXPERIMENT=jsonv2,greenteagc go build -buildvcs=false -ldflags="-s -w" -o adaptixserver > /dev/null 2>build_error.log || { echo "[ERROR] Failed to build AdaptixServer:"; cat build_error.log >&2; exit 1; } # for static build use CGO_ENABLED=0
|
||||
@ mv AdaptixServer/adaptixserver ./$(DIST_DIR)/
|
||||
@ cp AdaptixServer/ssl_gen.sh AdaptixServer/profile.json AdaptixServer/404page.html ./$(DIST_DIR)/
|
||||
@ echo "[+] done"
|
||||
@@ -58,6 +57,8 @@ extenders: prepare
|
||||
done
|
||||
@ echo "[+] done"
|
||||
|
||||
server-ext: clean server extenders
|
||||
|
||||
clean-all: clean
|
||||
@ echo "[*] Cleaning all build artifacts..."
|
||||
@ find . -name "*.o" -delete
|
||||
@@ -73,6 +74,7 @@ help:
|
||||
@ echo "Available targets:"
|
||||
@ echo " all - Build everything (server, client, extenders)"
|
||||
@ echo " server - Build only the server"
|
||||
@ echo " server-ext - Build server and extenders (no client, ideal for VPS)"
|
||||
@ echo " client - Build only the client in multithread mode (fast build)"
|
||||
@ echo " client-fast - Build only the client"
|
||||
@ echo " extenders - Build only the extenders"
|
||||
@@ -82,4 +84,4 @@ help:
|
||||
@ echo ""
|
||||
@ echo "Platform: $(UNAME_S) [$(NPROC) proc]"
|
||||
|
||||
.PHONY: all server client extenders clean clean-all help prepare
|
||||
.PHONY: all server server-ext client extenders clean clean-all help prepare
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
# AdaptixC2 v0.10
|
||||
|
||||
Adaptix is an extensible post-exploitation and adversarial emulation framework made for penetration testers. The Adaptix server is written in Golang and to allow operator flexibility. The GUI Client is written in C++ QT, allowing it to be used on Linux, Windows, and MacOS operating systems. [Full documentation is available here](https://adaptix-framework.gitbook.io/adaptix-framework).
|
||||
Adaptix is an extensible post-exploitation and adversarial emulation framework made for authorized penetration testing. The Adaptix server is written in Golang and to allow operator flexibility. The GUI Client is written in C++ QT, allowing it to be used on Linux, Windows, and MacOS operating systems. [Full documentation is available here](https://adaptix-framework.gitbook.io/adaptix-framework).
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
## Legal Warning
|
||||
|
||||
This tool is designed for AUTHORIZED security testing and red team operations ONLY. Unauthorized use is strictly prohibited and may violate local and international laws. Use at your own risk.
|
||||
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please checkout the [wiki](https://adaptix-framework.gitbook.io/adaptix-framework/adaptix-c2/getting-starting/installation).
|
||||
|
||||
Reference in New Issue
Block a user