Skip to content

Instantly share code, notes, and snippets.

View SeanDS's full-sized avatar

Sean Leavey SeanDS

View GitHub Profile
@SeanDS
SeanDS / facebook-tagged-photos.py
Created January 10, 2021 13:09
Download tagged photos from Facebook
"""Facebook tagged photos download script.
Requires a Facebook API token - see the following blog post for more
information: https://attackllama.com/2021/01/downloading-tagged-photos-from-facebook/
Sean Leavey
https://attackllama.com/
https://github.com/SeanDS/
"""
@SeanDS
SeanDS / carbon.py
Last active October 8, 2019 08:21
Carbon emissions calculation
# Quick and dirty carbon emissions calculation.
#
# See https://attackllama.com/carbon/.
#
# Requires Python 3.6+.
# Non-core dependencies: requests, numpy, pandas, matplotlib, pytablewriter.
#
# Note that the input text file "flights.txt" has a "distance" column. This is
# obtained manually using online flight distance calculators, and is simply for
# statistics. If you don't want to use this data, set each row in this column
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
CPU Family: 0x6
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
CPU Family: 0x6
@SeanDS
SeanDS / wpDirAuth.php
Created April 29, 2017 21:43
Add option to stop override of default WordPress cookie expiry in wpDirAuth
<?php
/**
* wpDirAuth: WordPress Directory Authentication (LDAP/LDAPS).
*
* Works with most LDAP enabled directory services, such as OpenLDAP,
* Apache Directory, Microsoft Active Directory, Novell eDirectory,
* Sun Java System Directory Server, etc.
*
* Please note that wpDirAuth will start in safe mode if it detects that
* another plugin is in conflict, by detecting if the wp_authenticate and