#!/bin/bash
# Variables
WEBHOOK_URL="https://outlook.office.com/webhook/your-webhook-url"
WP_OUTPUT_FILE="wpscan_output.txt"
# Read the WPScan output file
SCAN_RESULT=$(cat $WP_OUTPUT_FILE)
# Format the JSON payload to send to Teams
PAYLOAD=$(cat <<EOF
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "WPScan Result",
"themeColor": "0076D7",
"title": "WPScan Security Scan",
"text": "$SCAN_RESULT"
}
EOF
)
# Send the result to Microsoft Teams
curl -H "Content-Type: application/json" -d "$PAYLOAD" $WEBHOOK_URL
Paste Hosted With By Wklejamy.pl