Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some tools and add ad-miner #376

Merged
merged 4 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions sources/assets/crackmapexec/cme.conf

This file was deleted.

16 changes: 0 additions & 16 deletions sources/assets/grc/conf.cme

This file was deleted.

4 changes: 0 additions & 4 deletions sources/assets/grc/grc.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# cme
(^|[/\w\.]+/)g?crackmapexec\s?
conf.cme

# rbcd
(^|[/\w\.]+/)g?rbcd.py\s?
conf.rbcd
Expand Down
1 change: 1 addition & 0 deletions sources/assets/shells/aliases.d/adminer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alias adminer=AD-miner
2 changes: 0 additions & 2 deletions sources/assets/shells/aliases.d/crackmapexec

This file was deleted.

4 changes: 3 additions & 1 deletion sources/assets/shells/aliases.d/netexec
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
alias netexec-neo4j-enable='sed -i "s/bh_enabled = False/bh_enabled = True/" ~/.nxc/nxc.conf'
alias netexec-neo4j-disable='sed -i "s/bh_enabled = True/bh_enabled = False/" ~/.nxc/nxc.conf'
alias netexec-neo4j-disable='sed -i "s/bh_enabled = True/bh_enabled = False/" ~/.nxc/nxc.conf'
alias crackmapexec='echo "crackmapexec has been replaced with netexec"'
alias cme=crackmapexec
2 changes: 2 additions & 0 deletions sources/assets/shells/history.d/adminer
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AD-miner -c -cf My_Report u $USERNAME -p $PASSWORD
adminer -c -cf My_Report -u $USERNAME -p $PASSWORD
42 changes: 0 additions & 42 deletions sources/assets/shells/history.d/crackmapexec

This file was deleted.

26 changes: 10 additions & 16 deletions sources/install/package_ad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,6 @@ function install_ldapdomaindump() {
add-to-list "ldapdomaindump,https://github.com/dirkjanm/ldapdomaindump,A tool for dumping domain data from an LDAP service"
}

function install_crackmapexec() {
colorecho "Installing CrackMapExec"
git -C /opt/tools/ clone --depth 1 https://github.com/Porchetta-Industries/CrackMapExec
pipx install --system-site-packages /opt/tools/CrackMapExec/
mkdir -p ~/.cme
[[ -f ~/.cme/cme.conf ]] && mv ~/.cme/cme.conf ~/.cme/cme.conf.bak
cp -v /root/sources/assets/crackmapexec/cme.conf ~/.cme/cme.conf
# below is for having the ability to check the source code when working with modules and so on
cp -v /root/sources/assets/grc/conf.cme /usr/share/grc/conf.cme
add-aliases crackmapexec
add-history crackmapexec
add-test-command "crackmapexec --help"
add-to-list "crackmapexec,https://github.com/Porchetta-Industries/CrackMapExec,Network scanner."
}

function install_bloodhound-py() {
colorecho "Installing and Python ingestor for BloodHound"
pipx install --system-site-packages git+https://github.com/fox-it/BloodHound.py
Expand Down Expand Up @@ -1402,6 +1387,15 @@ function install_conpass() {
add-to-list "conpass,https://github.com/login-securite/conpass,Python tool for continuous password spraying taking into account the password policy."
}

function install_adminer() {
colorecho "Installing adminer"
pipx install git+https://github.com/Mazars-Tech/AD_Miner
add-aliases adminer
add-history adminer
add-test-command "adminer --help"
add-to-list "AD-miner,https://github.com/Mazars-Tech/AD_Miner,Active Directory audit tool that leverages cypher queries."
}

# Package dedicated to internal Active Directory tools
function package_ad() {
set_env
Expand All @@ -1413,7 +1407,6 @@ function package_ad() {
install_pretender
install_responder # LLMNR, NBT-NS and MDNS poisoner
install_ldapdomaindump
install_crackmapexec # Network scanner
install_sprayhound # Password spraying tool
install_smartbrute # Password spraying tool
install_bloodhound-py # ingestor for legacy BloodHound
Expand Down Expand Up @@ -1507,6 +1500,7 @@ function package_ad() {
install_sccmwtf # This code is designed for exploring SCCM in a lab.
install_smbclientng
install_conpass # Python tool for continuous password spraying taking into account the password policy.
install_adminer
end_time=$(date +%s)
local elapsed_time=$((end_time - start_time))
colorecho "Package ad completed in $elapsed_time seconds."
Expand Down
1 change: 0 additions & 1 deletion sources/install/package_most_used.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ function package_most_used() {
install_gittools # Dump a git repository from a website
install_ysoserial # Deserialization payloads
install_responder # LLMNR, NBT-NS and MDNS poisoner
install_crackmapexec # Network scanner
install_impacket # Network protocols scripts
install_enum4linux-ng # Active Directory enumeration tool, improved Python alternative to enum4linux
install_smbmap # Allows users to enumerate samba share drives across an entire domain
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_osint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function install_blackbird() {
function install_sherlock() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing Sherlock"
pipx install git+https://github.com/sherlock-project/sherlock
pipx install sherlock-project
add-history sherlock
add-test-command "sherlock --help"
add-to-list "Sherlock,https://github.com/sherlock-project/sherlock,Hunt down social media accounts by username across social networks."
Expand Down
7 changes: 0 additions & 7 deletions sources/install/package_wordlists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ function install_cewler() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing cewler"
pipx install --system-site-packages cewler
# https://github.com/roys/cewler/pull/5
local temp_fix_limit="2024-09-01"
if [[ "$(date +%Y%m%d)" -gt "$(date -d $temp_fix_limit +%Y%m%d)" ]]; then
criticalecho "Temp fix expired. Exiting."
else
pipx inject cewler pypdf==4.0.1
fi
add-history cewler
add-test-command "cewler --output cewler.txt https://thehacker.recipes/"
add-to-list "cewler,https://github.com/roys/cewler,CeWL alternative in Python"
Expand Down
Loading