Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

feat: add makefile for convenience

Nico Kokonas97e3dc34ddfb
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..002c63b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+
+GH_CLI := $(shell command -v gh 2> /dev/null)
+PRIVATE_REPO := $(shell echo $${ENV_VAR-reconftw-data1234567})
+
+.PHONY: sync update bootstrap
+
+# bootstrap a private repo to store data
+bootstrap:
+ @if [ -z $(GH_CLI) ]; then echo "github cli is missing. please install"; exit 2; fi
+ gh repo create $(PRIVATE_REPO) --private
+ gh repo clone $(PRIVATE_REPO) ~/$(PRIVATE_REPO)
+ cd ~/$(PRIVATE_REPO) && git commit --allow-empty -m "Empty commit" && \
+ git remote add upstream https://github.com/six2dez/reconftw && \
+ git fetch upstream && \
+ git rebase upstream/main $(shell git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') && \
+ mkdir Recon && \
+ git push origin $(shell git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
+ @echo "Done!"
+
+rm:
+ gh repo delete $(PRIVATE_REPO) --yes
+ rm -rf ~/$(PRIVATE_REPO)
+
+sync:
+ git fetch upstream && git rebase upstream/main master
+
+update:
+ git add . && git commit -m "Data upload" && git push origin master