Code Monkey home page Code Monkey logo

crowdstrike-deploy's People

Contributors

yosfaneilay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

crowdstrike-deploy's Issues

Linux and MAC script

#!/bin/bash

Crowdstrike-Deploy Banner

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 ""

Please Paste Your Information in Here

SensorLink="" # Crowdstrike Sensor Download Link
SensorSig1="" # Crowdstrike Sensor Hash (SHA256)
TenantCID="" # Crowdstrike Tenant CID
TenantName="" # Crowdstrike Tenant Name
###################################################

Prerequisite Variable Load

Hostname=$(hostname)
RunPath=$(pwd)
DstPath="$RunPath/CrowdstrikeSensor"

Test if Host is Connected to the internet

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

Test Connection to OneDrive

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

Download Crowdstrike Sensor

echo "[+] Download has started. The time required will depend on the host's bandwidth."
curl -o $DstPath $SensorLink

Check if the Downloaded Sensor File is Corrupted

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

Start Crowdstrike Installation Process

chmod +x $DstPath
$DstPath /install /quiet CID=$TenantCID
sleep 60

Print Success Message

echo "[+] Done. $Hostname will be available on host management under the tenant $TenantName in 5-10 minutes."
echo ""

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.