Skip to content

Instantly share code, notes, and snippets.

@d-demirci
d-demirci / setupyara.sh
Created April 8, 2022 12:35 — forked from kirantambe/setupyara.sh
Install yara and yara-python with androguard, dotnet and cuckoo modules
brew install jansson # OR apt-get install libjansson-dev for debian based linux distros
git clone https://github.com/VirusTotal/yara.git
cd yara/libyara/modules/
curl -O https://raw.githubusercontent.com/Anlyz/androguard-yara/master/androguard.c
sed -i -e 's/MODULE(cuckoo)/MODULE(cuckoo)'$'\\\nMODULE(androguard)/g' module_list
cd ..
sed -i -e 's~MODULES += modules\/cuckoo.c~MODULES += modules\/cuckoo.c'$'\\\nMODULES += modules/androguard.c~g' Makefile.am
cd ..
./bootstrap.sh
./configure --enable-cuckoo --enable-dotnet --enable-magic
@d-demirci
d-demirci / passport.js
Created February 9, 2017 22:48 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',