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
<?php | |
// Your search word goes here | |
$search_word = 'https://url.to.find/'; | |
$replacement_word = 'https://cdn.new.com/'; | |
// Set your database credentials | |
$servername = 'mysql.database.azure.com'; | |
$database = "prod"; | |
$username = "user"; |
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
<?php | |
// Your search word goes here | |
$search_word = 'wordupdude'; | |
// DB Details | |
$hostname = "mysql.database.azure.com"; | |
$database = "wp_prod"; | |
$username = "wp_prod_user"; | |
$password = "wp_prod_pass"; |
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 | |
import threading | |
from queue import Queue | |
from fake_useragent import UserAgent | |
URL = 'https://example.com' # Replace with the website you want to start at | |
SEARCH_STRING = 'example' # Replace with the string you want to search for | |
MAX_THREADS = 10 # Set the maximum number of threads |
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 xml.etree import ElementTree as ET | |
import random | |
def extract_urls(sitemap_url, urls=None): | |
if urls is None: | |
urls = [] | |
well_known_user_agents = [ | |
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36', |
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
/* | |
ELSYS simple payload decoder. | |
www.elsys.se | [email protected] | |
Modified by Pete Davies @ CDS | |
Ref: https://www.elsys.se/en/elsys-payload/ | |
Ref: https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/ | |
*/ |
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
<?php | |
if (ob_get_level() == 0) ob_start(); | |
require_once("wp-load.php"); | |
$postType = 'post'; // set to post or page | |
$userID = 1; // set to user id | |
$categoryID = '2'; // set to category id. | |
$postStatus = 'publish'; // set to future, draft, or publish | |
$start = 1; | |
$end = 50000; |
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 | |
for ((i=1;i<=50;i++)); do curl -v --header "Connection: keep-alive" "https://www.CLIENT.com/endpoint"; done |
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 | |
rm sitemap.xml | |
wget -q https://www.CLIENT.com/sitemap.xml | |
sed '/<loc>/!d; s/[[:space:]]*<loc>\(.*\)<\/loc>/\1/' sitemap.xml > links.txt | |
siege -b -v -c 10 -f links.txt -r once -H 'Accept-Encoding: gzip' 2>/dev/null |
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
<h1>GEO IP Test</h1> | |
<h2>Info</h2> | |
<pre><?php | |
$cst = array( | |
'GEOIP_COUNTRY_EDITION' => GEOIP_COUNTRY_EDITION, | |
'GEOIP_REGION_EDITION_REV0' => GEOIP_REGION_EDITION_REV0, | |
'GEOIP_CITY_EDITION_REV0' => GEOIP_CITY_EDITION_REV0, | |
'GEOIP_ORG_EDITION' => GEOIP_ORG_EDITION, | |
'GEOIP_ISP_EDITION' => GEOIP_ISP_EDITION, |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: peted | |
* Date: 27/10/2017 | |
* Time: 21:03 | |
* | |
*/ | |
$json_file = "test.json"; |
NewerOlder