Skip to content

Commit

Permalink
Dev to Main (#20)
Browse files Browse the repository at this point in the history
Dev image has been stable so far. Moving to latest.
  • Loading branch information
alexrf45 authored Jul 18, 2024
1 parent 8dcdd28 commit 64971d0
Show file tree
Hide file tree
Showing 25 changed files with 372 additions and 1,674 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ name: Publish Docker Image
on:
push:
branches:
- '*'
- 'dev'
jobs:
docker:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
-
name: Job Start
uses: act10ns/slack@v2
with:
status: starting
channel: '#dev'
message: Starting aegis dev build and push...
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -33,4 +40,5 @@ jobs:
with:
status: ${{ job.status }}
channel: '#dev'
message: Build Complete
if: always()
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
status: starting
channel: '#docker-build'
message: Starting aegis build and push...
message: Starting aegis main build and push...
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -41,6 +41,6 @@ jobs:
uses: act10ns/slack@v2
with:
status: ${{ job.status }}
channel: '#docker-build'
channel: '#prod'
message: BUILD COMPLETE {{env.GITHUB_REF_NAME }}
if: always()
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ FROM kalilinux/kali-rolling:latest

LABEL "project"="aegis"
LABEL "author"="fr3d"
LABEL "version"="v1.4.1"
LABEL "version"="v1.4.2"
LABEL "environment"="dev"

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ="America/New_York"

RUN apt-get update && apt-get install sudo -y
Expand All @@ -15,9 +16,9 @@ RUN groupadd --gid 1000 kali \
--gid 1000 --shell /bin/bash --skel /dev/null kali

RUN chown -R kali:kali /home/kali/ \
&& echo kali:kali | chpasswd \
&& usermod -aG sudo kali \
&& echo 'kali ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/kali
&& echo kali:kali | chpasswd \
&& usermod -aG sudo kali \
&& echo 'kali ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/kali

WORKDIR /home/kali/

Expand All @@ -41,8 +42,6 @@ RUN sudo rm -rf /tmp/sources && sudo rm -rf /home/kali/resources

USER kali

RUN pipx ensurepath && pipx install impacket certipy-ad

RUN sudo chsh $USER -s /bin/zsh

RUN zsh
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ alias udp-scan='sudo nmap -sU --top-ports 10 $IP -v > udp.scan.txt'
alias stealth-scan='sudo nmap --data-length 6 -T3 -A -ttl 64 -p- $IP > stealth-scan.txt'
alias public='curl wtfismyip.com/text'
alias t='tmux new -f ~/.tmux.conf -s $1'
alias webserver="miniserve -p 8001"
alias :q='exit'
alias home='cd ~'
alias :r='. ~/.bashrc'
alias update='sudo apt update'
alias upgrade='sudo apt-get upgrade -y'
alias upgrade='sudo apt upgrade -y'
alias i='sudo apt install -y'
alias ls='ls --color=auto'
alias command='cat $HOME/.commands'
Expand Down Expand Up @@ -67,18 +66,15 @@ aegis destory - destory a container
aegis backup - backup shared volume
aegis pull - update to latest image (dev, latest)
aegis help - view this help menu

```

Command list:

- Tired of looking for a specific command or long one liner? You can use this handy alias to search the prebuilt history for commonly used commands
## Command history
- Useful commands are already built into the container history. Simple type `CTRL+r' to pull up the fzf window where you can filter for the needed command. fzf makes navigating commands and files a breeze.

```
alias command='cat $HOME/.commands'
```

TODO:
- add quick https server script
- Python wrapper (FUTURE)
- Revamp bash function into script (alpha)
- Revamp bash function into script (beta)
- fzf usage (only works in zsh)
- miniserve quick web server w/ TLS function (done)
17 changes: 0 additions & 17 deletions documentation/aegis-docs/docs/index.md

This file was deleted.

1 change: 0 additions & 1 deletion documentation/aegis-docs/mkdocs.yml

This file was deleted.

Loading

0 comments on commit 64971d0

Please sign in to comment.