Skip to content

Instantly share code, notes, and snippets.

View nheijmans's full-sized avatar
👾
Having fun

nheijmans

👾
Having fun
  • Cyber Space
View GitHub Profile
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@gene1wood
gene1wood / all_aws_lambda_modules_python.md
Last active April 3, 2024 20:42
AWS Lambda function to list all available Python modules for Python 2.7 3.6 and 3.7

Problems with pehash implementations

I've started to add a pehash implementation to YARA. I decided to base my implementation on the description in the paper and only use the totalhash and viper implementations for comparing results. In doing so I've noticed some problems, and it is unclear who is right.

Totalhash implementation

For starters let's take a look at running the pehash.py implementation from totalhash against a binary.

wxs@psh Desktop % shasum 4180ee367740c271e05b3637ee64619fb9fe7b1d2b28866e590e731b9f81de36