Skip to content

Instantly share code, notes, and snippets.

@YasushiKobayashi
Created October 30, 2017 07:48
Show Gist options
  • Save YasushiKobayashi/2078bcfdc8ae9ca5fd971afbe45a6823 to your computer and use it in GitHub Desktop.
Save YasushiKobayashi/2078bcfdc8ae9ca5fd971afbe45a6823 to your computer and use it in GitHub Desktop.
#!/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