Skip to content

Instantly share code, notes, and snippets.

View papposilene's full-sized avatar

Philippe-Alexandre P. papposilene

View GitHub Profile

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
@erickpatrick
erickpatrick / making-xdebug-work-with-vagrant-phpstorm-vscode-laravel-homestead.md
Last active July 6, 2023 15:28
Making xdebug work with Vagrant, PHPStorm and Laravel Homestead on Windows

If you, like me, use a development machine provided by the company It department, it will probably be Windows based due security policies enforcement or something on these lines. That's ok, many of the new Windows based machines are really good and sturdy, and now, with the [Windows Subsystem for Linux] it can even work better for development that is not related to C#, .Net or related technologies.

The environment

However, when working with PHP and Laravel, we already have a nice way to run our code, inside the [Vagrant] VM from Laravel itself, [Homestead]. It comes with a bunch of software preinstalled that

@dreamsparkx
dreamsparkx / More-links.txt
Last active June 6, 2024 21:01
Install Apache, PHP, MySQL and phpMyAdmin on Mac OS X
@blahah
blahah / 1_basic_browser.js
Last active February 8, 2023 09:04
loading geoJSON examples
// we have a geoJSON file (in this case for Guinea) on the web:
var guinea = 'https://raw.githubusercontent.com/johan/world.geo.json/master/countries/GIN.geo.json'
// and we have a function that does something with the geoJSON file:
var handleGeoJSON = function (data) {
// data is the JSON parsed into a JS object
console.log(data)
}
// using jquery (you must have loaded jQuery first) - http://api.jquery.com/jquery.getjson