Skip to content

Commit

Permalink
v.1.2.0 (#5)
Browse files Browse the repository at this point in the history
* added miniserve for tls file transfer

* prep for v1.2.0
  • Loading branch information
alexrf45 authored Jan 27, 2024
1 parent 427ad13 commit 10d0d23
Show file tree
Hide file tree
Showing 1,864 changed files with 334,212 additions and 19 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
FROM kalilinux/kali-rolling:latest

LABEL "project"="kali-sec"
LABEL "author"="f0nzy"
LABEL "version"="v1.1.1"
LABEL "website"="https://f0nzy.com"
LABEL "author"="fr3d"
LABEL "version"="v1.2.0"
LABEL "website"="https://fr3d.dev"

ENV DEBIAN_FRONTEND noninteractive
ENV TZ="America/New_York"

RUN apt-get update && apt-get install sudo -y

Expand Down Expand Up @@ -68,7 +69,8 @@ RUN cp /home/kali/resources/tmux.conf /home/kali/.tmux.conf \
&& cp -r /home/kali/resources/shell-upgrade.sh /home/kali/tools/shell-upgrade.sh \
&& cp -r /home/kali/resources/recon.sh /home/kali/.local/bin/recon.sh && chmod +x /home/kali/.local/bin/recon.sh \
&& cp -r /home/kali/resources/proxychains.conf /home/kali/.proxychains/proxychains.conf \
&& cp -r /home/kali/resources/kerbrute /home/kali/.local/bin/kerbrute && chmod +x /home/kali/.local/bin/kerbrute
&& cp -r /home/kali/resources/kerbrute /home/kali/.local/bin/kerbrute && chmod +x /home/kali/.local/bin/kerbrute \
&& cp -r /home/kali/resources/starship.toml /home/kali/.config/starship.toml

RUN git clone https://github.com/samratashok/nishang.git

Expand All @@ -92,6 +94,8 @@ RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \

RUN git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

RUN curl -O https://starship.rs/install.sh && chmod +x install.sh && ./install.sh -b $HOME/.local/bin --yes

RUN sudo rm -rf /tmp/sources && sudo rm -rf /home/kali/resources

USER kali
Expand Down
2 changes: 2 additions & 0 deletions notes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
miniserve --tls-cert my.cert --tls-key my.key
- TODO: add to commands. figure out to install on kali image
85 changes: 85 additions & 0 deletions resources/starship.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'

# Use custom format
format = """$container
$time $directory $python $git_branch $git_commit $git_status $aws $azure $terraform $kubernetes
\\$ """
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 5

# Disable the blank line at the start of the prompt
add_newline = true

[line_break]
disabled = false

[container]
format = '[$symbol \[$name\]]($style) '
style = "bold red dimmed"

[python]
symbol = "👾 "
pyenv_version_name = true
style = "#FF5555"

[aws]
format = '[$symbol ($profile )(\($region\) )]($style)'
style = "bold orange"
symbol = "☁️"
[aws.region_aliases]
us-east-1 = "va"
[aws.profile_aliases]
Admin = 'Administrator'
acct-admin= 'account-admin'

[gcloud]
disabled = false
format = ' IAM: [$symbol$account(@$domain)(\($project\))]($style) '
style = "#FEFB61"
symbol = ""

[time]
disabled = false
format = " [$time]($style) "
style = "bold white"
use_12hr = false
time_format = "%Y/%m/%d %T"
utc_time_offset = "+9"
time_range="-" # always: time_range="00:00:00-23:59:59"

[directory]
read_only = ""
truncation_length = 2
truncate_to_repo = true # truncates directory to root folder if in github repo
style = "green"

[git_branch]
format = " [$symbol $branch]($style) "
symbol = "🌳"
style = "bold pink"


[git_commit]
commit_hash_length = 8
style = "bold white"

[pulumi]
symbol = "⚙️ "
format = " [$symbol $stack]($style)"
style = "bright-purple"
disabled = false

[terraform]
format = " [ 󱁢 $version $workspace]($style) "
style = "#BD93F9"

[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false

[azure]
disabled = true
format = "on [$symbol($subscription)]($style) "
symbol = ""
style = "blue bold"
8 changes: 4 additions & 4 deletions resources/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ set -g status-style default

set -g status-right-length 100
set -g status-right-style default
set -g status-right " #S | [%a %d %b %Y %T] "
set -g status-right "[%a %d %b %Y %T] "

set -g status-left-length 60
set-option -ag status-left "#[fg=red,dim,bg=default]#(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') "
set-option -ag status-left "#[fg=red,dim,bg=default]#S "

# Center the window list
set -g status-justify centre
set -g status-position bottom
set -g status-justify left
set -g status-position top

#refresh the status bar every second
set -g status-interval 1
Expand Down
2 changes: 1 addition & 1 deletion resources/zsh/kali.zsh-theme
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

PROMPT='$fg_bold[white][ $fg[green]]$(date +"%a %b %d %Y %l:%M%p") $fg_bold[white]] $fg_bold[white] [ $fg[green]%n@%m:%~$(git_prompt_info)$fg[yellow]$(ruby_prompt_info)$fg_bold[white] ]$reset_color
PROMPT='$fg_bold[white] $fg[green]$(date +"%a %b %d %Y %l:%M%p") $fg_bold[white]] $fg_bold[white] [ $fg[green]%n@%m:%~$(git_prompt_info)$fg[yellow]$(ruby_prompt_info)$fg_bold[white] ]$reset_color
$ '
# git theming
ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green]("
Expand Down
1 change: 1 addition & 0 deletions resources/zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export EDITOR=vim
export AGENT='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
export PATH=$PATH:$HOME/bin:$HOME/.local/bin:$HOME/.local:$HOME/.local/bin/go/bin

eval "$(starship init zsh)"

#daily drivers for day to day tasks
alias serve='sudo python3 -m http.server 80'
Expand Down
6 changes: 6 additions & 0 deletions sources/1-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ web() {
exiftool default-mysql-client hurl postgresql arjun sqsh
}

web_server() {
wget https://github.com/svenstaro/miniserve/releases/download/v0.26.0/miniserve-0.26.0-x86_64-unknown-linux-gnu -q \
-O miniserve && chmod +x ./miniserve && mv ./miniserve $HOME/.local/bin/miniserve
}

snyk-cli() {
curl --compressed https://static.snyk.io/cli/latest/snyk-linux -o snyk &&
chmod +x ./snyk && mv ./snyk $HOME/.local/bin/snyk
Expand Down Expand Up @@ -70,6 +75,7 @@ privesc() {
}

web
web_server
install_go
password
payload
Expand Down
13 changes: 3 additions & 10 deletions sources/2-tools.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
#!/bin/bash

install_go() {
wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz &&
rm -rf /usr/local/go &&
tar -C $HOME/.local/bin -xzf go1.21.3.linux-amd64.tar.gz &&
rm go1.21.3.linux-amd64.tar.gz
}

httprobe_install() {
wget -q https://github.com/tomnomnom/httprobe/releases/download/v0.2/httprobe-linux-amd64-0.2.tgz -O httprobe.tgz &&
tar -xzf httprobe.tgz && chmod +x httprobe && mv httprobe $HOME/.local/bin/httprobe && rm httprobe.tgz
Expand All @@ -16,8 +9,8 @@ httpx_install() {
wget -q https://github.com/projectdiscovery/httpx/releases/download/v1.3.6/httpx_1.3.6_linux_amd64.zip &&
unzip httpx_1.3.6_linux_amd64.zip -d ./httpx &&
rm httpx_1.3.6_linux_amd64.zip &&
mv httpx/httpx /home/kali/.local/bin/http-x &&
rm -r httpx/
mv httpx/httpx /home/kali/.local/bin/http-x &&
rm -r httpx/

}

Expand Down Expand Up @@ -52,7 +45,7 @@ chaos_install() {

dnsx_install() {
wget https://github.com/projectdiscovery/dnsx/releases/download/v1.1.4/dnsx_1.1.4_linux_amd64.zip -O dnsx.zip &&
unzip dnsx.zip dnsx && chmod +x dnsx && mv dnsx $HOME/.local/bin/dnsx && rm dnsx.zip
unzip dnsx.zip dnsx && chmod +x dnsx && mv dnsx $HOME/.local/bin/dnsx && rm dnsx.zip

}

Expand Down
23 changes: 23 additions & 0 deletions wrapper-go/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module docker-ps

go 1.21.6

require (
github.com/Microsoft/go-winio v0.4.14 // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/docker/docker v25.0.0+incompatible // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/pkg/errors v0.8.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
go.opentelemetry.io/otel v1.22.0 // indirect
go.opentelemetry.io/otel/metric v1.22.0 // indirect
go.opentelemetry.io/otel/trace v1.22.0 // indirect
golang.org/x/sys v0.1.0 // indirect
)
72 changes: 72 additions & 0 deletions wrapper-go/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
github.com/Microsoft/go-winio v0.4.14 h1:+hMXMk01us9KgxGb7ftKQt2Xpf5hH/yky+TDA+qxleU=
github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
github.com/docker/docker v25.0.0+incompatible h1:g9b6wZTblhMgzOT2tspESstfw6ySZ9kdm94BLDKaZac=
github.com/docker/docker v25.0.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c=
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM=
github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw=
go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y=
go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI=
go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg=
go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY=
go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0=
go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
26 changes: 26 additions & 0 deletions wrapper-go/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package main

import (
"context"
"fmt"

"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
)

func main() {
apiClient, err := client.NewClientWithOpts(client.FromEnv)
if err != nil {
panic(err)
}
defer apiClient.Close()

containers, err := apiClient.ContainerList(context.Background(), container.ListOptions{All: true})
if err != nil {
panic(err)
}

for _, ctr := range containers {
fmt.Printf("%s %s (status: %s)\n", ctr.ID, ctr.Image, ctr.Status)
}
}
Loading

0 comments on commit 10d0d23

Please sign in to comment.