Skip to content

Instantly share code, notes, and snippets.

kingozorg / download.php
Created August 18, 2022 03:29 — forked from nicklasos/download.php
Curl PHP multiple files downloading
function multiple_download(array $urls, $save_path = '/tmp')
$multi_handle = curl_multi_init();
$file_pointers = [];
$curl_handles = [];
// Add curl multi handles, one per file we don't already have
foreach ($urls as $key => $url) {
kingozorg / cleanhtml.php
Created August 10, 2022 03:58 — forked from lyquix-owner/cleanhtml.php
PHP script to automatically clean dirty HTML. Removes unnecessary attributes (e.g. style, id, dir), replaces deprecated tags with valid ones (e.g. <b> to <strong>), and strips undesirable tags (e.g <font>). We have used this script to safely clean hundreds of blog posts that were littered with inline styling.
// List of tags to be replaced and their replacement
$replace_tags = [
'i' => 'em',
'b' => 'strong'
// List of tags to be stripped. Text and children tags will be preserved.
$remove_tags = [
kingozorg / GoogleHackMasterList.txt
Created March 23, 2021 10:07 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www&#8221; domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg
"parent directory" +proftpdpasswd
Duclassified" "DUware All Rights reserved"
kingozorg / YouTubeURLFormats.txt
Created January 26, 2021 00:43 — forked from xeoncross/YouTubeURLFormats.txt
Example of the various YouTube url formats
kingozorg /
Created January 25, 2021 20:16 — forked from n-kb/
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from import By
import csv, time
import os.path
browser = webdriver.Chrome()
for year in range(2013, 2020):
for month in range(1,13):
kingozorg /
Created January 6, 2021 05:22 — forked from sundowndev/
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"