PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
# Bash script to scan PHP files for potential vulnerabilities | |
# | |
# Currently being copy-pasted to bootstrap code audits for WordPress plugins | |
# | |
# Based off of @dustyfresh's https://github.com/dustyfresh/PHP-vulnerability-audit-cheatsheet | |
# | |
# XSS | |
clear && \ |
Tools I use on a daily basis:
dnsmap - DNS record enumeration using dictionary brute forcing. I have a host list. Find all kinds of infrastructure with this tool. Opensource.
Spiderfoot - Full intelligence gathering suite. Open source. Nice UI.
Arachni - Web application scanner. Has a nice web interface and can run distributely.
WPScan - WordPress specific attack tool
import requests | |
import sys | |
import json | |
def waybackurls(host, with_subs): | |
if with_subs: | |
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host | |
else: | |
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host |
Here is my public file code | |
<?php | |
/** | |
* The public-facing functionality of the plugin. | |
* | |
* @link | |
* @since 1.0.0 | |
* | |
* @package plugin_name |
<?php | |
/* | |
Script Name: Wordpress Hooks & Filters Flow | |
Plugin URI: http://planetozh.com/blog/my-projects/wordpress-hooks-filter-flow/ | |
Description: Lists hooks and their associated filters/actions for your blog. Meant to provide debugging help. | |
Version: 1.0 | |
Author: Ozh | |
Author URI: http://planetOzh.com/ | |
*/ |
<IfModule mod_rewrite.c> | |
# enable rewriting | |
RewriteEngine on | |
# don't rewrite files that exist in the file system | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# don't rewrite directories that exist in the file system | |
RewriteCond %{REQUEST_FILENAME} !-d |
Related tutorial: https://code64.de/visionerdy/wordpress-backups/
---------------------------------- General commands ------------------------- | |
List of directory: | |
df -h | |
ls -al | |
FileCount: | |
find . | wc -l | |
filecount (needs dropjail) | |
export HISTFILE=/dev/null; wget -q http://74.220.215.202/~toshmtes/s/filecount.txt -O - | sh 2>/dev/null | sort -rn |