securityjoes / crowdstrike-deploy Goto Github PK
View Code? Open in Web Editor NEWThe ultimate solution for remotely deploying Crowdstrike sensors quickly and discreetly on any other EDR platform.
License: MIT License
The ultimate solution for remotely deploying Crowdstrike sensors quickly and discreetly on any other EDR platform.
License: MIT License
#!/bin/bash
echo ""
echo " ██████╗██████╗ ██████╗ ██╗ ██╗██████╗ ███████╗████████╗██████╗ ██╗██╗ ██╗███████╗"
echo " ██╔════╝██╔══██╗██╔═══██╗██║ ██║██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██║██║ ██╔╝██╔════╝"
echo " ██║ ██████╔╝██║ ██║██║ █╗ ██║██║ ██║███████╗ ██║ ██████╔╝██║█████╔╝ █████╗"
echo " ██║ ██╔══██╗██║ ██║██║███╗██║██║ ██║╚════██║ ██║ ██╔══██╗██║██╔═██╗ ██╔══╝"
echo " ╚██████╗██║ ██║╚██████╔╝╚███╔███╔╝██████╔╝███████║ ██║ ██║ ██║██║██║ ██╗███████╗"
echo " ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚══╝╚══╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚══════╝"
echo ""
echo " ██████╗ ███████╗██████╗ ██╗ ██████╗ ██╗ ██╗"
echo " ██╔══██╗██╔════╝██╔══██╗██║ ██╔═══██╗╚██╗ ██╔╝"
echo " ██║ ██║█████╗ ██████╔╝██║ ██║ ██║ ╚████╔╝"
echo " ██║ ██║██╔══╝ ██╔═══╝ ██║ ██║ ██║ ╚██╔╝"
echo " ██████╔╝███████╗██║ ███████╗╚██████╔╝ ██║"
echo " ╚═════╝ ╚══════╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝"
echo ""
echo " Created & Maintained by: Eilay Yosfan"
echo " GitHub.com/YosfanEilay"
echo " Version: 1.0"
echo ""
SensorLink="" # Crowdstrike Sensor Download Link
SensorSig1="" # Crowdstrike Sensor Hash (SHA256)
TenantCID="" # Crowdstrike Tenant CID
TenantName="" # Crowdstrike Tenant Name
###################################################
Hostname=$(hostname)
RunPath=$(pwd)
DstPath="$RunPath/CrowdstrikeSensor"
if ping -c 2 8.8.8.8 &> /dev/null
then
echo "[+] Host is connected to the internet."
else
echo "[!] Host is not connected to the internet."
exit
fi
if ping -c 2 "onedrive.live.com" &> /dev/null
then
echo "[+] OneDrive is reachable."
else
echo "[!] OneDrive is not reachable, might be related to host network or organization policy. Deploy might fail."
fi
echo "[+] Download has started. The time required will depend on the host's bandwidth."
curl -o $DstPath $SensorLink
SensorSig2=$(sha256sum $DstPath | awk '{ print $1 }')
if [ "$SensorSig1" == "$SensorSig2" ]; then
echo "[+] Crowdstrike sensor was successfully downloaded. Sensor installation started."
else
echo "[!] The sensor file is corrupted, likely due to an interrupted download. you can try again."
rm -f $DstPath
exit
fi
chmod +x $DstPath
$DstPath /install /quiet CID=$TenantCID
sleep 60
echo "[+] Done. $Hostname will be available on host management under the tenant $TenantName in 5-10 minutes."
echo ""
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.