Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/m2_shell/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/m2_shell/inc/slack-alert.sh
#!/bin/bash

DEPLOYTASKS__SLACKMSG__USER="DeployBot";
DEPLOYTASKS__SLACKMSG__HOOKURL="https://hooks.slack.com/services/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";
DEPLOYTASKS__SLACKMSG__CHANNEL="#fr-kdc-0560-cnc";

if [ -z "${DEPLOYTASKS__SLACKMSG__ICONEMOJI+x}" ]; then
    DEPLOYTASKS__SLACKMSG__ICONEMOJI=":alert:";
fi;
if [ -z "${DEPLOYTASKS__SLACKMSG__MESSAGE+x}" ]; then
    DEPLOYTASKS__SLACKMSG__MESSAGE='A deploy has been launched.';
fi;

curl -s -X POST --data-urlencode "payload={\"channel\": \"${DEPLOYTASKS__SLACKMSG__CHANNEL}\", \"username\": \"${DEPLOYTASKS__SLACKMSG__USER}\", \"text\": \"${DEPLOYTASKS__SLACKMSG__MESSAGE}\", \"icon_emoji\": \"${DEPLOYTASKS__SLACKMSG__ICONEMOJI}\"}" ${DEPLOYTASKS__SLACKMSG__HOOKURL} > /dev/null

Spamworldpro Mini