Skip to content

Commit

Permalink
Merge pull request #18 from jabra-/makefile-build-all
Browse files Browse the repository at this point in the history
  • Loading branch information
Cracked5pider authored Dec 14, 2023
2 parents 2ff45e3 + 42ce6a5 commit 7fd5fc1
Show file tree
Hide file tree
Showing 16 changed files with 118 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build

on: [pull_request, push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64

- name: apt update
run: sudo apt-get update

- name: Install pefile
run: sudo apt-get -y install python3-pefile

- name: Install nasm
run: sudo apt-get -y install nasm

- name: Build BOFs
run: make
13 changes: 13 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
[submodule "RemoteOps/CS-Remote-OPs-BOF"]
path = RemoteOps/CS-Remote-OPs-BOF
url = https://github.com/trustedsec/CS-Remote-OPs-BOF

[submodule "NoConsolation/No-Consolation"]
path = NoConsolation/No-Consolation
url = https://github.com/fortra/No-Consolation

[submodule "nanodump/nanodump"]
path = nanodump/nanodump
url = https://github.com/fortra/nanodump

[submodule "SituationalAwareness/CS-Situational-Awareness-BOF"]
path = SituationalAwareness/CS-Situational-Awareness-BOF
url = https://github.com/trustedsec/CS-Situational-Awareness-BOF

7 changes: 0 additions & 7 deletions Jump-exec/DCOM/Makefile

This file was deleted.

File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions Jump-exec/WMI/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SUBDIRS := $(wildcard */)

.PHONY: all $(SUBDIRS)

all: $(SUBDIRS)

$(SUBDIRS):
@if [ -f $@/makefile ]; then \
echo "Building $@"; \
$(MAKE) -C $@; \
else \
echo "Skipping $@ (makefile not found)"; \
fi
13 changes: 13 additions & 0 deletions Jump-exec/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SUBDIRS := $(wildcard */)

.PHONY: all $(SUBDIRS)

all: $(SUBDIRS)

$(SUBDIRS):
@if [ -f $@/makefile ]; then \
echo "Building $@"; \
$(MAKE) -C $@; \
else \
echo "Skipping $@ (makefile not found)"; \
fi
1 change: 1 addition & 0 deletions NoConsolation/No-Consolation
Submodule No-Consolation added at dbac90
9 changes: 9 additions & 0 deletions NoConsolation/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NAME = No-Consolation
BIN = bin

all:
@ cd $(NAME); make
@ find $(NAME)/dist -name '*.o' -exec cp {} $(BIN)/ \;

clean:
rm $(BIN)/*.o
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ This is the base template for the modules. You can use this to write your own mo
### SituationalAwareness
A bunch of Situational Awareness beacon object files. From [Situational Awareness BOF](https://github.com/trustedsec/CS-Situational-Awareness-BOF)

### RemoteOps
A bunch of Remote Operation beacon object files. From [Remote Operations BOF](https://github.com/trustedsec/CS-Remote-OPs-BOF)

### Domaininfo
A BOF tool to enumerate domain information using Active Directory Domain Services.
Full credit goes to [Cneelis](https://twitter.com/Cneelis). Bof is from his [C2-Tool-Collection](https://github.com/outflanknl/C2-Tool-Collection)
Expand Down
1 change: 1 addition & 0 deletions RemoteOps/CS-Remote-OPs-BOF
Submodule CS-Remote-OPs-BOF added at 656803
10 changes: 10 additions & 0 deletions RemoteOps/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NAME = CS-Remote-OPs-BOF
BIN = bin

all:
@ cd $(NAME); chmod +x make_all.sh; bash ./make_all.sh
@ find $(NAME)/Injection -name '*.o' -exec cp {} $(BIN)/ \;
@ find $(NAME)/Remote -name '*.o' -exec cp {} $(BIN)/ \;

clean:
rm $(BIN)/*.o
File renamed without changes.
17 changes: 17 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SUBDIRS := $(filter-out Template, $(shell echo */))

.PHONY: all $(SUBDIRS)

all: UPDATE $(SUBDIRS)

UPDATE:
@ echo "Updating submodules"
@ git submodule update --init --recursive

$(SUBDIRS):
@ if [ -f $@/makefile -o -f $@/Makefile ]; then \
echo "Building $@"; \
$(MAKE) -C $@; \
else \
echo "Skipping $@ (Makefile not found)"; \
fi
9 changes: 9 additions & 0 deletions nanodump/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NAME = nanodump
BIN = bin

all:
@ make -C $(NAME) -f Makefile.mingw
@ find $(NAME)/dist -name '*.o' -exec cp {} $(BIN)/ \;

clean:
rm $(BIN)/*.o
1 change: 1 addition & 0 deletions nanodump/nanodump
Submodule nanodump added at f2f4f1

0 comments on commit 7fd5fc1

Please sign in to comment.