Skip to content

Commit 2c117d3

Browse files
author
kali
committed
Fix package
1 parent 409df33 commit 2c117d3

18 files changed

+57
-35
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ add_subdirectory(beacon)
176176
add_subdirectory(modules)
177177

178178
install(
179-
DIRECTORY beacon/ listener/ modules/
179+
DIRECTORY beacon/ listener/ modules/ModuleCmd/
180180
${sockethandler_SOURCE_DIR}/src/
181181
${pipehandler_SOURCE_DIR}/src/
182182
${memorymodule_SOURCE_DIR}/src/

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,11 @@ This repository is intended to be used as a dependency in both Windows and Linux
2424
- C++17 compatible compiler (e.g., `g++`, or MSVC)
2525

2626
This repo is not supposed to be built on its own.
27+
28+
## Build
29+
30+
```
31+
cmake -S . -B build
32+
cmake --build build
33+
cmake --install build --prefix <install_root>
34+
```

beacon/Beacon.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include <MemoryModule.h>
1919

20+
2021
typedef ModuleCmd* (*constructProc)();
2122

2223
#elif _WIN32

beacon/Beacon.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#pragma once
22

3-
#include <listener/ListenerTcp.hpp>
4-
#include <listener/ListenerSmb.hpp>
5-
#include "SocksTunnelClient.hpp"
3+
#include <ListenerTcp.hpp>
4+
#include <ListenerSmb.hpp>
65

76
#include <queue>
87
#include <string>
@@ -15,6 +14,9 @@
1514
#include "Common.hpp"
1615

1716

17+
#include <SocksTunnelClient.hpp>
18+
19+
1820
class Beacon
1921
{
2022
public:

beacon/BeaconDns.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include "BeaconDns.hpp"
2+
#include <client.hpp>
3+
24

35
using namespace std;
46
using namespace dns;

beacon/BeaconDns.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#pragma once
22

3-
#include <client.hpp>
43
#include "Beacon.hpp"
54

5+
namespace dns
6+
{
7+
class Client;
8+
}
69

710
class BeaconDns : public Beacon
811
{

beacon/BeaconSmb.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "BeaconSmb.hpp"
2+
#include <PipeHandler.hpp>
23

34
using namespace std;
45
using namespace PipeHandler;

beacon/BeaconSmb.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#pragma once
22

3-
#include <PipeHandler.hpp>
43
#include "Beacon.hpp"
54

65

6+
namespace PipeHandler
7+
{
8+
class Client;
9+
}
10+
711
class BeaconSmb : public Beacon
812
{
913

beacon/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include_directories(../modules/ModuleCmd)
2+
include_directories(../listener)
23

34

45
set(SOURCES_BEACON_HTTP_EXE

beacon/SocksTunnelClient.hpp

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)