Skip to content

Instantly share code, notes, and snippets.

Philippe Lagadec decalage2

Block or report user

Report or block decalage2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@decalage2
decalage2 / olevba_extract.py
Last active Jan 30, 2019
Quick example showing how to extract VBA macros to files using olevba (Python 2 or 3)
View olevba_extract.py
# Quick example showing how to extract VBA macros to files using olevba
# works with python 2 or 3
# ref: https://github.com/decalage2/oletools/wiki/olevba#extract-vba-macro-source-code
import sys
if sys.version_info[0] <= 2:
# Python 2.x
from oletools.olevba import VBA_Parser
else:
@decalage2
decalage2 / Extensions.java
Created Apr 19, 2017
CommonCrawlDocumentDownload - How to add RTF files
View Extensions.java
package org.dstadler.commoncrawl;
/**
* Which extensions we are interested in.
*
* @author dominik.stadler
*/
public class Extensions {
private static final String[] EXTENSIONS = new String[] {
@decalage2
decalage2 / vbaproject.py
Created Nov 16, 2016
olevba - how to access VBA project/dir and module streams
View vbaproject.py
# sample code to demonstrate how to access VBA project/dir and module streams using olevba
from oletools.olevba import VBA_Parser, decompress_stream
from oletools.ezhexviewer import hexdump3
import sys
def dump_vba_projects(vbaparser):
vba_projects = vbaparser.find_vba_projects()
for vba_root, project_path, dir_path in vba_projects:
You can’t perform that action at this time.