Created
October 30, 2017 07:48
-
-
Save YasushiKobayashi/2078bcfdc8ae9ca5fd971afbe45a6823 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
WEBHOOKURL="" | |
CHANNEL="" | |
BOTNAME="" | |
FACEICON="" | |
WEBMESSAGE=`docker run --rm wpscanteam/wpscan -u $1` | |
WEBMESSAGE=`echo "${WEBMESSAGE}" | sed '1,14d'` | |
echo "${WEBMESSAGE}" | |
curl -s -S -X POST --data-urlencode "payload={ \ | |
\"channel\": \"${CHANNEL}\", \ | |
\"username\": \"${BOTNAME}\", \ | |
\"icon_url\": \"${FACEICON}\", \ | |
\"text\": \"${WEBMESSAGE}\" \ | |
}" ${WEBHOOKURL} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment