Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uixss/massacre-tg


https://github.com/uixss/massacre-tg

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

# ๐ŸŽซ Coding Services SEND DM ๐ŸŽซ

## ๐Ÿ“ Requirements

- Python 3.8+
- Telethon Library (`pip install telethon`)

# ๐Ÿ“ก Entity Processor

Processes Telegram entities (users, channels, and groups) and saves detailed information in a JSON file.

- ๐Ÿ› ๏ธ Automatically loads or creates Telegram sessions.
- ๐Ÿ“‚ Processes users, groups, and channels (public or private).
- ๐Ÿ“Š Retrieves member, admin, and statistical information.
- ๐Ÿ’พ Saves processed data to `valid_data.json`.

```python
async def process_entity(client, entity_input, admin_limit=100):
if not entity_input:
return {"status": "invalid_input", "details": "Empty or None input", "link": "N/A", "input": entity_input}

try:
entity = await client.get_entity(entity_input)
link = f"https://t.me/{entity.username}" if hasattr(entity, 'username') and entity.username else "N/A"

if isinstance(entity, types.User):
return {
"status": "success",
"input": entity_input,
"type": "user",
"link": link,
"info": {
"id": entity.id,
"user": entity_input,
"username": entity.first_name or "N/A",
"name": f"{entity.first_name or ''} {entity.last_name or ''}".strip(),
"is_bot": "Yes" if entity.bot else "No",
},
}

# Procesar canales o grupos
elif isinstance(entity, types.Channel):
full_chat = await client(functions.channels.GetFullChannelRequest(entity))
chat_type = "public" if entity.username else "private"
metadata = {
"id": entity.id,
"title": entity.title,
"username": f"@{entity.username or 'N/A'}",
"members": full_chat.full_chat.participants_count,
"description": full_chat.full_chat.about or "N/A",
"admins": [],
}

try:
offset, total_admins = 0, []
while True:
admins_data = await client(functions.channels.GetParticipantsRequest(
channel=entity,
filter=types.ChannelParticipantsAdmins(),
offset=offset,
limit=admin_limit,
hash=0,
))
total_admins.extend([
{
"id": admin.user_id,
"username": admin.user.first_name or "N/A", # Nombre real del admin
"user": f"@{admin.user.username or 'N/A'}", # Identificador como @username
"arorab": admin.rank if hasattr(admin, 'rank') else "N/A",
"link": f"https://t.me/{admin.user.username}" if admin.user.username else "N/A",
}
for admin in admins_data.participants if isinstance(admin, types.ChannelParticipantAdmin)
])
if len(admins_data.participants) < admin_limit:
break
offset += admin_limit

metadata["admins"] = total_admins
except errors.ChatAdminRequiredError:
metadata["admins"] = "Restricted (Admin privileges required)"
except Exception as e:
metadata["admins"] = f"Error retrieving admins: {str(e)}"

return {
"status": "success",
"input": entity_input,
"type": "channel" if not entity.megagroup else "group",
"privacy": chat_type,
"link": link,
"info": metadata,
}

# Entidad desconocida
else:
return {"status": "unknown_entity", "input": entity_input, "link": link, "details": "Entity type not recognized"}

except (errors.UserDeactivatedError, errors.AuthKeyInvalidError) as e:
return {"status": "account_issue", "details": str(e), "link": "N/A", "input": entity_input}
except errors.ChannelPrivateError:
return {"status": "private_channel", "link": "N/A", "details": "Channel is private or access is denied", "input": entity_input}
except errors.FloodWaitError as e:
print(f"FloodWaitError: Esperando {e.seconds} segundos...")
await asyncio.sleep(e.seconds)
return {"status": "flood_wait", "link": "N/A", "details": f"Flood wait for {e.seconds} seconds", "input": entity_input}
except errors.RPCError as e:
return {"status": "rpc_error", "link": "N/A", "details": str(e), "input": entity_input}
except Exception as e:
return {"status": "error", "link": "N/A", "details": str(e), "input": entity_input}

```

---

# REPORT CONTENT

```python
import random

headers = [
"Dear Telegram Compliance Monitoring Team,",
"Hello Telegram Policy Team,",
"To the Telegram Trust Enforcement Team,",
]

footers = [
"Warmly,",
"With heartfelt thanks,",
"Ever grateful,",
]

static_message = "We have detected irregular activity in the following account."
details = "Account ID: 123456"

header = random.choice(headers)
footer = random.choice(footers)
message = f"""{header}\n\n{static_message}\n\n{details}\n\n{footer}\nBye"""

```

---

# ๐Ÿ“ง MASSACRE TG SMTP

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]


MASSACRE_SMTP_1
MASSACRE_SMTP_2

---

# ๐Ÿ“Š MASSACRE TG SESSIONS

This project automates reporting users, channels, and groups on Telegram using multiple sessions. It loads session credentials, user lists, and configuration files to perform reports based on predefined criteria.

## ๐Ÿš€ Features

- **Multi-Session Management**: Supports multiple Telegram sessions for reporting.
- **Automated User and Channel Reports**: Reports users and channels with specified reasons.
- **Customizable Report Reasons**: Supports various report types like spam, fake, copyright, etc.
- **Randomized Messaging**: Randomized report messages for variation.
- **Error Handling**: Handles session errors like banned numbers and unauthorized access.

### Prepare Session Credentials

```plaintext
(api_id, api_hash, phone_number)
(api_id, api_hash, phone_number)
```

### Add Users to Report

```json
[
{
"status": "success",
"info": {
"id": 123456789,
"user": "@username"
}
}
]
```

### Configure Report Messages
Create a `report.json` file with report reasons and messages:
```json
{
"SPAM": ["This is spam!", "Inappropriate content", "Unwanted messages"]
}
```

The script will:
1. Validate all sessions.
2. Report users or channels based on `main.json`.
3. Display the results in a tabular format.

## ๐Ÿ“ˆ Results
Reports will be displayed in the terminal as a table:
```
+-------------+-------------------+-----------+
| Session | User/Channel | Report |
+-------------+-------------------+-----------+
| +1234567890 | @username | SPAM |
+-------------+-------------------+-----------+
```


MASSACRE_SESSION
MASSACRE_SESSION2

---

# ๐ŸŒ MASSACRE TG WEB v2

https://telegram.org/support

Automated script to process email addresses, send messages via HTTP requests, and manage users with multi-threading. Perfect for handling bulk actions efficiently! โšก

## ๐Ÿ“‚ Features
- **Dynamic User Agents** ๐Ÿค–
- **Multi-threading** ๐Ÿงต
- **Real-time Logging** ๐Ÿ“
- **Email and User Processing** ๐Ÿ“ง
- **JSON Configuration** ๐Ÿ“„

## ๐Ÿ“ฆ File Structure
| File/Folder | Description |
|----------------|------------------------------------------|
| `emails.txt` | List of email addresses to process. |
| `report.json` | JSON containing messages (`SPAM` key). |
| `main.json` | User details (`id`, `username`, etc.). |
| `results.log` | Log file for process results. |

## ๐Ÿ“ง Example Data

### `emails.txt`
```
[email protected]
[email protected]
```

### `report.json`
```json
{
"SPAM": ["Message 1", "Message 2"]
}
```

### `main.json`
```json
[
{"info": {"id": 1, "username": "user1"}, "status": "success"}
]
```

MASSACRE_SESSION2

## โš ๏ธ Disclaimer
This tool is for educational purposes only. Use responsibly and ensure compliance with Telegram's terms of service.

## ๐Ÿค Contributing
Feel free to submit issues or pull requests to improve the project!